Add race-specific mechanics and combat balance adjustments - #29
Merged
Conversation
- Fix processMonsterStatus stub: monsters now take poison damage each turn with proper turn decay and expiry messages - Fix battle_cry attack bonus: monster._atkBonus is now applied in monsterAttack() and decrements each turn until it expires - Fix _secondWindUsed flag: now initialized in initCombat so second_wind resets correctly between combats - Add Fortitude statusResist: 25% chance to resist poison/trip/corruption when player has the Fortitude skill - Add Dwarf brew_master trait: potions heal 25% more for Dwarf players - Add Halfling small_size trait: Halflings deal 1 less melee damage (balanced by their existing dodge and lucky reroll bonuses) - Add Human adaptable trait: +1 to a random stat on each level up - Add Halfling social trait: 10% buy discount / 5% sell bonus in shops - Add Healing Arts innHealBonus: inn rest costs 25% less for players with the Healing Arts skill https://claude.ai/code/session_01NF9zwaPjgXsPTJaQpZ9Wq2
- Use combat.rng instead of Math.random() for human adaptable stat selection so level-up stat gains are seeded and reproducible - Make halfling social discount stack multiplicatively with bargaining: both bonuses now apply together rather than being mutually exclusive https://claude.ai/code/session_01NF9zwaPjgXsPTJaQpZ9Wq2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces race-specific gameplay mechanics and rebalances combat systems. It adds unique traits for different races (Dwarf, Halfling, Human), implements the Fortitude skill for status effect resistance, adds monster status effect processing, and adjusts shop pricing and inn costs.
Key Changes
Race-Specific Mechanics:
Combat System Improvements:
_secondWindUsedflag to combat state for tracking ability usagebattle_crywith duration managementFortitudeskill that provides 25% chance to resist status effects (poison, trip, corruption)processMonsterStatus()function to handle poison damage on monsters and status effect expirationEconomy Adjustments:
Healingskill discount to inn rest costs (25% reduction)Implementation Details
https://claude.ai/code/session_01NF9zwaPjgXsPTJaQpZ9Wq2