feat(spells): heal (GHY REN) + readability + test scaffolding #82
No reviewers
Labels
No labels
alpha:wave-0
alpha:wave-1
alpha:wave-2
alpha:wave-3
area:assets
area:combat
area:ecology
area:infra
area:render
area:scripting
area:ui
area:world
enhancement
epic
migration
post-alpha
roadmap
tech-debt
type:bug
type:chore
type:design
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marco/IsoMmo!82
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/spell-heal"
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?
Slice 2b, part 1 — the heal form, plus two things that came up while testing it.
Heal (GHY REN)
Self-only HP restore:
HealBase+ Magery bonus, capped at MaxHits. Water is the restorative element, so fire + heal is an invalid combination. The catalog now distinguishes a known form with the wrong element (InvalidCombination— "Those words dont combine.") from a form nothing casts yet (SpellNotImplemented).HealSpell+ catalog entry +SpellCatalog.KnowsFormSpellCastResult.Healedcarries the amount;WorldTickbroadcasts a newHealedmessage in AoISpellOptions/GameOptions.HealBase;docs/spells.mdupdatedReadability
The HUD font is already bold (#78); the floating combat numbers were still washed out because — unlike the power words — they had no outline. Added the same black outline to damage/heal/miss numbers.
Test scaffolding (DRY)
Every gameplay test re-declared the same 11-line open map + spawn +
new World(...)shell. Extracted a singleTestWorldhelper (OpenMap+Spawn+ anOpen()factory mirroring the ctor) and routed the tests through it.Definition of Done
TestWorld.