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. --- server/assets/data/editions/Mercenary Packs.json | 232 +++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 server/assets/data/editions/Mercenary Packs.json (limited to 'server/assets/data/editions/Mercenary Packs.json') diff --git a/server/assets/data/editions/Mercenary Packs.json b/server/assets/data/editions/Mercenary Packs.json new file mode 100644 index 0000000..e377516 --- /dev/null +++ b/server/assets/data/editions/Mercenary Packs.json @@ -0,0 +1,232 @@ +{ + "edition": "Mercenary Packs", + "classes": [ + { + "name": "Anaphi", + "color": "FFB83DBA", + "colorSecondary": "ff460F1D", + "edition": "Mercenary Packs", + "health": [6,7,8,9,10,11,12,13,14], + "hidden": false, + "summons": { + "Sewer Monstrosity": { + "level": 1, + "health": 4, + "move": 3, + "attack": 2, + "gfx": "MIN Rat Monstrosity" + }, + "Duskrat Swarm": { + "level": 1, + "health": 7, + "move": 2, + "attack": 1, + "gfx": "ANA duskrat swarm" + }, + "Harrower's Grasp": { + "level": 1, + "health": 2, + "move": 2, + "attack": 1, + "range": 3, + "gfx": "ANA harrowers grasp" + }, + "Rosie": { + "level": 5, + "health": 3, + "move": 3, + "attack": 3, + "gfx": "ANA rosie" + }, + "Rat Queen": { + "level": 9, + "health": 7, + "move": 3, + "gfx": "ANA rat queen" + } + }, + "perks": [ + {"removes": ["minus2"], "adds": ["plus0"]}, + {"removes": ["minus1"],"adds": ["perks/plus0poison"]}, + {"removes": ["minus1"],"adds": ["perks/plus0poison"]}, + {"removes": ["minus1"],"adds": ["perks/plus0poison"]}, + {"text": "Replace two +0 cards with one +1 \"Add + 1 %attack% when drawn by a summon\" card", "removes": ["plus0", "plus0"],"adds": ["perks/unique/an2"]}, + {"text": "Replace two +0 cards with one +1 \"Add + 1 %attack% when drawn by a summon\" card", "removes": ["plus0", "plus0"],"adds": ["perks/unique/an2"]}, + {"removes": ["plus0"],"adds": ["perks/plus0stun"]}, + {"removes": ["plus1"],"adds": ["perks/plus1invisible"]}, + {"removes": ["plus1"],"adds": ["perks/plus1invisible"]}, + {"adds": ["perks/plus2airdark"]}, + {"adds": ["perks/plus2airdark"]}, + {"adds": ["perks/plus2airdark"]}, + {"text": "Add one +2 \"%strengthen%, %target% 1 of your summons\" card","adds": ["perks/unique/an1"]}, + {"text": "Add one +2 \"%strengthen%, %target% 1 of your summons\" card","adds": ["perks/unique/an1"]}, + {"text": "Ignore scenario effects and remove one +0 card", "removes": ["plus0"]}, + {"text": "Whenever you long rest, you may infuse %air% or %dark%"}, + {"text": "Once each scenario, during your turn, all enemies adjacent to a wall suffer %damage% 1"}, + {"text": "At the start of the first round of each scenario, after all ability card have been revealed, control one enemy within %range% 5: %move% 2"} + ] + }, + { + "name": "Cassandra", + "color": "FFC8E3EA", + "colorSecondary": "ff353456", + "edition": "Mercenary Packs", + "health": [6,7,8,9,10,11,12,13,14], + "hidden": false, + "summons": { + "Ghost Falcon": { + "level": 6, + "health": 4, + "move": 3, + "attack": 2, + "standees": 2, + "gfx": "CAS ghost falcon" + }, + "Twilight Archon": { + "level": 9, + "health": 5, + "move": 3, + "attack": 2, + "range": 3, + "gfx": "CAS twilight archon" + } + }, + "perks": [ + {"removes": ["minus2"]}, + {"removes": ["minus1", "minus1"]}, + {"text": "Replace one -1 card with one +0 \"%bless%, %target% self or 1 ally\" card", "removes": ["minus1"],"adds": ["perks/unique/ca1"]}, + {"text": "Replace one -1 card with one +0 \"%bless%, %target% self or 1 ally\" card", "removes": ["minus1"],"adds": ["perks/unique/ca1"]}, + {"text": "Replace one -1 card with one +0 \"%bless%, %target% self or 1 ally\" card", "removes": ["minus1"],"adds": ["perks/unique/ca1"]}, + {"text": "Replace one +0 card with one +2 \"Add +1 %attack% if the top card of the monster attack modifier deck is revealed\"", "removes": ["plus0"],"adds": ["perks/unique/ca2"]}, + {"text": "Replace one +0 card with one +2 \"Add +1 %attack% if the top card of the monster attack modifier deck is revealed\"", "removes": ["plus0"],"adds": ["perks/unique/ca2"]}, + {"text": "Replace one +0 card with one +2 \"Add +1 %attack% if the top card of the monster attack modifier deck is revealed\"", "removes": ["plus0"],"adds": ["perks/unique/ca2"]}, + {"text": "Replace one +0 card with one +2 %lightdark%", "removes": ["plus0"],"adds": ["perks/plus2lightdark"]}, + {"text": "Replace one +0 card with one +2 %lightdark%", "removes": ["plus0"],"adds": ["perks/plus2lightdark"]}, + {"text": "Add one +1 \"Place this card in your active area. When you next place a rift, discard this card to place another rift within %range% 1 of it\"%flip%","adds": ["perks/unique/ca3"]}, + {"text": "Add one +1 \"Place this card in your active area. When you next place a rift, discard this card to place another rift within %range% 1 of it\"%flip%","adds": ["perks/unique/ca3"]}, + {"text": "Ignore scenario effects and add two +1 cards", "adds": ["plus1", "plus1"]}, + {"text": "Whenever you long rest, you may read one unread section from the current scenario's \"Section Links\""}, + {"text": "[double] Whenever you place a rift, you may perform \"%pull% 1, %target% 1 ally or enemy, %range% 1\" as if you occupied a hex containing a rift"}, + {"text": "[double] Whenever a deck is shuffled, you may set aside all revealed cards from that deck and place them back on top after shuffling"} + ] + }, + { + "name": "Hail", + "color": "FFB3686D", + "colorSecondary": "FF240F18", + "edition": "Mercenary Packs", + "health": [8,9,11,12,14,15,17,18,20], + "hidden": false, + "summons": {}, + "perks": [ + {"removes": ["minus2"], "adds": ["plus0"]}, + {"text": "Replace one -1 card with one +0 %wound% or %immobilize%","removes": ["minus1"], "adds": [ "perks/unique/ha1"]}, + {"text": "Replace one -1 card with one +0 %wound% or %immobilize%","removes": ["minus1"], "adds": [ "perks/unique/ha1"]}, + { "removes": ["minus1"], "adds": ["perks/plus1any"]}, + { "removes": ["minus1"], "adds": ["perks/plus1any"]}, + {"text": "Replace two +0 cards with one +1 %poison% or %muddle% card", "removes": ["plus0","plus0"], "adds": [ "perks/unique/ha2"]}, + {"text": "Replace two +0 cards with one +1 %poison% or %muddle% card", "removes": ["plus0","plus0"], "adds": [ "perks/unique/ha2"]}, + {"removes": ["plus0"], "adds": ["perks/plus1heal1allyflip"]}, + {"removes": ["plus0"], "adds": ["perks/plus1heal1allyflip"]}, + {"removes": ["plus1","plus1"], "adds": ["plus2","plus2"]}, + {"adds": ["perks/plus1stun"]}, + {"adds": ["perks/plus1stun"]}, + {"adds": ["perks/plus3safeguardally"]}, + {"adds": ["perks/plus3safeguardally"]}, + {"text": "Ignore scenario effects and add two +1 cards","adds": [ "plus1", "plus1"]}, + {"text": "Whenever you short rest,you may choose which card to lose"}, + {"text": "Your and your allies' enhancements cost five gold less and whenever an ally enhances a card, you gain five gold"}, + {"text": "add one +1 \"%Hail gains 1 resolve\" card to the monster attack modifier deck"} + ] + }, + { + "name": "Satha", + "color": "FF00A8F3", + "colorSecondary": "ff00A8F3", + "edition": "Mercenary Packs", + "health": [10, 12, 14, 16, 18, 20, 22, 24, 26], + "hidden": false, + "summons": {}, + "perks": [ + {"removes": ["minus2"], "adds": ["plus0"]}, + {"removes": ["minus1"], "adds": [ "perks/plus0shield1flip"]}, + {"removes": ["minus1"], "adds": [ "perks/plus0shield1flip"]}, + { "removes": ["minus1"], "adds": ["perks/plus0ice"]}, + { "removes": ["minus1"], "adds": ["perks/plus0ice"]}, + {"text": "Replace two +0 cards with one +1 \"%heal% 1, %target% 1 ally and self\" card", "removes": ["plus0","plus0"], "adds": ["perks/unique/sa1"]}, + {"text": "Replace two +0 cards with one +1 \"%heal% 1, %target% 1 ally and self\" card", "removes": ["plus0","plus0"], "adds": ["perks/unique/sa1"]}, + {"removes": ["plus1","plus1"], "adds": ["plus2","plus2"]}, + {"text": "Add one +0 \"Grant one ally within %range% 3: %attack% 2 %range% 3 or %attack% 3\" card","adds": ["perks/unique/sa2"]}, + {"text": "Add one +0 \"Grant one ally within %range% 3: %attack% 2 %range% 3 or %attack% 3\" card","adds": ["perks/unique/sa2"]}, + {"text": "Add one %disarm%%flip% and one +0 \"Grant one ally within %range% 3: %move% 2\"%flip% card","adds": ["perks/plus0disarmflip","perks/unique/sa3"]}, + {"text": "Add one %disarm%%flip% and one +0 \"Grant one ally within %range% 3: %move% 2\"%flip% card","adds": ["perks/plus0disarmflip","perks/unique/sa3"]}, + {"adds": ["perks/plus0wardrange1flip","perks/plus0wardrange1flip"]}, + {"adds": ["perks/plus0wardrange1flip","perks/plus0wardrange1flip"]}, + {"text": "Ignore item - 1 effects and whenever you would gain %stun%, prevent the condition"}, + {"text": "Whenever you long rest, perform: %strengthen%, %target% 1 ally, %range% 3"}, + {"text": "All initiative values may be discussed freely and precisely"}, + {"text": "The first time each scenario that you or an ally exhaust, perform: %heal% 3, %target% all, %ward%, %strengthen%"} + ] + } + ], + "monsterAbilities": [ + { + "name": "Baron Redpatch", + "cards": [ + ["Cruel Bow", 770, true, 29, "%move% - 1","*.........", "%attack% - 1", "^%range% 3,","^%wound%"], + ["Hasty Assault", 771, false, 40, "%move% + 1","*.........", "%attack% - 1"], + ["Trump Special", 772, false, 53, "%move% + 0","*.........", "%attack% + 0"], + ["Rancid Arrow", 773, false, 54, "%move% - 2","*.........", "%attack% + 0", "^%range% 3,", "^%poison%"], + ["Calculated Strike",774, false, 69, "%move% - 1","*.........", "%attack% + 1"], + ["Noxious Blade", 775, false, 92, "%attack% + 2", "^%poison%"], + ["Rapid Bolts", 776, false, 79, "%attack% - 1", "^%target% 2,", "^%range% 4"], + ["Greed", 777, true, 35, "%move% + 1", "^%jump%","*.........", "%attack% + 0"] + ] + } + ], + "monsters": { + "Baron Redpatch": { + "deck": "Baron Redpatch", + "display": "Baron Redpatch", + "gfx": "Bandit Scout", + "hidden": true, + "count": 6, + "levels": [ + { + "level": 0, "health": "7xC", "move": 2, "attack": 4 + }, + { + "level": 1, "health": "8xC", "move": 3, "attack": 4, "attributes": [ "%shield% 1" ] + }, + { + "level": 2, "health": "9xC", "move": 3, "attack": 5, "attributes": [ "%shield% 1" ] + }, + { + "level": 3, "health": "12xC", "move": 3, "attack": 5, "attributes": [ "%shield% 1" ] + }, + { + "level": 4, "health": "14xC", "move": 4, "attack": 5, "attributes": [ "%muddle%", "%shield% 1" ] + }, + { + "level": 5, "health": "15xC", "move": 4, "attack": 6, "attributes": [ "%muddle%", "%shield% 1" ] + }, + { + "level": 6, "health": "18xC", "move": 4, "attack": 6, "attributes": [ "%muddle%", "%shield% 2" ] + }, + { + "level": 7, "health": "22xC", "move": 4, "attack": 6, "attributes": [ "%muddle%", "%shield% 2" ] + } + ] + } + }, + "scenarios": { + "#MP The Baron's Blockade": { + "monsters": ["Bandit Archer (2e)", "Bandit Scout (2e)", "Flame Demon (2e)","Lurker Soldier (2e)"], + "sections": { + "#2": { + "monsters": [ "Baron Redpatch" ] + } + } + } + } +} \ No newline at end of file -- cgit v1.3.1