[Medium] [Bug] Fabricator: Perk ID mismatches between spec and code #318
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?
Spec: docs/specs/attunements/fabricator/fabricator-spec.md §6
Severity: Wrong value
Problem: Multiple perk IDs in
src/lib/game/data/disciplines/fabricator.tsdon't match the spec:fabricator-earthvsfabricator-earth-recipes(and metal, sand, crystal)wizard-oakvswizard-oak-staffwizard-arcanist-gearvswizard-arcanist-setphysical-battle-gearvsphysical-battle-setAny code referencing these IDs by spec name would fail to find them.
File:
src/lib/game/data/disciplines/fabricator.ts(multiple lines)Fixed all 7 perk ID mismatches in fabricator.ts to align with spec §6:
fabricator-earth-recipes→fabricator-earthfabricator-metal-recipes→fabricator-metalfabricator-sand-recipes→fabricator-sandfabricator-crystal-recipes→fabricator-crystalwizard-oak-staff→wizard-oakwizard-arcanist-set→wizard-arcanist-gearphysical-battle-set→physical-battle-gearAll 1060 tests pass. No other code referenced these IDs (isolated change).