From f6955e34489c79f6d5b764cb6a39b1387366b433 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 8 Nov 2026 21:56:29 +0100 Subject: Phase 0: project scaffolding - server/: Dart game-server package (shelf + WebSocket) with the hello/welcome handshake, ping/pong, error responses, healthz, static SPA serving with SPA fallback, and smoke tests (5/5) - web/: Svelte 5 + TypeScript SPA with the protocol client, connection-status page, vitest and svelte-check; Vite dev server proxies /ws to the Dart server - game data assets copied from the read-only reference app into server/assets/ (data, images, i18n, fonts, testData) - PLAN.md implementation plan and progress tracker; README rewritten for the web app; AGPLv3 LICENSE inherited from the reference app; .gitignore; scripts/ci.sh (full pipeline) - CLAUDE.md project guidance Verified: scripts/ci.sh passes end-to-end; live smoke confirms the server serves the built SPA at / and answers a WebSocket hello with a welcome message. --- .../assets/data/editions/Skulls in the Snow.json | 440 +++++++++++++++++++++ 1 file changed, 440 insertions(+) create mode 100644 server/assets/data/editions/Skulls in the Snow.json (limited to 'server/assets/data/editions/Skulls in the Snow.json') diff --git a/server/assets/data/editions/Skulls in the Snow.json b/server/assets/data/editions/Skulls in the Snow.json new file mode 100644 index 0000000..69efdeb --- /dev/null +++ b/server/assets/data/editions/Skulls in the Snow.json @@ -0,0 +1,440 @@ +{ + "edition": "Skulls in the Snow", + "classes": [ + ], + "monsterAbilities": [ + { + "name": "City Guard SS1", + "cards": [ + [ "Nothing Special", 0, true, 50, "%move% + 0", "*........", "%attack% + 0" ] + ] + }, + { + "name": "Frenzied Sniper", + "cards": [ + [ "Nothing Special", 0, true, 40, "%move% + 0", "*........", "%attack% + 0", "^%range% 3, %pierce% 2" ] + ] + } + ], + "monsters": { + "City Guard SS1": { + "display": "City Guard", + "gfx": "City Guard", + "deck": "City Guard SS1", + "hidden": true, + "count": 6, + "levels": [ + { + "level": 0, + "normal": { "health": 5, "move": 2, "attack": 2 }, + "elite": { "health": 6, "move": 2, "attack": 3, "attributes": [ "%shield% 1" ]} + }, + { + "level": 1, + "normal": { "health": 5, "move": 2, "attack": 2, "attributes": [ "%shield% 1" ]}, + "elite": { "health": 6, "move": 2, "attack": 3, "attributes": [ "%shield% 2" ]} + }, + { + "level": 2, + "normal": { "health": 7, "move": 2, "attack": 2, "attributes": [ "%shield% 1" ]}, + "elite": { "health": 9, "move": 2, "attack": 3, "attributes": [ "%shield% 2" ]} + }, + { + "level": 3, + "normal": { "health": 8, "move": 2, "attack": 3, "attributes": [ "%shield% 1" ]}, + "elite": { "health": 9, "move": 2, "attack": 4, "attributes": [ "%shield% 2", "%retaliate% 1"]} + }, + { + "level": 4, + "normal": { "health": 9, "move": 3, "attack": 3, "attributes": [ "%shield% 1" ]}, + "elite": { "health": 10, "move": 3, "attack": 4, "attributes": [ "%shield% 2","%retaliate% 2"]} + }, + { + "level": 5, + "normal": { "health": 10, "move": 3, "attack": 3, "attributes": [ "%shield% 2" ]}, + "elite": { "health": 13, "move": 3, "attack": 4, "attributes": [ "%shield% 2","%retaliate% 2"]} + }, + { + "level": 6, + "normal": { "health": 13, "move": 3, "attack": 4, "attributes": [ "%shield% 2" ]}, + "elite": { "health": 15, "move": 3, "attack": 4, "attributes": [ "%shield% 3","%retaliate% 3" ]} + }, + { + "level": 7, + "normal": { "health": 17, "move": 3, "attack": 4, "attributes": [ "%shield% 2" ]}, + "elite": { "health": 20, "move": 3, "attack": 5, "attributes": [ "%shield% 3","%retaliate% 3"]} + } + ] + }, + "Frenzied Sniper": { + "gfx": "Vermling Scout", + "display": "Frenzied Sniper", + "deck": "Frenzied Sniper", + "count": 10, + "levels": [ + {"level": 0, "health": "4xC", "move": 3, "attack": 2,"attributes": [ "%shield% 1" ]}, + {"level": 1, "health": "5xC", "move": 3, "attack": 2,"attributes": [ "%shield% 1" ]}, + {"level": 2, "health": "5xC", "move": 4, "attack": 3,"attributes": [ "%shield% 1" ]}, + {"level": 3, "health": "7xC", "move": 4, "attack": 3,"attributes": [ "%shield% 1" ]}, + {"level": 4, "health": "8xC", "move": 4, "attack": 4,"attributes": [ "%shield% 1" ]}, + {"level": 5, "health": "11xC", "move": 4, "attack": 4,"attributes": [ "%shield% 1" ]}, + {"level": 6, "health": "16xC", "move": 5, "attack": 4,"attributes": [ "%shield% 1" ]}, + {"level": 7, "health": "23xC", "move": 5, "attack": 4,"attributes": [ "%shield% 1" ]} + ] + }, + "Harrower Infester (SS3)": { + "gfx": "Harrower Infester", + "display": "Harrower Infester", + "deck": "Harrower Infester (FH)", + "count": 4, + "levels": [ + { + "level": 0, + "normal": { "health": 6, "move": 3, "attack": 2,"attributes": [ "If killed: spawn elite at A" ] }, + "elite": { "health": 12, "move": 3, "attack": 2 } + }, + { + "level": 1, + "normal": { "health": 7, "move": 3, "attack": 2, "attributes": [ "%retaliate% 1", "If killed: spawn elite at A" ]}, + "elite": {"health": 12, "move": 4, "attack": 2, "attributes": [ "%retaliate% 2", "If killed: spawn elite at A" ]} + }, + { + "level": 2, + "normal": { "health": 8, "move": 3, "attack": 2, "attributes": [ "%retaliate% 2", "If killed: spawn elite at A" ]}, + "elite": { "health": 14, "move": 4, "attack": 3, "attributes": [ "%retaliate% 2", "If killed: spawn elite at A" ]} + }, + { + "level": 3, + "normal": { "health": 10, "move": 3, "attack": 3, "attributes": [ "%retaliate% 2", "If killed: spawn elite at A" ]}, + "elite": { "health": 17, "move": 4, "attack": 3, "attributes": [ "%retaliate% 3", "If killed: spawn elite at A" ]} + }, + { + "level": 4, + "normal": { "health": 12, "move": 4, "attack": 3, "attributes": [ "%retaliate% 2", "If killed: spawn elite at A" ]}, + "elite": { "health": 19, "move": 4, "attack": 4, "attributes": [ "%retaliate% 3", "If killed: spawn elite at A" ]} + }, + { + "level": 5, + "normal": { "health": 12, "move": 4, "attack": 4, "attributes": [ "%retaliate% 3", "If killed: spawn elite at A" ]}, + "elite": { "health": 21, "move": 4, "attack": 5, "attributes": [ "%retaliate% 3", "If killed: spawn elite at A" ]} + }, + { + "level": 6, + "normal": { "health": 15, "move": 4, "attack": 5, "attributes": [ "%retaliate% 3", "If killed: spawn elite at A" ]}, + "elite": { "health": 27, "move": 4, "attack": 6, "attributes": [ "%retaliate% 4", "If killed: spawn elite at A" ],"immunities": [ "%poison%"]} + }, + { + "level": 7, + "normal": { "health": 18, "move": 4, "attack": 5, "attributes": [ "%retaliate% 4", "If killed: spawn elite at A" ],"immunities": [ "%poison%"]}, + "elite": { "health": 32, "move": 5, "attack": 6, "attributes": [ "%retaliate% 4", "If killed: spawn elite at A" ], "immunities": [ "%poison%"] } + } + ] + }, + "Harrower Infester (SS10)": { + "gfx": "Harrower Infester", + "display": "Harrower Infester", + "deck": "Harrower Infester (FH)", + "count": 4, + "levels": [ + { + "level": 0, + "normal": { "health": 6, "move": 2, "attack": 2 }, + "elite": { "health": 12, "move": 2, "attack": 2 } + }, + { + "level": 1, + "normal": { "health": 7, "move": 2, "attack": 2, "attributes": [ "%retaliate% 1" ]}, + "elite": {"health": 12, "move": 3, "attack": 2} + }, + { + "level": 2, + "normal": { "health": 8, "move": 2, "attack": 2, "attributes": [ "%retaliate% 2" ]}, + "elite": { "health": 14, "move": 3, "attack": 3} + }, + { + "level": 3, + "normal": { "health": 10, "move": 2, "attack": 3, "attributes": [ "%retaliate% 2" ]}, + "elite": { "health": 17, "move": 3, "attack": 3} + }, + { + "level": 4, + "normal": { "health": 12, "move": 3, "attack": 3, "attributes": [ "%retaliate% 2" ]}, + "elite": { "health": 19, "move": 3, "attack": 4} + }, + { + "level": 5, + "normal": { "health": 12, "move": 3, "attack": 4, "attributes": [ "%retaliate% 3" ]}, + "elite": { "health": 21, "move": 3, "attack": 5} + }, + { + "level": 6, + "normal": { "health": 15, "move": 3, "attack": 5, "attributes": [ "%retaliate% 3" ]}, + "elite": { "health": 27, "move": 3, "attack": 6,"immunities": [ "%poison%"]} + }, + { + "level": 7, + "normal": { "health": 18, "move": 3, "attack": 5, "attributes": [ "%retaliate% 4" ],"immunities": [ "%poison%"]}, + "elite": { "health": 32, "move": 4, "attack": 6, "immunities": [ "%poison%"] } + } + ] + } + }, + "scenarios": { + "#1 Skulls at the Gates": { + "monsters": [ "City Guard SS1", "Frozen Corpse", "Living Bones (FH)", "Living Spirit (FH)"], + "lootDeck": {"coin":9,"lumber": 3,"metal":3,"hide": 3,"corpsecap": 1, "rockroot": 1 }, + "special": [ + { + "type": "Allies", + "list": ["City Guard SS1"] + }, + { + "type": "Timer", + "startOfRound": true, + "list": [2,5,8], + "note": "Spawn one Frozen Corpse at each A. One is Elite for 3 character and both for 4.", + "name": "spawn 1" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [3,6,9], + "note": "Spawn one Living Bones at each B. One is Elite for 3 or 4 characters.", + "name": "spawn 2" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [4,7,10], + "note": "Spawn one Living Spirit at each C. One is Elite.", + "name": "spawn 3" + } + ] + }, + "#2 Gateway to Radiance": { + "monsters": [ "Burrowing Blade", "Ice Wraith", "Shrike Fiend", "Frenzied Sniper"], + "lootDeck": {"coin":7,"lumber": 4,"metal":2,"hide": 4,"arrowvine":2,"axenut": 1 }, + "special": [ + { + "type": "Allies", + "list": ["Frenzied Sniper"] + }, + { + "type": "Timer", + "startOfRound": true, + "list": [-1], + "note": "All characters add push 1 to all their attacks" + } + ] + }, + "#3 Rotten Revelation": { + "monsters": [ "Frozen Corpse", "Ooze (FH)"], + "lootDeck": {"coin":9,"lumber": 4,"metal":2,"hide": 2,"axenut": 1,"flamefruit": 2 }, + "sections": { + "#2": { + "monsters": ["Harrower Infester (SS3)"] + }, + "#3": { + "special": [ + { + "type": "ResetRound" + }, + { + "type": "Timer", + "startOfRound": false, + "list": [1], + "note": "Remove 'Angry Bulwark' and 'Spiked Mandibles' from the Harrower Infester ability deck." + }] + } + } + }, + "#4 The Healing Swarm": { + "monsters": [ "Forest Imp (FH)", "Harrower Infester (FH)", "Rending Drake (FH)"], + "lootDeck": {"coin":7,"lumber": 3,"metal":3,"hide": 3,"snowthistle":2,"flamefruit": 1, "rockroot": 1 }, + "special": [ + { + "type": "Timer", + "startOfRound": true, + "list": [4, 19], + "note": "Read section 1. Spawns at A.", + "name": "spawn 1" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [7, 22], + "note": "Read section 2. Spawns at C.", + "name": "spawn 2" + + }, + { + "type": "Timer", + "startOfRound": true, + "list": [10, 25], + "note": "Read section 3. Spawns at D. Apply bonus.", + "name": "spawn 3" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [13, 28], + "note": "Read section 4. Spawns at E", + "name": "spawn 4" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [16, 31], + "note": "Read section 5. Spawns at F.", + "name": "spawn 5" + } + ] + }, + "#5 Temple of the Order": { + "monsters": [ "Hound (FH)", "Living Doom", "Living Spirit (FH)", "Ruined Machine"], + "lootDeck": {"coin":10,"lumber": 2,"metal":4,"hide": 2,"corpsecap": 1, "rockroot": 1 }, + "special": [ + { + "type": "Escort", + "name": "Glowing Orb (A)", + "init": 50, + "health": 3 + }, + { + "type": "Timer", + "startOfRound": true, + "list": [2,4,6,8,10,12,14,16,18,20,22,24,26,28,30], + "note": "Spawn one Hound in a starting hex. Normal for 2-3 characters, Elite for 4 characters.", + "name": "spawn 1" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [3,5,7,9,11,13,15,17,19,21,23,25,27,29], + "note": "Spawn one Hound in a starting hex. Normal for 2 characters, Elite for 3-4 characters.", + "name": "spawn 2" + } + ] + }, + "#6 Remnants": { + "monsters": [ "Burrowing Blade", "Deep Terror (FH)", "Frozen Corpse"], + "lootDeck": {"coin":6,"lumber": 3,"metal":4,"hide": 4,"arrowvine":1,"corpsecap": 1, "rockroot": 1 }, + "special": [ + { + "type": "Escort", + "name": "Gidyen", + "init": 99, + "health": "6+(2xL)" + } + ], + "sections": { + "#1": { + "special": [ + { + "type": "Timer", + "startOfRound": true, + "list": [-1], + "note": "Any time a monster on map tile 06-A is not within range 4 of an enemy, remove it from the map." + } + ] + }, + "#2": { + "special": [ + { + "type": "Timer", + "startOfRound": true, + "list": [-1], + "note": "Any time a monster on map tile 06-A is not within range 4 of an enemy, remove it from the map. Any time a monster on map tile 07-C is not within range 8 of an enemy, remove it from the map." + } + ] + } + } + }, + "#7 Under Pressure": { + "monsters": [ "Black Imp (FH)", "Burrowing Blade", "Harrower Infester (FH)"], + "lootDeck": {"coin":10,"lumber": 2,"metal":2,"hide": 2,"arrowvine":2,"flamefruit": 1,"corpsecap": 1 }, + "special": [ + { + "type": "Escort", + "name": "Gidyen", + "health": "3xC" + }, + { + "type": "Escort", + "name": "Debris (B)", + "health": "60+5xC" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [4,7,10], + "note": "Spawn Harrower Infester next to B. It is Elite for 4 characters", + "name": "spawn 1" + } + ] + }, + "#8 The Great Bug Race": { + "monsters": [ "Harrower Infester (FH)","Hound (FH)", "Living Bones (FH)", "Ooze (FH)"], + "lootDeck": {"coin":8,"lumber": 2,"metal":3,"hide": 2,"snowthistle":1,"corpsecap": 1, "rockroot": 1 }, + "special": [ + { + "type": "Allies", + "list": ["Hound (FH)"] + }, + { + "type": "Escort", + "name": "The trio (A)", + "init": 1, + "health": "5+(3xC)" + }, + { + "type": "Timer", + "startOfRound": true, + "list": [-1], + "note": "Spawn elite Hound at B", + "name": "spawn 1" + } + ], + "sections": { + "#2": { + "special": [ + { + "type": "Timer", + "startOfRound": true, + "list": [-1], + "note": "Spawn elite Hound at E", + "name": "spawn 1" + } + ] + } + } + }, + "#9 Downhill": { + "monsters": [ "Frost Demon (FH)", "Living Bones (FH)", "Snow Imp", "Wind Demon (FH)"], + "lootDeck": {"coin":9,"lumber": 1,"metal":4,"hide": 1,"snowthistle":2,"arrowvine":2,"axenut": 1 } + }, + "#10 The Hive": { + "monsters": [ "Harrower Infester (SS10)", "Ooze (FH)"], + "lootDeck": {"coin":8,"lumber": 4,"metal":4,"hide": 4 }, + "special": [ + { + "type": "Objective", + "name": "Hive Core", + "health": "40xC" + }, + { + "type": "Timer", + "startOfRound": false, + "list": [1], + "note": "Mark hex with character or ally closest to the hive wall. The Hive applies a bonus." + }, + { + "type": "Timer", + "startOfRound": true, + "list": [2], + "note": "Track the normal and special cycles manually. A special cycle begin when an elite Harrower dies." + } + ] + } + } +} \ No newline at end of file -- cgit v1.3.1