diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2026-11-17 23:12:38 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2026-11-17 23:12:38 +0100 |
| commit | d64cf3514e5ff1ddb1c7f3ddac9a769db3e7dde0 (patch) | |
| tree | 781ec9f63220f3c15b309658e9b32ad7d9c70b3a /web/test/gameDataClient.test.ts | |
| parent | 94e2850fb73005f3fb30af8489905e5cdfb6fac5 (diff) | |
Phase 5: campaign meta, notes, special rules (M5)
Web:
- Note rows: create/edit menu (text, 12-swatch palette, player/monster
link with per-standee selection, delete) with the reference's
create-vs-edit commit semantics; row rendering with target-derived
gradient colour, link indent + connector, standee N:/All: prefixes,
tap-to-edit; whole-list drag-to-reorder (reorderList); quick
per-figure note (setFigureNote) from the status menu
- Special monsters: Ice Wraith "Switch Form" (deck == "Ice Wraith"
gate), summon mark toggle (round-green/summon standee artwork,
standee-nr badges, per-owner grayscale), character summon boxes +
AddSummonMenu (class summons gated by level and standee cap, item
summons from summons.json)
- Ally deck show/hide in the main menu (shouldShowAlliesDeck gate);
settings "clear unlocked" + Special Unlocks menu
- AddSectionMenu parity: search filter, findNrFromScenarioName numeric
ordering, added sections greyed + no-op, #Random Dungeon label
- gameData.ts: SummonModel, ClassData.summons, summons() fetch
Server:
- unlock_special_command_test (last command without a test; ally-deck
hide and remove-sanctuary were already covered)
PLAN.md: Phase 5 boxes checked, M5 progress-log entry
Diffstat (limited to 'web/test/gameDataClient.test.ts')
| -rw-r--r-- | web/test/gameDataClient.test.ts | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/web/test/gameDataClient.test.ts b/web/test/gameDataClient.test.ts index d5f0ce2..713a191 100644 --- a/web/test/gameDataClient.test.ts +++ b/web/test/gameDataClient.test.ts @@ -72,7 +72,8 @@ describe('GameDataClient.loadCampaign', () => { color: 'FF35ACD5', colorSecondary: 'ff313959', perks: [{ adds: ['berserker-1'], removes: ['minus1'] }], - perksFH: [{ adds: ['berserker-fh'] }] + perksFH: [{ adds: ['berserker-fh'] }], + summons: { Wolf: { health: 5, gfx: 'Wolf' } } }, { name: 'Secret', @@ -121,7 +122,19 @@ describe('GameDataClient.loadCampaign', () => { perks: [['berserker-1']], perksFH: [['berserker-fh']], perkDetails: [{ text: '', adds: ['berserker-1'], removes: ['minus1'] }], - perkDetailsFH: [{ text: '', adds: ['berserker-fh'], removes: [] }] + perkDetailsFH: [{ text: '', adds: ['berserker-fh'], removes: [] }], + summons: [ + { + name: 'Wolf', + level: 0, + standees: 1, + health: 5, + move: 0, + attack: 0, + range: 0, + gfx: 'Wolf' + } + ] }, expect.objectContaining({ id: 'Secret', |
