TASK-007: store/computed.ts uses banned "life" element in getFloorElement() #5
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?
Banned "life" Mana Type in Floor Element Cycle
src/lib/game/store/computed.tsline ~270 has:This includes
"life"which is a banned mana type per AGENTS.md:This is also inconsistent with
src/lib/game/constants/elements.tswhich correctly has only 7 base elements (no "life") andFLOOR_ELEM_CYCLEhas 7 entries:Fix:
Remove
"life"from theFLOOR_ELEM_CYCLEinstore/computed.tsto match the canonical element list. This likely causes crashes when the game tries to look up element "life" in the ELEMENTS record.Verification:
Search entire codebase for
"life"as a mana type reference and remove all instances.