TASK-007: store/computed.ts uses banned "life" element in getFloorElement() #5

Closed
opened 2026-05-12 14:14:17 +02:00 by Anexim · 0 comments
Owner

Banned "life" Mana Type in Floor Element Cycle

src/lib/game/store/computed.ts line ~270 has:

const FLOOR_ELEM_CYCLE = ["fire", "water", "air", "earth", "light", "dark", "life", "death"];

This includes "life" which is a banned mana type per AGENTS.md:

Never re-add: life, blood, wood, mental, force

This is also inconsistent with src/lib/game/constants/elements.ts which correctly has only 7 base elements (no "life") and FLOOR_ELEM_CYCLE has 7 entries:

["fire", "water", "air", "earth", "light", "dark", "death"]

Fix:

Remove "life" from the FLOOR_ELEM_CYCLE in store/computed.ts to 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.

## Banned "life" Mana Type in Floor Element Cycle `src/lib/game/store/computed.ts` line ~270 has: ```typescript const FLOOR_ELEM_CYCLE = ["fire", "water", "air", "earth", "light", "dark", "life", "death"]; ``` This includes `"life"` which is a **banned mana type** per AGENTS.md: > Never re-add: `life`, `blood`, `wood`, `mental`, `force` This is also inconsistent with `src/lib/game/constants/elements.ts` which correctly has only 7 base elements (no "life") and `FLOOR_ELEM_CYCLE` has 7 entries: ``` ["fire", "water", "air", "earth", "light", "dark", "death"] ``` ### Fix: Remove `"life"` from the `FLOOR_ELEM_CYCLE` in `store/computed.ts` to 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.
Anexim added the ai:todo label 2026-05-12 14:14:17 +02:00
n8n-gitea was assigned by Anexim 2026-05-12 14:14:17 +02:00
Anexim removed the ai:todo label 2026-05-18 10:19:21 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#5