fix: grimoire property on SpellDef raw-spells but not in type definition
#25
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?
Severity: Critical
Files:
src/lib/game/constants/spells-modules/raw-spells.ts(lines 17, 29) —grimoire: trueonmanaBoltandmanaStrikesrc/lib/game/types/spells.ts—SpellDefinterface does not includegrimoireProblem: Two raw spells have a
grimoire: trueproperty, but theSpellDefinterface intypes/spells.tsdoes not define this property. TypeScript will flag this as an excess property error.Impact: Type error when defining raw spells. The
grimoireflag has no effect on any game logic since it's only set but never read.Fix: Either add
grimoire?: booleanto theSpellDefinterface, or remove the property fromraw-spells.tsif it's unused dead code.Starting work on grimoire property on SpellDef not in type definition
Fixed: Added grimoire?: boolean to SpellDef interface in types/spells.ts