[feature: guardian-stats] Improve guardian stat labels and add defensive mechanics #205
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FEATURE: Better stat labels and new defensive mechanics for guardians
Part A: Rename Stat Labels
Current labels are abbreviated and unclear. Change to:
HP→HealthPWR→PowerARM→ArmorFiles to Update
src/components/game/tabs/guardian-pacts-components.tsx(lines 173-183) -GuardianStatscomponentsrc/components/game/tabs/SpireSummaryTab.tsx(line 240) -NextGuardianCardsrc/components/game/tabs/SpireSummaryTab.tsx(line 331) -GuardianRosterItemPart B: Add Defensive Mechanics to Guardians
Currently guardians only have
armor(static damage reduction) and offensiveeffects. They lack:New Mechanics to Implement
room-utils.ts)Files to Modify
src/lib/game/types/attunements.ts- Add optionalshield,barrier,healthRegenfields toGuardianDefsrc/lib/game/data/guardian-data.ts- Add new defensive stats to guardian definitionsPriority
Medium - Improves guardian depth and readability
Implementation Complete
Part A: Stat Label Renames
guardian-pacts-components.tsx(GuardianStats component): HP→Health, PWR→Power, ARM→ArmorSpireSummaryTab.tsx(NextGuardianCard + GuardianRosterItem): HP→HealthPart B: Defensive Mechanics
Type changes (
attunements.ts):GuardianDef:shield,shieldRegen,barrier,barrierRegen,healthRegen,healthRegenIsPercentGuardian data (
guardian-data.ts):mk()helper withdefensiveparameter (shield, barrier, healthRegen stats)Combat logic (
gameStore.ts+combatStore.ts):guardianShield,guardianShieldMax,guardianBarrier,guardianBarrierMaxto combat stateUI updates:
guardian-pacts-components.tsx: GuardianStats now shows Shield (cyan), Barrier (blue), Regen (green) in a second row when presentSpireSummaryTab.tsx: NextGuardianCard shows defensive stats inline when presentAll 895 tests pass. All files under 400 lines.
Feature complete and pushed to master (commit
7bd28e2). All 895 tests pass, all files under 400 lines, no circular dependencies introduced.