Changelog
What changed, newest first. Written from the git history; git log has the detail.
2026-11-26
- Installed app: blank strips on the top and left: the phone board's viewport tag now has
viewport-fit=coverso the installed (fullscreen) app draws under the status bar and cutout, and_document.tsxsetstheme-colorto the dark page colour. Not confirmed on a device yet; if it does not clear the strips, the fallback isdisplay: standalonein the manifest (a thin dark status bar, stable layout; needs a reinstall). - Fix: the lobby flickered Connected / Connection lost when two windows were open: the server gives a session to the newest window and closes the older socket with the reason
replaced, but the client reconnected after any close, so two windows (the installed app plus a browser tab share storage and so a session id; two tabs do too) took the session back from each other forever. Areplacedclose is now final: the lobby says "Another window is using your game session" with a "Use this window" button (OnlineClient.takeOver). Test:online/__tests__/online-client.test.ts. - Installable app (no browser bar on phones):
public/manifest.webmanifest(fullscreen, landscape, starts at/play) linked from_document.tsx, with placeholder icons cut from the Fighter hero avatar (icon-192.png,icon-512.png,apple-touch-icon.png; swap them for a real icon later). Android Chrome installs it over https (Add to Home screen); not tried yet. - Mobile, first slice (branch
feature/mobile-landscape, not yet tried on a real phone): on a phone (screen short side under 700 px) the board screens (/play,/play/local) set the viewport tag to a desktop-sized window of the phone's shape (phone-viewport.ts: 760 px tall, 1200-1700 wide) so the browser scales the whole board to fit and its layout, drag maths and effects stay as they are; the width comes from the visible window's shape (address bar excluded) so the hand is not cut off, and is re-measured 250 ms after a resize or rotation; held upright, a "Turn your phone sideways" prompt covers the screen (RotatePrompt.tsx, mounted byPlayLayout;?mdebug=1shows its numbers). A Fullscreen button was tried and removed: Android Chrome drops the page's viewport width in fullscreen and ignores any later change, so the board came back unscaled. Play is tap-to-select and tap-to-target (native drag does not work on touch). Also: the heroes, FAQ and store pages now scroll (the site root never does, so each page needs its own scroll area), and the root height usesdvhwhere supported so the bottom nav is not hidden behind a phone's address bar. - Version 0.1.0 (alpha), shown in the UI:
package.jsonis now0.1.0;next.config.jspasses it to the build asNEXT_PUBLIC_APP_VERSIONandVersionLabelshows "v0.1.0 alpha" under the lobby (beside Support) and in the board menu. Bumpversioninpackage.jsonfor each deploy. - Damage can wait for the whole effect, minions in the spells lab, and a shake preview (branch
feature/lab-minions-and-damage-delay): (1) A setting, on by default ("Damage waits for effects" in the/playmenu, kept in this browser; a checkbox in the lab, URLdelay=0turns it off) makes a spell's damage land when its whole effect has finished (spellFxTotalMs: the hit, the rest of its life and the volley), not at its first impact. The floating number, the hurt flash and shake, the table jolt and now the health shown (minion badges, and heroes' health and armor in the ring, figure and old bar) all use that one time, so they arrive together; the game's real state is never held back, only what is drawn (use-impact-delayed.ts). It is presentation only, so it works the same offline and online. (2) The lab lists minions with triggers or On Play effects (under "Minions", by card id, e.g. PRIME_245 whose end-of-turn blast can now be tuned). (3) The lab's sample minion takes a preview hit on each play (default 8, fielddmg) with the real board's badge, number and shake, and the screen shakes fromBIG_HIT_DAMAGE(4) up, as in a game. Checked: with a 3-shot volley the shake and the health change land together at the end (2.0 s) with delay on and at the first impact (1.2 s) with it off; in a game PRIME_245's 8 damage shakes the table. Heroes' prototype views (medallion, card) in the hero lab are not delayed. - Fix: "Attack hero" online left the server behind (the bot stopped answering): the button worked out every swing and the end of your turn on your own screen and set the board to the result without telling the server, so the server still waited for your turn (the bot sat idle until your 60 s clock ended it, and the damage only showed once a real server update arrived). Online it now sends the swings, then End turn, as ordinary actions and the server's answers play out. Test:
server/__tests__/attack-hero.test.tsruns the button's own action list through the server. Offline play is unchanged. - Fix: the board froze while a bot played, then caught up (online): the opponent-move preview held each move for about a second, and the timer that released it restarted whenever a new move arrived (
onlineis a new object on every update), so a bot making a move every 0.9 s kept pushing the release back until its turn ended. The timer now reads its inputs through refs and no longer restarts; a move is also not previewed when more moves are already waiting behind it (the board is behind and should catch up); and the server waits 1.8 s (botShownMoveDelayMs) after a bot move the board previews (card, attack, weapon swing, skill) so each preview can finish, 0.9 s after other moves. Bot turns with many actions take longer as a result. - Fix: spell effects looked different in the production build: the spells lab on bccg.io drew the Warden skill's octagon as a solid green, then orange, filled shape; locally (dev) it is a thin outline with a faint tint. A screenshot diff showed the static scene identical and only the effect different; a local production build reproduced it, and turning off Next's SWC minifier (
swcMinify: false, so Terser minifies) fixed it. The board uses the same effects code, so every spell effect was affected in production. Cause not traced to a line; Next 12.3's SWC minifier is the suspect. Revisit when Next is upgraded. - Server heartbeat and a clearer
/healthz: every socket is pinged every 20 s (HEARTBEAT_SECONDS) and one that does not answer is cut, so a closed laptop or a lost network starts the 60 s reconnect countdown instead of leaving the game waiting forever (a closed tab already did)./healthzand thestatslog line now reportgameCount(games being played) apart fromfinishedCount(finished games kept 10 minutes so both players can read the result); before, one number counted both. - Server logging: the game server prints one JSON line per event to stdout (Render's Logs tab):
match_start(humans, bot kind, heroes, whether the queue was skipped),match_end(winner, turns, seconds, why:play,concedeordisconnect),player_dropped,rejected(a refused deck or action, with its code) and astatsline every 5 minutes (sockets, queue, games). Never display names or session ids. - Online: the opponent's move is previewed before it happens: the AI shows what it is about to do (its picked card dropping from the hand, an aiming arrow when there is a target), but an online move arrived already done, so a human opponent's card and arrow never showed. Now a move by the opponent that plays a card, attacks, swings a weapon or uses a skill is held back: a card with no target shows picked in their hand for 0.7 s, one with a target shows the arrow for 1.1 s (the AI's
foeAim), then the move plays out as usual. Turn endings and your own moves are not held. Checked against a bot (the picked card shows); the arrow shares the AI's code but was not seen live. - Online fixes from the first two-window playtest: (1) a player who stays disconnected past the grace period now ends the game with "Your opponent disconnected, so the game was conceded for them." under the win banner (the server marks that update
note: 'opponent-left'), instead of a plain win; (2) the card popup and spell effect for a card the opponent plays now read the card from the server'sCardPlayedevent, because their hand is hidden; (3) a move that fails to animate can no longer leave a window on old state: the board catches the error and takes the server's state; (4) on a window 1100 px wide or narrower the log and deck list are hidden and open as popups from Log and Deck buttons beside Menu. - Online play (alpha):
/playis now the lobby: pick a hero and deck, then "Find match" (a searching panel with the wait and a bar toward the bot fallback, and Cancel), or tick "Skip the queue: play against a bot" to start a bot game at once (remembered). The old offline board (vs AI or hot-seat, debug params) moved to/play/local; the lobby and the/playmenu link to each other. Details: - Online play server: a game server (
server/, one Node process that also serves Next) runs the engine as the only copy of the game. Players search in a queue; two people are paired at once, and after 30 seconds (QUEUE_WAIT_SECONDS) a lone player gets a bot, the greedy one 90% of the time and the random one 10%. The server checks whose turn it is, keeps the turn clock (the board shows the server's), and sends each player a view with the opponent's hand, deck and face-down Mystery hidden (redact.ts). A player who drops has 60 seconds (RECONNECT_GRACE_SECONDS) to come back to the same game (a session id in localStorage), then concedes. Decks are checked on the server (exactly 30 cards, copy limits, only cards the engine can play, class cards only for their class). Sockets from other sites are refused (ALLOWED_ORIGINS) and messages are rate limited. No accounts: name, colour and decks stay in localStorage. The board seats you as Player 1 whichever seat you hold (seat-flip.ts).render.yamldeploys it on Render (a paid instance, so the queue is not lost to sleep); a "Support the game" link (Ko-fi;NEXT_PUBLIC_SUPPORT_URLoverrides it) shows in the lobby and the board menu. Tests inserver/__tests__/andonline/__tests__/.
2026-11-25
- A broader base for spell effects (pictures everywhere, more styles, events, an easy way to add pictures): (1) Pictures: the picture fields are shared (
sprite,spriteSize,spriteTurn,spriteSpin,spriteDepth,spriteScatter,spriteStick,spriteFade; the oldtravelSprite...names are gone), a spin makes a thrown axe or potion tumble, and any of Travel (flies and sticks), Strike (strikeHasSprite, falls point-first) and Spot (spotHasSprite, pops up and rises) can show one. Fourteen more pictures are cut intopublic/images/fx/sprites/(axes, spear, war hammer, morning star, curved dagger, two shards, three potions, a beast skull, two shields);npm run fxsprite -- <png | pack:icon> <id> "<label>"adds more, and the list inspell-fx-sprites.tsis now the single source for the lab drop-down and the choices. (2) Strike: abeamstyle (a straight shaft that reaches the target overstrikeBeamGrowms; thickness up to 8) next to the lightning, and astrikeAnglelean from vertical for both (and for falling pictures), for an angled beam such as PRIME_202's. (3) Area:shockwave(rings from the middle) andrain(drops falling, or rising as a surge) joinswirlandsweep. (4) Events:heal,buffanddeathjoinsummonas event effects (a spot on what was healed, buffed or killed), off until you bake a look for them (baking writes theirEVENT_FXentry). (5)CLAUDE.mdhas a new Spell effects section covering all of this. - Global spells: a new
areabase, first used on Molten Cyclone (CORE_098): a fourth base for untargeted spells that plays once over a side of the board (the enemy's, yours or both;areaRegion), not on each target. The region is the box around the minions it covers plusareaPad; it needs no damage to play, the table shakes (areaShake), the screen flashes in the bright colour (areaHasFlash), and the per-target hit flashes still play on top. Two styles:swirl(the default; spiral arms of fire turning in to an eye, edge-bright and body-orange like the card's cyclone art; arms, turns, spin, band width) andsweep(a wavy band of fire crossing the region left to right, right to left or out from the middle). Both shed embers (areaEmbersper second) and are softened by a blur; damage landsareaImpactMsinto it. The lab has Region and timing, Look, Swirl, Sweep and Shake and flash sections and draws the region as a dashed box (it follows the targets and the padding). Volley repeats it.CORE_098is assignedarea; its look is the defaults for now. - Travel: stretched head and flailing streamers (to echo CORE_069's art): the glowing head can stretch along its flight (
travelStretch, 1 = round; at 3 it reads as a white-hot beam point), and a new option, "Flailing streamers off the head" (travelHasStreamers), draws wispy strands that run back from the head, fan out toward their tips, thin and fade as they go, and each flail on their own phase; they grow out of the head overtravelStreamerGrowms (0 = appear at once) instead of popping in, and keep flailing and fading fortravelStreamerLingerms after the hit. Sliders: how many, length, wave, flail speed, fan-out, width, opacity, colour. Off by default, so no look changes. - Travel can fly a picture instead of the orb (daggers for Dagger Throw, CORE_125): a new travel option (
travelHasSprite, "Fly a picture instead of the orb" in the spells lab) flies a PNG from the caster, turned so its point leads along the flight, and sticks it into the target point-first: it lands a little off-centre (travelSpriteScatter), sinks in (travelSpriteDepth), stays fortravelSpriteStickms, then fades overtravelSpriteFadems; size and an extra turn are sliders. Six blades are cut from the author's weapon packs intopublic/images/fx/sprites/(192 px, transparent): green, purple, cyan curved, pale curved and orange daggers, and the bone dagger;spell-fx-sprites.tslists them with which way each points, and the lab has a drop-down. The orb's own knobs hide while a picture is on. CORE_125 has a first look baked (green dagger, 420 ms, no trail, 6 impact sparks, 200 ms between its two daggers). Test:spell-fx-sprites.test.ts(a file for each picture, and the lists agree). - Volley: how many animations to play and the delay between them, plus several targets in the spells lab: two numbers in the tune,
volleyCount(animations per target hit, default 1) andvolleyDelay(ms between each animation, across targets too, default 120), shown in a "Volley" section for every base. In /play each damaged target playsvolleyCounttimes and every animation startsvolleyDelayafter the one before (Arcane Volley's three random targets fire one after another); a spot effect repeats in place. The shot, its hit flash and its sparks are staggered; damage numbers, death ghosts and sounds still land together at the base impact time. Fix found while testing: the lab's delayed shots all aimed at the last target (a closure over a loop variable; seeCLAUDE.md), and the summon effect's delayed callback is now built the same safe way. The lab has a "Several targets" checkbox with a 2 to 6 count (extra targets sit around the first, the first stays draggable), and plays the same sequence, scaled by the preview speed.shoot,spotandflashHittake a delay. - Spells lab: "Copy a look from another spell": a drop-down (spells that already have a saved look) copies that spell's look and base effect onto the spell you are editing as unsaved changes (only the fields that differ, as
s_...params), so you can tweak it and bake it into the new spell withnpm run spell. It is an independent copy, not a link (useSPELL_FX_PARENTSfor a link). "Carry my numbers" is unchanged and only carries your unsaved tweaks. - Double-click casts a global spell or item: a quick double-click on a hand card that needs no aim (an untargeted spell or item, such as a damage-all spell) casts it at once, like a double-click already plays a minion at the right of your board. A card that needs a target, a choose-one card or a card with more than one untargeted way to play still just gets selected.
- Fix: an orb from a trigger comes from its minion, not your hero: damage from a triggered effect (PRIME_102's end-of-turn blast) flew from your hero's box, which read as coming from the skill-1 socket.
TriggerFiredevents now carry theinstanceIdof the minion (or weapon) whose trigger fired, and the board attributes the damage events that follow to it: the orb starts at that minion and uses that card's own look (CARD_FX/SPELL_FX_VARIANTSkeyed by its card id). Only a hero skill starts at its skill socket, and a card from hand at its hand slot. Checked: PRIME_102 at turn end sends orbs from its own slot to your hero, the enemy hero and the enemy minion. New testprime-102.test.ts. - PRIME_176 (Shaman Wudu) checked, engine unchanged:
prime-176.test.tsshows it heals nothing and keeps its Health when it is alone and unhurt, and that its heal of 3 stops at the target's maximum Health. - A skill can start from another look (Crusader 1 and Mystic 1 start from
summon), and a first Warden 1:SPELL_FX_PARENTS(inspell-fx-tune.ts) names a parent for a spell: its look is the defaults, then the parent's saved numbers, then its own, and its base effect is inherited too.CRUSADER:1andMYSTIC:1havesummonas parent, so the lab opens them on the summon look ("Starts from the summon look; your numbers go on top") and, in /play, the minions they summon use the skill's tweaks instead of the plain summon effect.npm run spellmeasures a child against its parent (a value equal to the default but not to the parent's is kept) and drops a base that equals the inherited one. Warden 1 (Shapeshift,WARDEN:1) now has a first look baked: a forest-green octagon pulsing in place twice over amber motes rising from a 60 px scatter. - Spot rings can be blurred, per ring, and
npm run spellhandles unquoted keys:spotRingBlur(px, 0 = crisp) softens the first ring andspotRingBlurStepadds that much blur to each later ring (shown in the lab only with 2+ rings); each ring is its own layer with its own blur filter, and no blur adds no filter. Fix: after Prettier removes the quotes from a plain-word key (summon: {),npm run spellno longer found the entry and could write a second'summon'key (a duplicate-key error); it now reads quoted and unquoted keys (test added). - Spells lab: sample minion and board background checkboxes: "Show a sample minion as the target" (URL
minion=1) puts a real board minion (CORE_027) on the target circle, for a sense of scale, and "Show the default board background" (board=1) lays the board's saved background (lbgf/lbgdfromPLAY_LAYOUT, so it follows the board lab's baked look) behind the stage. Preview-only; neither is saved with an effect. - A summon effect for every minion that is summoned or played (Crusader 1 and the rest): a new event key
summon(EVENT_FXinspell-fx.ts, its look inSPELL_FX_VARIANTS['summon'], listed first in the spells lab as "Minion summoned (every summon, event)") plays a spot effect on eachMinionSummonedandMinionPlayedevent: a skill's recruit and tokens after a short render wait, a played minion as its card arrives from the hand. It is centred where the minion will rest (layoutCenterinmotion.ts), not where its drop-in animation has it at that moment. First look, baked withnpm run spell: a thin ring closing in over ten sparks converging from 50 px, pale gold and ice, 450 ms.npm run spellaccepts event keys. Crusader 1 needs no entry of its own (its recruit is a summon). - Spot effect knobs for aura looks (heals, buffs):
spotgains pick-one options and numbers. Rings can open outward, close inward or pulse in place (spotRingsMotion) with an adjustable tint inside (spotFillAlpha); sparks can go outward, rise like drifting motes (staggered) or come inward (spotSparkMotion), with speed, life, size and a start scatter over a disc (spotSparkSpeed,spotSparkLife,spotSparkScale,spotSparkSpread). Every default reproduces the old look, so the baked Fighter-1 nova is unchanged. Pick-one fields are listed inSPELL_FX_CHOICES(the lab shows a drop-down, the tune parser andnpm run spellaccept only the listed words). - A hero skill's travel effect starts at the skill's own socket: the orb for a skill (Ranger 1, say) flies from that skill's socket on the hero (
s<owner>-<skill>, already tracked for the aim arrows), not from the hero's centre. It reads the skill number from the action, so skill 2 and the ultimate start at their own sockets with no further change; a card still starts at its hand slot. - Spell effects are on by default on /play;
?fx=offturns them off: the Pixi layer loads in the background on every /play, and spells, hero skills, hit / heal / buff flashes and spot effects use it (?fx=pixi,?projectile=1and?hitflash=1are gone and now do nothing). If the layer cannot start (no WebGL) the DOM orb and flashes play instead.?fx=offskips the layer and all spell effects. npm run spellbakes a spells-lab URL into the game:sp=<spell>plus itss_<field>params become that spell's entry inSPELL_FX_VARIANTS(merged over the old entry; values equal to the default are left out, so a later change of the defaults still reaches the spell),e=<base>assigns its base inSKILL_FX/CARD_FX,--defaultswritesSPELL_FX_DEFAULTSinstead and--dryonly shows the changes; nothing is written for an unknown spell, field or value. First use: the Fighter's first skill (FIGHTER:1) now plays its tuned blue-and-teal nova with 20 sparks and an 8x glow. Tests inscripts/__tests__/apply-spell-url.test.ts.- Spells lab: preview speed slider: a slider under the Loop / Replay boxes (5% to 200%, URL
speed, not saved with the effect) plays the preview in slow motion without touching the effect's own milliseconds (setSpeedon the Pixi layer scales every effect's clock; the loop gap scales with it). Moving it replays the effect at the new speed. - Spell effect bases are named by anchor, and the lab shows only the knobs a base can use:
orb/lightning/novabecametravel(flies from the caster to each target),strike(falls from above onto each target) andspot(centred on a place, needs no damage), and every tune field was renamed to match (travelMs,strikeBranches,spotRadius; the shared hit sparks areburst...), so olds_orb...URLs no longer apply (nothing had been baked). A base is built on with options,has...flags in the tune (travelHasTrail,strikeHasForks,strikeHasFlash,spotHasGlow,spotHasSparks): the lab shows a section only for the bases that can use it, and an option's sliders only while its box is ticked (untick the trail and its five sliders disappear). The lab's picker labels read Travel / Strike / Spot. New looks (a beam, a meteor, a pillar) slot in as a style choice under a base. - Spot effects, and a shield nova for the Fighter's first skill (with
?projectile=1&fx=pixi): effects now have an anchor (SPELL_FX_ANCHOR):travel(orb) andstrike(lightning) play on each target a spell damages,spotplays once, centred on the spell's target or, with none, on the caster's hero, and needs no damage (the Fighter's skill isaddArmor(2), which damages nothing). The first spot kind isnova: hexagonal rings (steel, then gold) open from the spot over a soft glow, with a ring of sparks; rings, reach, corners (6 = hexagon, 48 = circle), thickness, glow, sparks and both colours are sliders in the spells lab.FIGHTER:1is assigned the nova. A spot effect only draws with the Pixi layer loaded. - Spells lab (
/spells-lab, dev) and a tune for the spell effects: every number of the orb and lightning effects is now one field ofSpellFxTune(spell-fx-tune.ts, defaults inSPELL_FX_DEFAULTS, equal to the old constants so /play looks the same), read each time an effect plays. The lab plays the chosen effect between a draggable caster and target on a blank stage, with a slider per number, colour pickers, Space to play, loop, and replay-on-change; a setup is the page URL (s_<field>). The orb's trail is now a continuous stream (puffs are spread along the frame's path). A search box (type a name or id) and Prev / Next step through every spell card (neutral and class, CORE and PRIME) and hero skill, 151 now; picking one loads its assigned effect and its saved look (SPELL_FX_VARIANTS, empty for now), and "Carry my numbers" keeps your sliders when you move on, to copy a look to another spell. Effects now take the tune they should play as an argument (tuneForSpell(key)in /play), so two spells can look different. Not baked yet: there is nonpm runscript, so a tuned look lives only in the URL. - Spell effect kinds, and a lightning strike for the Wizard's first skill (with
?fx=pixi):spell-fx.tsmaps a hero skill (SKILL_FX, keyedWIZARD:1) or a single card (CARD_FX, keyed by card id) to an effect kind, and the default is the orb, so a skill never borrows a card's look and a card can get a one-off.lightninggathers a blue glow on the target, then drops a jagged, forking, flickering bolt from the top of the screen with a screen flash and blue sparks (160 ms to strike); without Pixi it only flashes. The orb also got a two-layer glow and an orange tapered trail. - Pixi effects layer on /play (opt-in
?fx=pixi, branchfeature/pixi-fx): loadspixi.js7 as a separate chunk and draws one transparent full-screen canvas over the page (pixi-fx.ts). With?projectile=1the spell orb becomes an additive-glow orb with a particle trail and a sideways arc, and?hitflash=1flashes also throw a ring of sparks coloured by hit, heal or buff. Until it has loaded, or if it fails, the DOM effects play. Proof of concept; look not tuned. - Heal and buff flashes on /play (with
?hitflash=1): a healed character flashes green (Healedevent) and a minion that gained Attack or maximum Health from a spell, skill or aura flashes gold (buffedMinionIdsinminion-model.tscompares the boards before and after); the hit flash stays white.flashHittakes a tone. Not committed to default yet. - Spell projectile on /play (opt-in
?projectile=1): a glowing orb flies to each target a spell or hero skill damages, from the spell card's slot in your hand (from the hero for a hero skill, or for the enemy's cards, whose hand has no slots) (shootinmotion.ts, 280 ms). The hit waits for it: the target flash (?hitflash=1), damage numbers, table jolt and a killed minion's death ghost all land on arrival. Skipped for reduced motion and when the caster is the target. - Spell hits flash their target on /play (opt-in
?hitflash=1): a minion or hero a spell damages brightens and fades back (flashHitinmotion.ts, 320 ms, same impact delay as the table jolt). A minion that dies gets its death ghost instead; attacks are unchanged; reduced-motion skips it. Off by default until the author has looked at it. - Fix: Rusted Warden (PRIME_070) no longer starts with a Bubble: a minion's printed keywords come from its
mechanicstags, and the warden is taggedBUBBLEbecause its On Death grants it, so it was created with one (a Pit Trap's 5 damage on its 4 Health popped the Bubble instead of killing it, and the log read "Bubble pops"). Its definition now listsconditionalKeywords: ['bubble'], like PRIME_160. Regression testengine/definitions/__tests__/prime-070.test.ts. Four CORE/PRIME cards look like the same case and are waiting on the author: CORE_110, CORE_059, CORE_062 and PRIME_098. - Fix: a big spell hit jolts the table on /play: the jolt (4 or more damage from one action) was only triggered by attacks, so an 8-damage spell never shook the board. It now fires for any action that deals that much, with the spell's usual 190 ms delay (
BIG_HIT_DAMAGEinPlayBoard.tsx). - Conceded event, and right-click a hand card for its big view: conceding now pushes
Conceded { player }beforeGameOver, and the log reads "Player 2 conceded" ahead of "Player 1 wins!" (so the other player can tell a concede from a kill). Right-clicking any card in your hand, playable or not, opens the collection's card view (CardDetailOverlay), like right-clicking a minion; while something is selected, right-click still cancels the selection instead. - Concede works on the enemy's turn: the
/playmenu's Concede is no longer greyed out when it is not your turn. The engine action is nowConcede { player? }(the active player when left out), so the player at the bottom concedes for themselves and the enemy's queued AI move is dropped silently. - Minion attacks wind up like the hero's, and a broken weapon stays until its swing ends: a minion's attack is now the same lift, hang, slam and settle as the hero's, lighter and quicker (680 ms, lifts 14 px, impact at 300 ms), replacing the old pull-back lunge (
lungeFramesis gone;swingFrames(to, swing)is shared). Its shadow lifts too: the dark outer layer of the oval's box-shadow lifts away while any ring and the inset edge stay (minionShadowFrames). The numbers are a second tuning set,lnw...URL params (hero-swing-tune.tsnow makes the hero setlsw...and the minion setlnw...), edited in the board lab under Animations > Minion attack and baked bynpm run boardlike the hero's. Impact time (the target's shake, numbers, sounds) follows the attacker's kind. A weapon that breaks on its last use is held on the hero bar, at 0 durability, until the hero's swing is over (it used to vanish the moment the state dropped it). - Fix: a hurt minion shakes as one piece: the attack and health badges, keyword icons and name did not move with the oval (and the Mythic frame, Guard shield and Bubble each needed their own shake).
MinionFacenow puts every layer except the dust and the floating numbers in one.bodywrapper that fills the slot, and the shake moves that, with thetranslateandrotateproperties so the layers' own transforms are untouched. The board lab's hero swing preview shakes the same wrapper. - Fix: the Mythic frame, Guard shield and Bubble now shake with their minion when it is hurt (they are separate layers behind or over the oval, and only the oval had the shake). A hero's attack also cut the shake short: the hurt flash lasted 500 ms from the health drop, but the hero slam lands at 420 ms, so the shake was removed 80 ms in. The flash now lasts the impact time plus the shake (
getImpactMs()), and a spell after a hero attack no longer inherits the hero's later impact time. - Board lab: Animations tab with a Hero attack sub-tab: the lab's tab bar now has a second row for tabs that have sub-tabs (
LabSubTabBar,sectionsForinlab-sections.tsx). Animations > Hero attack has a "Play swing" button (aims at the enemy hero or an enemy minion; on contact the target shakes, a red damage number floats up and a big hit jolts the table, with no real damage), a Repeat checkbox that loops it (the target's oval, Mythic frame, Guard shield and Bubble shake together), an example-damage box and 13 sliders for the swing: timing (whole swing, impact, lift, slam, hold), motion (lift height and size, impact size, reach, settle squash) and the lifted shadow. The numbers live inhero-swing-tune.ts(lsw...URL params);npm run board -- "<url>"bakes them intoPLAY_LAYOUTand/playreads them from there (getHeroSwing). The preview-aim switchlswpvis skipped by the bake, like otherpvkeys. The swing animates the hero's own default shadow (any glow is kept, only the dark drop-shadow lifts away and returns to exactly the default), instead of adding a second one (heroShadowFrames). - Mythic minions get a frame, and heroes swing with weight: a Mythic minion on the board has the crest and wing spikes of the card frame art behind its oval (
public/images/minion-frames/MYTHIC.png, cut frombg_Common.pngand tinted red). A hero's attack (WeaponAttack) now rises toward you with its shadow dropping away, hangs, slams in at 420 ms (minions still hit at 190 ms; the shake, damage numbers and sounds followgetImpactMs()), then drifts home and settles with a small squash (heroSwingFramesinmotion.ts). The board lab's first-visit defaults put a Mythic minion on each side. - Neutral minions, batch 2: PRIME_026, 027, 028, 031, 032, 033, 034, 035, 065, 066, 067, 068, 070, 095 and 104 have new art (Fantasy Character Classes 02, 03 and 04, Dungeon Guards 04, Lava Creatures and pack 07 cutouts, on RPG Backgrounds), cut with
npm run art -- --minion; not yet matched against all existing art. With the author's approval, those 15 AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-neutral-2.json), and six got names: PRIME_031 Mars Lander is now Orbital Sentinel, 034 Warpig Knight is Minotaur Reaver (its token 034a Warpig Mercenary is Minotaur Recruit, and the card text says so), 065 (unnamed) is Spellward Guard, 066 Ulan Gladiator is Pit Champion, 067 Android Infiltrator is Hollow Agent and 104 Perses; Titan of Destruction is Ruinwatcher.data/prime.jsonanddata/entourage.jsonwere pulled; comments, two test titles andRULES.mdfollow. - Neutral minions, batch 1: PRIME_022, 023, 043, 045, 048, 049, 080, 087, 088, 089 and 093 have new art (Fantasy Character Classes 02, 03 and 04, and pack 07 cutouts, on RPG Backgrounds), cut with
npm run art -- --minion. Not yet matched against all existing art. With the author's approval, those eleven AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-neutral-1.json); PRIME_043'sracewent from Android to none (a human guard); PRIME_023 (unnamed) is Shardhide and PRIME_089 Sir Jorio is Lord Verrin.data/prime.jsonwas pulled; comments andRULES.mdfollow. - PRIME_169 and its weapon are done (by the author): the Mythic is now Lyra, Keeper of the Shattered Crown (was Paladin of the Shattered Mirror) with new art, and its token weapon PRIME_169a is The Broken Pendulum (was Mace of the Shattered Mirror, now active, Mythic rarity, with art); the card text says "equip The Broken Pendulum". The author made the art and the Airtable edits (a-ravlik credit, FINAL) and pulled
data/; the comment inprime-169.tsfollows. Crusader has no FPO cards left. - The Wrong Door's mice are now Sentry Recruits: the token PRIME_157a (Doorway Mouse) is now Sentry Recruit, a gold-helmed hoplite with a shield (Fantasy Character Classes 04
10on03_bg_04, cut withnpm run art -- --minion). With the author's approval, two AirtableCARDSrecords were written: PRIME_157'stextnow reads "... two 1/1 Sentry Recruits with Bulwark; the attack hits a Recruit" (it said Mice), and PRIME_157a gotname,artistName(a-ravlik),artistUrlandartStatus(FINAL); the old values are inart-inbox/replaced-values-157.json.data/prime.jsonanddata/entourage.jsonwere pulled; the comment inprime-157.tsandRULES.mdfollow. - Crusader spells get new art: PRIME_156 to 159 and 162 to 168 use a-ravlik icons from
art-assets/(a pink magic barrier, a wooden trap, a spectral claw, steel crossed swords, a pink burst, a rock fist, a blue rune card, a winged shield, a steel mace, a radial burst, a heart with a plus), cut withnpm run art. Each was checked against all existing art first (the first picks for 159, 163 and 168 were already used, so those three were swapped). With the author's approval, those eleven AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-crusader-spells.json), and five got names: PRIME_162 Ready to Rumble is now Great Equalizer, 167 Sorcerer's Dance is Radiant Barrage, and 164, 166 and 168 (all unnamed) are Fortune's Edge, Conscript's Cudgel and Moment of Grace. PRIME_157's name was kept (The Wrong Door).data/prime.jsonwas pulled. Crusader's only FPO card is PRIME_169. - Crusader minions PRIME_160 and 161 have new art: a hooded fire mage with a flaming book and an old man with a pouch (Fantasy Character Classes 03, a new pack, on RPG Backgrounds), cut with
npm run art -- --minion. With the author's approval, those two AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-crusader-minions.json);data/prime.jsonwas pulled. PRIME_169 is still FPO: the options are being picked from Classes 02 and 04 (also new). - Assassin minions get new art: PRIME_189, 189a (the bandit token), 193, 195, 197, 198 and 199 use creature cutouts (pack 07, Beastmen and Dungeon Guards 04) on RPG Backgrounds, cut with
npm run art -- --minion(where each came from is inART-LICENSES.md; not matched against all existing art yet). With the author's approval, those seven AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-assassin-minions.json), and six got names: PRIME_189 Lanternbearer, 193 Hooded Cutter, 195 Cloak Broker, 198 Gravehook, 199 Frenzied Stalker (all were unnamed), the bandit token 189a Alley Cutthroat (was "Defias Bandit", another game's name) and 197 Horned Skirmisher (was "Kabuki Warrior").data/prime.jsonanddata/entourage.jsonwere pulled. Assassin has no FPO cards left. - A satisfied Flow glows in the hand: when you have already played a card this turn, a playable hand card with a Flow (Combo) effect pulses a soft gold halo, and its bold "Flow:" in the text glows and breathes (
isFlowOnonCardFace,isComboOnnow exported from the engine). Reduced-motion shows a steady glow instead. Hand cards only so far; not checked in a browser. - Board lab: Flow glow knobs: the Hand tab > Hands section has a "Flow glow (a satisfied Combo)" group:
lxghcolour (hue, deg),lxgb/lxgacard halo at rest and at its peak (card units),lxgohalo opacity,lxgdpulse period (ms),lxgkkeyword glow size (% of text) andlxggkeyword peak brightness; the checkboxlxgpv=1treats Combo as on so you can tune it without playing a card first, and ticking it puts a Flow card (PRIME_189) in your hand and setse0=10if you had no energy set (that restarts the board, like any setup change). The knobs bake intoPLAY_LAYOUTwithnpm run boardlike the others (lxgpvis skipped on purpose). Checked in the headless browser: the keyword and both cards glow, the variables and the period reach the card. - Assassin spells and items get new art (the first half of Assassin): PRIME_185, 186, 187, 188, 190, 191, 194 and 196 use a-ravlik icons from
art-assets/(hooded cloak, falling coin bag, crossed scimitars, glowing sword, teal curved blade, steel dagger, bomb with pink smoke, cage lantern), cut withnpm run art. With the author's approval, those eight AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-assassin-spells.json), and four got names to fit the art: PRIME_186 Gift Box is now Blackmarket Bundle, 194 Ignition is Smoke Bomb, and 188 and 191 (both unnamed) are Honed Edge and Returning Dirk.data/prime.jsonwas pulled. The Assassin minions (189, 193, 195, 197, 198, 199 and the 189a token) are next.
2026-11-24
- PRIME_243 (Glacial Crescent) is destroyed by a hero hit: a bot hit the player's hero and the weapon only lost 1 Attack. A swing at a minion still costs 1 Attack, but a swing at a hero now uses all of it and breaks the weapon (
weapon-attack.ts,RULES.mdAppendix C, test updated). With the author's approval, that one AirtableCARDSrecord'stextnow reads "Degrades by 1 each use on minions; unleashed against heroes" (first tried "When attacking minions, lose 1 Attack each time; uses against heroes uses ALL Attack and destroys it") (it was "When used, lose 1 attack instead of 1 %DURABILITY%");data/prime.jsonwas edited by hand to match, with no pull. - "Shadowform" is now "Penumbra" in the engine: it was another game's term. The replaced hero skill on
/playis named Penumbra,enterShadowformisenterPenumbra,HeroState.shadowformispenumbra, and the code comments, a test andRULES.mdfollow. With the author's approval, the PRIME_181 Airtable text now reads "Your Class Skill becomes 'Deal 2 damage'. If already in Penumbra: 3 damage." (it said "Hero Power" and "Shadowform"; the old text is saved inart-inbox/replaced-text-181.json) anddata/prime.jsonwas pulled. - Fighter art batch (all but Snap): PRIME_230, 231, 232, 234, 235, 236, 238, 239, 240, 241 and 244 have new art (FPO replaced). Spells and the item use a-ravlik icons from
art-assets/; the minions (232, 235, 239, 244) are creature cutouts (pack 07 and Lava Creatures) on RPG Backgrounds, cut withnpm run art -- --minion. With the author's approval, those eleven AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-fighter.json), and seven got names: PRIME_230 Reckless Strike, 235 Armsmaster, 236 Quick Forge, 240 Desperate Cleave (all were unnamed), and three renames to fit the art: 238 Ring of the Lucii is now Deathless Regalia (a jeweled golden orb), 241 Outer Beam is Aegis Discharge, 232 Blessed Shaman is Wispbroker (a blue umbrella ghost). PRIME_242 (Snap) is deliberately left on FPO art: the author wants a Thanos-snap look and none of the catalog options (gauntlets, a ghost hand, an hourglass) worked. Fighter has one FPO card left (85 cards and 14 tokens remain overall). - PRIME_178 (Diminish All) has real art: its
-CARDand-DECKfiles were the old repo's grey "no image" icon, so the card showed a picture-frame icon instead of the placeholder (the file existed, so the fallback never ran) and it had noartStatus. It now uses the breaking-chains icon (elemental-magic-icons9984, a-ravlik) cut withnpm run art. With the author's approval, that one AirtableCARDSrecord gotartistName(a-ravlik),artistUrlandartStatus(FINAL), nothing else (it had no old credit);data/prime.jsonwas pulled. Cleric has no cards without real art left. - Cleric art batch: PRIME_170, 173, 174, 175, 176, 177, 179, 180, 181, 182, 183 and 184 have new art (FPO replaced). Spells use a-ravlik icons from
art-assets/; the six minions are pack 07 cutouts on RPG Backgrounds, cut withnpm run art -- --minion. With the author's approval, those twelve AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-cleric.json), and four unnamed cards got names: PRIME_173 Mind Siphon, 177 Tablet Wight, 181 Shadow Pact, 182 Stolen Echo. Not changed: PRIME_179 is still "Malevolent Cephalopod" (a spell with a creature's name), and PRIME_181's text still says "Shadowform". Cleric has no FPO cards left (96 cards and 14 tokens remain overall). - Wizard art batch: PRIME_141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153 and 154 have new art (FPO replaced); PRIME_140 (an item, renamed from Tome of Spells to Scroll of Spells, art
rpg-loot-icons-019294 fromart-assets/) was finished right after. Spells use a-ravlik icons fromart-assets/; the five minions (141, 142, 147, 149, 154) are creature cutouts (pack 07 and RPG Monster Pack 15) on RPG Backgrounds, cut withnpm run art -- --minion. With the author's approval, those fifteen AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-wizard.json), and six cards got names: PRIME_144 Borrowed Form, 145 Rime Burst, 153 Doom Comet (all were unnamed), and three renames to fit the new art: 142 Demon Sorcerer is now Crimson Hexer, 141 Fierce Gremlin is Bloomeye, 150 Firefall is Firestorm.ART-LICENSES.mdrecords where the Ranger and Wizard creatures come from; RPG Monster Pack 15 is still not in its table. Wizard has no FPO cards left (108 cards and 14 tokens remain overall). The old credit for 140 is inart-inbox/replaced-values-wizard-140.json. - Ranger art batch: PRIME_126, 127, 129, 130, 131, 132, 133, 135, 137, 139 and the Wolf token 131a have new art (FPO replaced). Spells and the item use a-ravlik icons from
art-assets/; the Wolf (pack 1502) and 139 (Lizardman Army10) are creature cutouts on RPG Backgrounds, cut withnpm run art -- --minion. With the author's approval, those eleven AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-ranger.json), and six cards got names: PRIME_130 Culling Shot, 131 Call of the Pack, 133 Misdirection, 135 Cluster Bomb, 139 Verdant Triune, and the token 131a (was "Wolf") is now Moonhowler. Not checked: the new creatures against existing card art, and RPG Monster Pack 15 is not inART-LICENSES.md. The pull also brought in anactivefield ondata/classes.json. Ranger has no FPO cards left (123 cards and 14 tokens remain across the other classes). - Roadmap: art replacement status noted:
ROADMAP.md(Milestone 4) now records which classes are finished, what is left (133 cards and 15 tokens still FPO), the art workflow that worked, and the loose ends from these passes. - Necromancer art batch: PRIME_215, 216, 217, 218, 219, 220, 221, 222, 224, 225, 226, 227, 229 and the Husk token 224a have new art (FPO replaced). Spells (216, 218, 219, 224, 227) use a-ravlik icons from
art-assets/; the eight minions and the Husk are pack 07 character cutouts on RPG Backgrounds, cut withnpm run art -- --minion. With the author's approval, those 14 AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-necromancer.json), and three cards got new names: PRIME_220 Ancient Portal is now Gloomlantern (the art is a lantern, so the old name no longer fit), PRIME_222 Maw of Hunger and PRIME_226 Blood-Pact Brute (both were unnamed). Not changed, but worth a look: PRIME_218's name "Triton Sorcerery" looks like a typo, PRIME_221 (an Android) now shows a stone gargoyle and PRIME_215 (a Sprite) shows a brain on stalks. Necromancer has no FPO cards left. - PRIME_111a (Unleashed Potential) is credited: its art was already in place (the thorny vine,
rpg-skills-icons-03-rpg03_009, found by an exact pixel match againstart-assets/). With the author's approval, that one AirtableCARDSrecord gotartistName(a-ravlik),artistUrlandartStatus(FINAL), nothing else;data/entourage.jsonwas pulled. Warden has no FPO cards left. - The Treant option cards have art: PRIME_125a (Grove Blessing) uses a green healing-rain icon from
art-assets/, and PRIME_125b (Call of the Sentries) shows two Wheatwood Sentries side by side (pack 0728, the second mirrored, on04_bg_04). With the author's approval, those two AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), nothing else;data/entourage.jsonwas pulled. Only PRIME_111a (Unleashed Potential) is left in Warden. - Warden art batch, and the "Treant" name is gone: PRIME_111 to 125 (all fifteen FPO cards) plus tokens 122a and 125c have new art. Spells and the item use a-ravlik icons from
art-assets/; the minions (115, 119, 123, 124, 125) and tokens (122a, 125c) are pack 07 character cutouts on RPG Backgrounds, cut withnpm run art -- --minion. With the author's approval, the AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (old values saved toart-inbox/replaced-values-warden.json), and four unnamed cards got names: PRIME_117 Rending Reprisal, 118 Roaring Resolve, 122 Wild Charge, 125 Gale-Wing Alpha. "Treant" was the name of a minion in another game, so PRIME_125c is now Wheatwood Sentry, PRIME_125b is Call of the Sentries (text "two 2/2 Wheatwood Sentries"), and PRIME_125's text says "Wheatwood Sentries with %BULWARK%" instead of a typed "Taunt" (the other game's word for Guard). The Choose One label and a comment inprime-125.ts, and a test title, follow. PRIME_111a, 125a and 125b (the option cards) are still FPO. - PRIME_207a, the token Fist of the Earth summons, is named and has art: the gold armoured warrior with a mask shield (pack 07
42) on RPG Backgrounds04_bg_02, cut withnpm run art -- --minion. With the author's approval, that one AirtableCARDSrecord gotname(Wardstone Guardian),artistName(a-ravlik),artistUrlandartStatus(FINAL), nothing else;data/entourage.jsonwas pulled. - Eleven Mystic cards get new art (the FPO art is replaced): PRIME_200, 201, 202, 203, 205, 206, 207, 208, 209, 213 and 214. Spells (201, 202, 203, 206, 207, 208, 209) use a-ravlik icons from
art-assets/; the four Element minions (200 Molten Golem, 205 Nature's Fury, 213 Lava Titan, 214 Spirit of the Night) are character cutouts (Characters Cards Pack 07 and Lava Creatures) on RPG Backgrounds, cut withnpm run art -- --minion. Each creature was checked against all existing card art first. With the author's approval, those eleven AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), replacing the old artists' credits (ArtStation and similar links, saved toart-inbox/replaced-art-credits-mystic.json), and PRIME_207, which had no name, is now Fist of the Earth. Nothing else was written;data/prime.jsonwas pulled. Mystic now has no FPO cards. - PRIME_271a (Hellspawn) has art: the red spiked demon from Lava Creatures (a-ravlik,
09) on RPG Backgrounds04_bg_08, cut withnpm run art -- --minion(271a-CARD,-DECK,-MINION). With the author's approval, that one AirtableCARDSrecord gotartistName(a-ravlik),artistUrlandartStatus(FINAL), nothing else;data/entourage.jsonwas pulled. - Five PRIME minions have art, names and credit: PRIME_261, 262, 263, 270 and 271 were unnamed and had no art. The creatures come from Characters Cards Pack 07 (a-ravlik) composited onto RPG Backgrounds (
CARD CHARACTERSandCARD BACKGROUNDSin Downloads, outside the repo), cut withnpm run art -- --minion(a-CARD,-DECKand-MINIONfile each). Candidates were checked against all existing card art first (template matching, validated on a composite): one beastmen rhino turned out to be CORE_057b's art and was dropped. With the author's approval, those five AirtableCARDSrecords got aname(Riveted Sentinel, Hooded Scribe, Dawn Wyrm, Gaping Maw, Pit Overlord),artistName(a-ravlik),artistUrlandartStatus(FINAL); nothing else was written.data/prime.jsonwas pulled. Pack 07 and where each card's art comes from are recorded inART-LICENSES.md. - A searchable catalog of the purchased icons:
art-assets-catalog.jsondescribes all 1,091 icons inart-assets/(11 packs: elemental magic, four skill packs, skills and abilities, gems, potions, loot, two weapon and armor packs), each with a few words on what it shows and its colour, written by looking at every pack.npm run asset -- skull poisonlists the icons whose description has every word (scripts/art/asset.node.ts,asset-catalog.ts, tested). It was checked against the folder: every file has a description and every description has a file. The descriptions are by eye, so an odd one is worth fixing in the JSON. - The four Idol tokens have their own art: GAME_004 to 007 (Cinder, Ward, Mending, Tempest) showed the Mystic's skill 1 icon, the same green crystal for all four. Each now has a carved rune stone from the a-ravlik gem pack, coloured for its job (red, grey, green, blue): a
-CARD,-DECKand-MINIONfile each, cut withnpm run art -- --minion. With the author's approval, those four AirtableCARDSrecords gotartistName(a-ravlik),artistUrlandartStatus(FINAL), nothing else;data/entourage.jsonwas pulled. Shiv (GAME_003) and Talons (GAME_008) keep showing the Assassin's and Warden's skill 1 icons, which the author chose already (TOKEN_CLASSincard-face-model.ts). - The collection search takes several terms: type names or ids separated by commas (
PRIME_257, PRIME_258, Twin Cut) and every card that matches any of them shows. The whole text still matches as typed, so a name or card text with a comma in it works as before. (searchTermsincollection-model.ts.) - Ten PRIME spells have art, names and credit: PRIME_257, 258, 259, 264, 265, 266, 267, 268, 269 and 272 had no art. Icons from the a-ravlik packs in
art-assets/were cut withnpm run art(a-CARDand a-DECKfile each). With the author's approval, those ten AirtableCARDSrecords got aname,artistName(a-ravlik),artistUrlandartStatus(FINAL); nothing else was written.data/prime.jsonwas pulled. Names: Tempest Cascade, Idol Rites, Chilling Spark, Chalice of Plenty, Twin Cut, Sudden Exit, Envenomed Edge, Sweeping Reset, Fiend's Favor, Hard Bargain. - Replacing Airtable with a local card editor is scoped in
ROADMAP.md(phases, estimates, grid options); nothing is built. - A card's own tokens are named after the card: the nine
GAME_tokens that only one card makes are renamed to that card's id plus a letter, in the PRIME set (new rule inCLAUDE.md; class and skill tokens stayGAME_002toGAME_008). With the author's approval, 15 AirtableCARDSrecords changed (idandseton the nine tokens,entourageon the six parents, nothing else): GAME_009 to PRIME_271a (Hellspawn), GAME_010 to PRIME_131a (Wolf), GAME_011 to PRIME_236a (Practice Blade), GAME_012 to PRIME_108a (Whelp), GAME_013 to PRIME_235a (Training Sword), GAME_014 to 017 to PRIME_109a to d (the Dream cards).data/has the same change (no pull), the six parent definitions and the three token definitions (moved fromdefinitions/game/todefinitions/prime/) use the new ids, and the tests andRULES.mdfollow. The old ids appear only in earlier entries below. The two parents' card texts now name their tokens (PRIME_271 "a 6/6 Hellspawn", PRIME_131 "a 1/1 Wolf with Charge"): thetextfield on those two Airtable records, approved by the author. PRIME_131 also says "with %RUSH%" instead of a typed "Charge" (the symbol shows the keyword's name from the glossary, Stampede). PRIME_139's text is<strong>%RUSH%</strong>too (it had a typed "Charge"; thetextfield on that one record, approved by the author).
2026-11-23
- Combo is called Flow on cards: the MECHANICS table names
%COMBO%"Flow", but seven cards had the word "Combo" typed into their text. With the author's approval, thetextof those sevenCARDSrecords in Airtable (PRIME_188, 189, 191, 192, 193, 198, 265; nothing else touched) now says<strong>%COMBO%:</strong>, which the loader fills from the glossary, so a future rename follows.data/prime.jsonhas the same change (no pull needed). The engine and its tests still call the mechanic Combo internally. - Log and deck widths swapped, board shifted to match: the log is now 310 px and the deck 260 px (
lgw,ldwinPLAY_LAYOUT). The board is centred in the window and does not react to the side panels, so a new knob,lbx(Board X shift, in the lab's Table section), pads one side of the page to move the table, hand, hero figures and energy bar together (they all sit relative to the table); it is baked at 50. The played-card popup is fixed to the window, so itslcxmoved by the same 50 (-252 to -202). The gaps between the board and each panel are what they were. A new log knob,lgtg, sets the space above each turn bar independently of the space between actions (lggp); the first turn bar has none. - The log is redesigned to read at a glance: log lines are now structured (
LogLineinlog-line.ts, built bydescribeEvents) instead of strings. Each action is one block with a stripe in its side's colour, so no line repeats "Player 1"; cards are coloured by whose they are; results sit under their action as coloured chips (red-6, green+3, blue armor, gold buffs, purple debuffs, grey deaths) with dim notes at the right ("1 left", "28 left", "dead", "1 absorbed", "now 4/4"). A turn header is a bar with the player's name, the only real break. Sans-serif 13px by default. Icons are emoji in one table (LOG_ICONindescribe-events.ts), to swap for in-theme icons later. Attacks and deaths say whose minion it is through the colour, and a hero's health left is tracked through armor, heals and earlier hits. The board lab's Log/deck tab is now six accordions (Layout, Log text, Log action blocks, Log result chips, Log turn breaks, Test log) with knobs for the stripe width, block radius and padding, icon size and visibility, card name weight and colour, chip colours per kind (damage, heal, armor, death, buff, debuff), chip width and radius, result indent, note size and colour, turn bar colours and uppercase. All arelg...params thatnpm run boardbakes intoPLAY_LAYOUT; the monospace knoblgftnow defaults to off. - The log names what caused damage, and the board lab can restyle it: a trigger or On Death effect now adds a
TriggerFiredevent (settle.ts), shown as "Nuclear Submarine triggers" before its damage lines instead of a bare "takes 8". Turn headers and indented effect lines get their own classes. The board lab's Log/deck tab is now four accordions: Layout, Log text (size, line height, font, padding, radius, indent, colours for background, text, card names and effect lines), Log turn breaks (spacing, line thickness and style, colour, header size, weight and colour) and Test log (llpv: load an empty, typical or every-kind-of-line sample; not baked). The style knobs arelg...params;npm run boardbakes them intoPLAY_LAYOUTlike the rest. - A card with effect text is no longer played as a plain body: many cards list no
mechanicsin the data, so the engine took any minion or weapon with none for a vanilla body (that is how PRIME_177 did nothing).needsBehaviour(engine/decks.ts) now also looks at the text: anything beyond a keyword word (Guard, Stampede, Charge, Bubble, Concealed, Onslaught, Can't Attack) needs a definition, or the card is refused and left out of the pools. PRIME_106 (+5 Spell Damage), 110 (destroy all other minions, discard your hand) and 226 (5 damage to your own hero) had no definition and now have one. Added to Airtable with the author's approval (6CARDSrecords, allGAME_entourage, art FPO): GAME_012 Whelp (1/1 Dragon) for PRIME_108, GAME_013 Training Sword (2/2 Fighter weapon) for PRIME_235, and four Dream cards for PRIME_109 (it adds one at random at the end of your turn): GAME_014 Waking Dream (return a minion to its owner's hand, 0), GAME_015 Nightmare Surge (+4/+4, it dies at the start of your next turn, 2), GAME_016 Dream Drake (7/6 Dragon, 4), GAME_017 Dream Sister (3/5, can't be targeted by spells or items, 3). PRIME_108, 109 and 235 are defined and playable. Still waiting for a definition, so out of the pools: PRIME_103, 166, 195 and 222. A test lists any playable card with effect text and no definition. - PRIME_177 fixed: it had no definition, so it was played as a plain 3/5 and the Cleric's heal still healed (an enemy minion included). While it is on your board and not silenced, your heals (spells, items, skills, triggers) now deal that much damage to the target instead (
CardDef.healsAsDamage). Test:class-cards-3.test.ts. - Eight inactive class cards switched on and defined: PRIME_133, 138, 144, 164, 173, 181, 230 and 236 were ticked active in Airtable (only the
activecheckbox, with the author's approval) and pulled. 133 (Mystery: an attack on your hero goes to another random character), 138 (weapon: no counter-damage while attacking), 144 (Mystery: copy a minion the opponent plays), 164 (draw a card, damage equal to its cost), 173 (copy 2 cards from their deck) and 230 (1 damage and +2 Attack) are playable, and so are 181 (Shadowform: your skill 1 becomes "Deal 2 damage", 3 if played again;skillFor,HeroState.shadowform, and the skill bar, the hero bars and the cast popup show it, with PRIME_181's art; a skill replaced by a card names it inHeroSkill.artCardId, so any later card that swaps a skill mid-match gets its art the same way, with the placeholder when the file is missing) and 236 (+1/+1 to your weapon, or equip the 1/3GAME_011Practice Blade, added to Airtable with the author's approval). Readings are inRULES.md; tests are inclass-cards-2.test.ts. - Nine more class cards defined, and the Hound token: the active class cards with no definition are now playable: PRIME_130 (destroy a random enemy minion, needs 2+ of your minions: new
CardDef.canPlay), 131 (a 1/1 Rush Hound for each enemy minion; the Hound isGAME_010, added to Airtable with the author's approval), 134 (weapon: +1 Durability when your Mystery is revealed; weapons can now have triggers), 135, 145, 153, 168, 182 (summon a copy of a random minion from the opponent's deck) and 240. Readings are inRULES.md("Class cards added or finished on 2026-11-23"). Tests:engine/definitions/__tests__/class-cards-2.test.ts. Entourage count is 60. - Twelve new class cards (PRIME_261 to 272) and the Infernal token: the launch-pool cards that had no counterpart, added to Airtable with the author's approval (12
CARDSrecords plus the tokenGAME_009, all unnamed except the token, art FPO, nothing else touched) and pulled. Fighter 261 (gain 1 Armor when a friendly minion takes damage); Cleric 262 (-2 Attack to an enemy minion until your next turn) and 263 (destroy a minion, heal for its Health); Crusader 264 (draw until your hand matches the opponent's, up to 5); Assassin 265 (2 damage, 4 with Combo), 266 (return an enemy minion, it costs 1 more), 267 (+2 Attack and Poison) and 268 (return every minion); Necromancer 269 (2 damage to a minion, +2/+2 to a Demonic one), 270 (5/7 Rush, discard 2), 271 (set your Health to 15 and summon the 6/6 Infernal,GAME_009); Warden 272 (destroy a minion, its owner draws 2). New engine pieces: a minion's Attack can be taken until the caster's next turn (attackDebuff, restored at turn start), a spell can give Poison (poisonous), anddrawToMatchOpponent,targetOwnerDraws,healByTargetHealth. Card counts inapp.config.tsare now 271 PRIME and 59 entourage. Tests:engine/definitions/__tests__/class-gap.test.ts. - Greedy bot plays a cheap card to switch Combo on: the bot looks one move ahead, so it never had a reason to play a card first just to enable a Combo card in hand.
GreedyWeightshas a newcomboweight (default 2): a move that turns Combo on scores that much for each Combo card still in hand that it can afford (cost counts discounts). Test:engine/bots/__tests__/greedy-combo.test.ts. The hero sim afterwards (20 games per pair, 12 decks) had Assassin at 46%, up from 43% but within noise; Crusader led at 61% and Fighter was last at 43%. - This-turn weapon has no ring: on the Ring hero, a weapon that only lasts this turn (the Warden's Claws) no longer has a border or dashed ring; its picture fills the whole circle (
.ringWeaponTempinhero-variants.module.scss). - Token art falls back to the skill icon: a token a skill makes (Crusader's recruit, the Assassin dagger, the Mystic totems, the Warden's Claws, the Ranger and Warden
HERO_*tokens) shows its class'sskill-1icon when it has no art file of its own, instead of the placeholder. The Claws are nowGAME_008in Airtable (a 1/1 Warden weapon, added with the author's approval) and Shapeshift equips that card; the localHERO_DRUID_CLAWStoken is gone. The skill's ownentouragecolumn was left alone. The hero's weapon medallion tries the same fallback (its<img>steps through adata-fallbackslist on a 404), which is what the Assassin dagger was missing. - Skill art and tweaks: skill 1 art (
skill-1.png) for all nine classes is inpublic/images/heroes/. Cleric's Revitalize heals 2 (was 3; the code now reads it from a named constant), and the Warden's skill 1 is named Wildform in Airtable (Shapeshift in these notes). - Combo (engine) and four Assassin cards: a card definition can carry
combo: extra effects when you have already played a card this turn, or replacing the normal ones withinstead, and acombo.targetthat is only asked for when Combo is on. Defined: PRIME_188 (+2 Attack, +4 with Combo), PRIME_192 (weapon: 1 damage, 2 with Combo), PRIME_193 (Combo: 2 damage) and PRIME_199 (+2/+2 per other card played this turn). Weapons with an On Play aim are now offered per target inlegalActions. PRIME_188, 192, 193 and 199 are now active in Airtable. PRIME_189 (Combo: summon a 2/1 Defias Bandit, token PRIME_189a, added to Airtable) and PRIME_198 (Combo: return a minion to its owner's hand;returnToHandcan now send an enemy minion to its owner) are now active too. PRIME_191 (2 damage to the enemy hero; Combo: it returns to your hand at the start of your next turn, via a newreturninglist on the player) is active too. - Warden skill 1 is Shapeshift: for 2 energy (cooldown 1) your hero gains +1 Attack this turn and 1 Armor, like the launch Druid. It replaces the free Spirit Animal (the hero sim had Warden winning 85%); the spirit animals now come only from the ultimate. With no weapon you get a one-turn 1/1 Claws weapon; with one, it gets +1 Attack. The SKILLS row
WARDEN-1was changed in Airtable. - Warden: PRIME_117 and PRIME_118 are active and playable: 117 deals damage equal to your weapon's Attack to a minion (nothing without a weapon); 118 gives your hero +4 Attack this turn (adds to your weapon, or equips a one-turn weapon) and 4 Armor. The nine entourage cards in the PRIME_111 to 125 block (the tokens and option cards) now carry the Warden class link too, and so do the other classes' entourage cards (PRIME_136a Ranger, 157a and 169a Crusader, 224a Necromancer, 260a Mystic).
- Warden: PRIME_122 and PRIME_125 are playable: PRIME_122 summons three 2/2 Rush minions; PRIME_125 (Choose One) gives your other minions +2/+2 or summons two 2/2 Treants with Guard. Their tokens (PRIME_122a, PRIME_125a to c) were added to Airtable and pulled.
2026-11-22
- Boost preview keeps its drop shadow: the green ring on a minion that a hovered card would improve no longer replaces its dark drop shadow.
- Greedy bot and CORE_134: the bot used to play Abyssal Well onto an empty board because it scored the Well as a 0/7 body. Card definitions can now carry a
boardWipemarker (set on CORE_134); while such a minion is out, the bot scores both boards as empty, so the Well is only worth playing when the enemy board is much stronger than the bot's own. - Prettier and code-style rules: Prettier is installed (
yarn format,yarn format:check;.prettierrc: 80 columns, single quotes, trailing commas everywhere, parentheses around arrow parameters) and a project hook in.claude/settings.jsonformats every ts/tsx/js/scss file Claude edits.CLAUDE.mdnow lists 14 code-style rules (destructuring, comment blocks, block-bodied arrows, named conditions, blank lines, sorted JSX props and imports, descriptive names, braces, no magic numbers, boolean names, types, card-id test names). The whole repo was reformatted once in a separate commit; a second mechanical pass wrapped every comment over 80 columns (a//comment above a declaration in a long.tsxfile became a/** */block so it shows on hover). Existing code does not yet follow the other by-hand rules (JSX prop order, import order, braces). - CORE_157 Infernal Hut: No Attack, Guard; when it dies it deals 2 damage to both heroes and every other minion. The mirror-match balance test now allows 2 to 10 wins out of 12 (it was 3 to 9 and sat on the edge once the card joined the pool).
- CORE_156 Eyes of the Mimic: summons a copy of a chosen enemy minion on your side, with the original's current stats and keywords, summoning-sick, at the right end of your board (new
summonCopyOfeffect; the reading is inRULES.mdAppendix B). - Old terms renamed,
game/removed: the words "warcry", "demise" and "battlecry" no longer appear in the repo's docs, code comments, tests or scripts; they are On Play and On Death (the card data was re-pulled from Airtable without them). The two data tests that checked display names now read them fromdata/mechanics.json. The rootgame/folder (an empty boardgame.io stub, an unused copy script and a stale copy of the old zone-game JSON) is deleted: nothing imported it, and the zone engine stays at tagsnap-style-v0. - Boost preview on the board: rest the pointer on a hand card for about a second (or click or drag it) and a light sheen sweeps over each of your minions it would improve, so you can tell whether Nute Sprite will find a Sprite before you play it. It plays the card on a throwaway copy of the game and compares your minions' Attack, Health and keywords, so it covers every aura and On Play effect with no per-card data. Cards that need a target are not previewed.
components/play-board/boost-preview.ts; reduced motion shows a green ring only. - Aimed hand card stays lifted: a card you drag (or click) to aim at a target now keeps its hovered lift and size, with the gold glow, instead of dropping back into the fan while the arrow is out.
- CORE_134 Abyssal Well and CORE_135 Behemoth Slayer: the Well destroys every minion on both boards (itself too) at the start of its owner's next turn. The Slayer's On Play effect destroys an enemy minion with 7 or more attack; with none to hit it is played like an ordinary minion, and it never forces you to destroy your own.
- CORE_133 Blistercap: On Death: deals 2 damage to the enemy hero (
engine/definitions/core/core-133.ts). - Card counts live in
app.config.ts: the number of CORE, PRIME, entourage and GAME cards the data tests expect isgameConfig.cardCounts, so adding a card is a one-line edit there. The CORE type-split, weapon and inactive-PRIME counts are gone, and the unnamed-card, dangling-entourage and targeting-mismatch counts now only check that those problems are reported.CLAUDE.mdandREADME.mdno longer repeat card counts. - Greedy bot never silences its own minion: it could cast Nullify on a minion of its own, throwing away the minion's card text, which its scoring cannot see.
isBadPlaynow rejects a silence on a friendly minion unless that lifts a Disable.
2026-11-20
- PRIME_111 names its token by id: Airtable's entourage list for Untamed Potential is now
PRIME_111a, PRIME_111c(the option cardaadded before the 3/2 Werewolfc), which made "summon token #0" summon the spell.summonEntouragenow also takes a card id, and PRIME_111 uses'PRIME_111c', so reordering the list can't change what it summons. - Airtable
activeis respected for entourage cards too: the loader used to count every entourage card as active whatever its row said. Now an entourage card is active only when itsactivebox is ticked, and an inactive card (or token) is left out of the Collection's Entourage list, the card overlay's "Makes or offers" / "Made or offered by" rows, the deck builder's token row, the choose dialog's option cards (a blank card shows instead) and/api/cards. The engine still resolves a card's tokens from the data, so a card that summons a token keeps working even if the token's row is unticked.data/entourage.jsoncurrently hasactive: falseon all 48 rows, so until the real values are ticked in Airtable and pulled, no entourage card shows in those places. - Choose dialog shows the real cards: the dialog for "choose one" cards, Surveying Drone and the Cleric's Resurrect is now one component (
ChooseModal), and each option is drawn as the actual card in its frame, with a caption under it. An option with no card of its own (and a Drone slot with an empty deck) shows a blank NONE-rarity card (steel frame, no gem, placeholder art, no cost number) named for the choice. Board lab: new "Choose dialog" section on the Hand tab (lcmwcard size,lcmggap,lcmdbackdrop darkness,lcmttitle size,lcmhs/lcmhl/lcmglowhovered card scale, lift and glow,lcmccaption on/off) and a "Hold it open" preview (lcmpv, a sample choose-one card). The knobs bake withnpm run boardlike the others (lcmpvis a preview switch, so it is skipped). - Art lab with an entourage card:
/art-lab?id=CORE_020anow works. Every entry point upper-cased the id, turning the entourage letter intoCORE_020A, which matched nothing (the data, Airtable's{id}lookup, the master inart-inbox/and the020a-CARD.jpgfiles all use the lower-case letter). OnecanonicalCardIdnow fixes the spelling (set and number in capitals, the letter in lower case) in the page, the card, master and render routes,npm run artand the master lookup. - Card overlay: parent of an entourage card, and click to swap: viewing an entourage card now shows the card(s) that make or offer it, under "Made or offered by", where its own tokens would go. The related cards (a card's tokens, or an entourage card's parents) are buttons: click one to view it in the same overlay, click back to return. Clicking elsewhere still closes it.
- Collection: Entourage follows the set filter: with Entourage ticked, Core shows only Core entourage cards and Prime only Prime ones (they used to ignore the set filter). A token's set comes from its id (
CORE_.../PRIME_...). - Log card view on click: Menu > Settings > "Card view from the log" (Right-click / Click; kept in this browser,
ccg.logCardTrigger.v1) chooses whether a card or skill name in the log opens the big card view on a right-click (default) or a single left-click. - Stampede icon fades: the Stampede badge on a board minion is only useful the turn it came in, so from the next turn on it fades and shrinks away (about 1.4 s) and stays gone.
- Druid balance: Forsaken Druid's Spirit Animal now costs 3 (was 2) with cooldown 3 (was 2) in
data/abilities.json, from the hero sim (Druid 85% overall before, 67% after; the other heroes each gained 1 to 6 points). Copy both numbers into Airtable (ABILITIES, Druid skill 1), or the nextnpm run airtableputs the old ones back. - Cleric Resurrect is a pick: skill 2 now offers two minions drawn at random from the last five that died on your side, each with Guard or with Bubble (one dialog, up to four buttons;
engine/heroes/resurrect-offer.ts), and a 15% chance one of them is the strongest of the enemy's last five dead (it leaves their graveyard). With nothing dead on your side the skill can't be used. The offer comes from the turn and both graveyards, so nothing extra is stored. New for skills in general: a skill can listoptionsand theHeroSkillaction takes achoice, like a "choose one" card. In the hero sim Sage went from 42% to 58% overall with the cost left at 6. Copy the new skill text into Airtable (ABILITIES, Cleric skill 2:%RESURRECT% a recently dead friendly minion of your choice with %BULWARK% or %BUBBLE%), or the nextnpm run airtableputs the old text back.
2026-11-19
- Spell Damage raises hero skills: your minions' Spell Damage now adds to each damage hit of a hero skill (Zeus' three, Exile's first, both Warrior damage skills), so a Spell Damage +1 minion turns Zeus' Lightning Strike from 1 into 2 while it is on the board. Heals, armor, summons and buffs are unchanged; skills still are not spells for "when you cast a spell" effects.
RULES.mdAppendix D updated (it used to say skills ignore Spell Damage). - Log: hero skills and right-click: hero skill names in the log now have their hover text (they were missing from the name lookup, so the tooltip was empty), and right-clicking any card or skill name in the log opens the collection's big card view, like right-clicking a minion. A skill's card (cast popup and big view) now takes its art from the hero's skill files in one place (
CardFace). - Hero skill cast popup: it no longer forces Mythic. The frame comes from a
raritycolumn on the Airtable ABILITIES table (COMMON,SUPERIOR,REMARKABLE,MYTHIC,FREE; blank =FREE, steel with no gem; add the single-select column by hand, thennpm run airtable: the pull now carries it intodata/abilities.json). The art ispublic/images/heroes/<HERO>/skill-<n>-card.jpg(any shape, covers the card window), falling back to the roundskill-<n>.jpg, then the placeholder. The deck panel heading now shows the deck's name too. - Deck rows show the full card on hover: resting the pointer on a deck entry for
hoverDelayms (deck lab, Row section,d_hoverDelay, 0-3000, default 600; bakes withnpm run deck) pops up the full framed card, replacing the plain text tooltip. It opens on the side with room (a row in the left half of the window opens it to the right, one in the right half to the left). Once one is showing, moving to another row shows its card at once (250 ms grace after leaving); only the first one drifts in, subtly, from the deck's side (off with reduced motion). Also fixed: the-DECKstrips ignored the row's size (thebackgroundshorthand only fitted the last of the stacked images), so they now cover the row.
2026-11-18
- Deck lab and
-DECKstrips:/deck-lab(dev only) edits how the deck panel's rows look, and the rows now show each card's-DECKstrip (600 x 75; falls back to the-CARDart, then the placeholder) behind the cost gem, name and count, under a shade that lets the name read. Sections: the strip (zoom, where it is centred, opacity, brightness, saturation, blur), the shade (colour, strength left and right, how fast it changes, how much is left under the pointer), the row (height, gap, radius, accent bar, padding, colours), the cost gem, name and count, and a used-up card (opacity, greyness). Every value is ad_<field>URL param (DeckTuneincomponents/play-board/deck-row-tune.ts);/playreads the same params overDECK_DEFAULTS, andnpm run deck -- "<lab url>"bakes a lab URL into those defaults. The row is one shared component (DeckRowView), so the lab and/playcannot drift apart.d_showArt=0brings back the old plain rows. - Connected sidebar (log + deck): a player can switch the log and deck from two panels to one connected sidebar in the
/playmenu (Settings > "Log and deck": Separate / Connected; kept in this browser,ccg.sidebar.v1). Connected puts them flush in one column with a drag bar between them: drag it to give the log or the deck more room (the deck scrolls when it has less than its rows need), double-click to reset; the split is remembered (ccg.sideSplit.v1). It sits on the side the saved layout stacks on (the right unlesslpansays left). Board lab: the Log and deck arrangement has "Connected sidebar on the left / right"; when it is chosen the two width sliders, the log's share of height and the deck offsets give way to one sidebar width (lsbw), one total height (lsbh, px; unset = fill the window), the drag bar thickness (lsbd) and one X / Y offset for the whole column. The drag bar measures against the column's real height.lpanbakes withnpm run board, so a saved layout can start connected. The lab's Arrangement select now writes every choice into the URL, including "Log left, deck right" (lpan=default): before, that choice only removedlpanand the lab fell back to the saved arrangement, so it could never show while a stacked or connected one was saved. - Hover pace (opt-in): board lab
lhsd(ms, 0 = off): the hovered card changes at most once perlhsdms, one card at a time, and keeps catching up toward the pointer, so a quick sweep or a far jump fans across the cards instead of snapping. A hover that has been still for that long moves at once, so a slow sweep is not held back. A click still acts on the card under the pointer. - Fan tilt and drop per hand size: board lab Hands section, "Fan tilt and drop by number of cards":
lhrt1..lhrt10,lhdp1..lhdp10andlhol1..lhol10(card overlap, the spacing) each replace the main tilt (lhrt), drop (lhdp) or overlap (lhol) while the hand holds exactly that many cards (the hand carriesdata-count). An untouched count starts from the main tilt, so nothing changes until one is set. The section also has a "Cards in my hand now" box to step through sizes. - Hand hover slots: the pointer is now tested against one column per card (the "hover slot": at the card's resting place, it never lifts, grows or parts), not against the card, which ignores the pointer. A lifted, enlarged card no longer blocks the cards beside it, so sweeping along a tight hand swaps the hovered card straight away. The hovered card's slot reaches up to its lifted height; the hover look lets go 70 ms after the pointer leaves, so gaps do not flicker. Click, double-click, drag and the drag ghost all work through the slot; a selected card is still clicked on its own face. Board lab: "Hover slot width" (
lhsw, % of the card spacing, 0 = the old behaviour), "Hovered slot: extra width each side" (lhsh), the outermost slots reaching out to the card's outer edge (lhse, 1 = to the edge) and further (lhsxpx), and a "Show the hover slots" preview (lhspv). - Hand arc: a new "Fan curve" knob in the board lab (
lhdc, 0 = the straight V of the drop, 1 = a round arc): the middle cards stay high and the drop concentrates toward the ends. Default 0, so the saved hand looks the same until it is set. - Middle strip, separate placement: the End turn button and the status text each have their own "sits at the left / middle / right" (
lmdba,lmdta) and their own move right / move down nudges (lmdbdx,lmdbdy,lmdtdx,lmdtdy). Middle puts the item on the strip's exact centre (out of the flow, so the strip can get shorter: use its minimum height). They bake withnpm run board. - Hero ring takes a hit: when health or armor drops the ring shakes (
hitShakepx,hitTiltdeg,hitShakeMs) and the amount floats up from the middle (popSize,popRise,popMs,popY, colourshitColour/healColour; healing shows a green+n). Both waithitDelayms (the attack's strike, 190 by default). All arer_fields in the hero lab's ring tab (new "Hit shake and damage number" group, plus Hit 3 / Hit 8 / Heal 3 buttons) and bake withnpm run ring. - Board lab, Hands: 16 new hand knobs (all CSS variables on
.hand, sonpm run boardbakes them like the others): fan tilt and drop, card overlap, hover scale / lift / tilt / speed, parting (the hovered card's neighbours slide away; off by default), hover halo and flash, settle time and draw-in time. "Hold card number N in its hover look" (lhpv) tunes the hover without the pointer, and "Cards in my / their hand" (hn0/hn1, a setup param likep0, also valid on/play) deals a hand of 0-10. Overlap changes spacing only: the shrink-to-fit zoom still assumes 20 px. - Cast popup for everything: every card played (minions and weapons too, not only spells and items) and every hero skill (not only ultimates) now shows in the cast popup. A face-down Mystery still does not. The minion's hand-to-board flight is gone (the popup replaces it);
CardFlight.tsxandflightFramesare left in place, unused. - Hero ring: a metal bezel picture behind the disc (
bezel, % of the disc;public/images/ui/hero-ring-bezel.png) and a metal frame around the skill, weapon and Mystery sockets (frame, px across;hero-socket-frame.png, drawn in a layer behind every socket, pill and gem, with its edge faded so the halo is not cut off). The weapon socket and its frame are hidden when no weapon is equipped. A Mystery socket (mysteryAngle) shows while a Mystery is set: the card art for its owner, a "?" for the opponent, with a hover tip. A hovered skill now lifts above its neighbours so its tooltip is not covered. - Hero lab (ring tab): the controls are a left sidebar of collapsible groups beside a scrolling preview, so a slider can be dragged without scrolling the page; a Mystery preview dropdown.
2026-11-16
- Art lab (
/art-lab, dev only): find a card by id or name, then/art-lab?id=CORE_122shows its current CARD/DECK/MINION files, a crop adjuster per file over the master inart-inbox/(drag + zoom; "Write images" moves the master todone/), and all its Airtable CARDS fields to edit and save back (only changed fields are sent; uses the_CLAUDE_CODEtoken). API underpages/api/art-lab/, helpers inscripts/art/. - Art: CORE_017 and CORE_112 final art and names (CORE_017 Blight-Kin Brute, CORE_112 Vicious Striker), from the lab and an Airtable pull.
2026-11-15
- Airtable pull + Winterhog Warrior (PRIME_029): CORE_018 is now Amorphous Primordial (final art); PRIME_029 is named, active and final art ("Costs 1 less per Attack of your weapon",
ownCostinengine/definitions/prime/prime-029.ts, tagged%COST%so the engine requires that definition). The pull had put back Revitalize heal 2 and Spirit Animal cooldown 1 (the hero tuning was never copied to Airtable); both are re-applied (Revitalize heals 3, Spirit Animal cooldown 2) indata/abilities.jsonand in Airtable. - Zeus and ultimates: Rain Lightning (Zeus' 2nd ability) cooldown 2 to 3 in
data/abilities.json(copy into Airtable, or the nextnpm run airtableputs it back). Using any hero ultimate now shows the cast popup like a spell (skillCardinengine/heroes/tokens.ts). - Board lab: new controls for the cast popup (Hand tab), the green play overlays (per element: minion zone, landing gap with its opening animation, global area, with hover looks and example buttons), the energy bar (colours, glow, blink, number), the backdrop and felt panel, and one accordion section per sound.
/playdefaults updated to the author's "board-and-casting" preset; the card-play and draw sounds are quieter. Samples are now decoded when the board loads, so the first play of a file is the recording, not the stand-in tone. - Stampede lunge fix: a minion with Stampede that attacked right after being played lunged while it was still invisible or falling in (card flight + 520 ms landing), so the lunge was never seen. The lunge now waits until the minion has landed (
landedAtinPlayBoard.tsx); the attack itself still resolves at once. The direction is read when you attack (the target may be dead by the time it lunges), and an attacker that dies in the exchange lunges as its death ghost (it used to lunge on a minion that had already been removed, so no lunge showed). - Kill preview ("doomed") look: a minion the aimed action would kill now also has its portrait darkened (brightness 0.45, saturation 1.5, white behind it) as well as the skull over it (
doomedPortraitinboard-minion.module.scss; the skull class is renameddoomedIcon). The minion lab gallery has a "Will die" sample showing it.MinionFace.tsxwas also reformatted to the repo's Prettier config.
2026-11-14
- Card sounds: playing a card (a minion or a spell) and drawing a card now use recorded sounds (Kenney's Casino Audio, CC0): 4
card-placeand 8card-slidevariants, picked at random with a little pitch variation. They load when the board opens, follow the Sound switch, and the old synth tone is the fallback if a file is missing. The card sounds do not count toward the 3-sound cap, so a spell that kills a minion keeps its death sound. Credits in the README. - New defaults from the lab's
minion-shadowspreset:/playand the lab now start with thepaper-v2parchment on the play surface (darken 0.1), drop shadows at darkness 0.75 (default, ready, can be aimed at), 0.65 (aimed at) and 0.15 (selected, pushed 27 px down), a card-play sound that is onlycard-place-2at volume 0.35 (pitch variation 0.07), hand hover at volume 0.15 (variation 0.03) with a 290 ms gap, and the held-card loop at 0.65. The layout values are inPLAY_LAYOUT(layout-css.ts) and the sound ones insounds.ts; the lab sliders show them as the starting values ("none" in the Background image picker turns the background off). - Minion shadows (board lab, Board tab > Minion shadows): the dark drop shadow under a board minion's oval is now a set of variables per state (default, ready to attack, selected / lifted, can be aimed at, aimed at), each with a downward offset, blur and darkness (
--sh-<state>-y|b|ainboard-minion.module.scss, knobslsh<state>y|b|a). Defaults keep the old look: default and ready are 3 px / 12 px / 0.55, and selected, aimed and hovered start at 0 (no shadow). - Board lab Background section (Board tab): pick an image from
public/images/backgrounds/(listed by/api/backgrounds; first two are the Croomfolk "Old Paper Cards" parchments), put it on the play surface or behind everything, fill or tile it, and set darken, blur and focus point. The CSS isbackgroundCssinlayout-css.ts(lbg*params), so it can be adopted into/playthroughPLAY_LAYOUTlater. Not on/playyet. - Board lab tabs: a tab bar at the top of the lab panel (Setup, Board, Hand, Log/deck, Heroes, Sounds), each holding its own accordion sections; the open tab is remembered. Which tab holds which section is
LAB_TABSincomponents/board-lab/lab-sections.tsx. The URL's sound settings now apply whichever tab is open (useSoundTuning). - Board lab split into small files (
components/board-lab/):lab-model.ts(the knob table, one entry per slider),lab-panels.tsx(one small component per section),LabOverlay.tsx(the floating panel),PresetsPanel.tsx,SoundPanel.tsx,LabSliders.tsx,lab-sections.tsx.pages/board-lab.tsxis down from 627 to 100 lines. Behaviour is unchanged. - Board lab: Sounds section. For card play, card draw, hand hover and the held-card loop: pick any file under
public/sounds(listed by/api/sounds), set the volume and the pitch variation, set the hover gap, and press Play. Values live in the URL (lsf_*,lsg_*,lsj_*,lsgap) and change the sound engine live (setSoundTuninginsounds.ts);/playnever sets them. - Stop button next to each Play in the lab's Sounds tab: cuts off any recorded sound still playing, a pending hover sound and the held-card loop. Play on "Held card (loop)" now keeps looping until you press Stop (it used to stop itself after 2 s), so you can hear a long loop's seam.
- Held-card sound option:
public/sounds/cards/magic-glow.m4a("Magic Glow", CC0, 46 s, 330 KB as AAC) is in the lab's Sounds file picker for any slot; pick it on "Held card (loop)" to try it. The default is still the fireflies loop. - Keyword icons: the row of small keyword icons along the top of a board minion is nudged 0.35 px left by default (minion lab
lkx=-0.35). - Dragged card returns cleanly: letting go of a card that is not played used to show two copies for a moment (the real hand card popped back while the drag ghost was still flying in and fading). The real card now stays hidden until the ghost has landed (~110 ms), then replaces it in one frame (
whenDoneindrag-ghost.ts). - Minion tooltip delay and right-click inspect: the hover tooltip on board minions waits
MINION_TIP_DELAY_MS(800 ms, set by the author) before showing. Right-clicking a minion opens the collection's big-card view of it (the sharedCardDetailOverlay, extracted from the collection; Esc or a click closes it). While something is selected, right-click still just cancels the selection. - Board lab: Copy config / Paste config on each accordion section: copies that section's values (the URL's, else
/play's saved ones) askey=value&...; paste applies only the keys that belong to that section. - Portrait scale fix: the hover scale used to override the selected one while the pointer was still on a selected minion (the hover rule was more specific). Selected now wins.
- Portrait scale on hover (board lab, Board tab > Minions): the minion's picture is now its own layer inside the oval (which clips it), so it can scale without scaling the frame. Knobs: scale on hover (
lpsh), scale when selected (lpss), speed (lpsm) and the scale's centre from the top (lpsy). All default to no change (1x). It is on the board lab and not the minion lab because it is an interaction, not a static look. - Hand fan feel: the hover gap default is now 35 ms (was 290) so every card you cross sounds as you cross it, and the hover sound is trimmed to a 150 ms flick (with a 30 ms fade) so quick hovers stack into a ruffle instead of one long slide. New
Length (ms)knob in the lab's Sounds tab (lsm_<slot>; 0 plays the whole sound). - Hover sound fix: a hover that came inside the gap was dropped for good, so on a sweep a card could be silent even when you rested on it. It now plays when the gap ends if the pointer is still there (a newer hover replaces it; leaving the card cancels it).
- Hand hover sound: moving the pointer onto a card in your hand plays
card-slide-5quietly, with wide pitch variation and a 55 ms minimum gap so a sweep across the hand is a run of ticks. Not while dragging, or while a card is selected. - Held-card sound: a soft looping shimmer ("Magic Fireflies", CC0, 130 KB as AAC) fades in while a hand card is clicked or dragged and fades out when it is let go or played. It follows the Sound switch.
- Double-click to play: a quick double-click on a minion in your hand plays it at the far right of your board (a minion that needs aiming, or a choose-one card, stays selected for the normal flow).
- Kill preview: while aiming (attack, spell or skill), a skull (placeholder glyph) shows over every minion the action under the pointer would kill, including your own attacker when the counter-hit kills it. It tries the action on a copy of the game with the opponent's Mystery left out, so it never reveals it.
- Weapon on the hero figure: the figure shows the equipped weapon's attack and durability as two badges (dashed outline when it only lasts this turn). Temporary look while the design is worked out.
- Hero balance sim:
npm run sim:heroes -- heroes|decks <games>plays hero against hero on the same starter deck (heroes), or the starter-deck grid with heroes drawn from the five next to the same grid without (decks). First full run (greedy bot): Forsaken Druid 91%, Zeus 60%, Warrior 51%, Exile 46%, Sage 34%, no hero 17%. First tuning (data edits, to copy into Airtable): Spirit Animal cooldown 1 to 2, Revitalize heals 3 (was 2). Druid is still at about 83%, so more is needed. /playuses the board lab's "wip" layout (PLAY_LAYOUTincomponents/play-board/layout-css.ts, shared with/board-lab, which now matches/playwith no params; anl...URL param overrides one knob). Hero figures are the default (?herofig=0for the old bar). Log and deck are 242 px wide.- Tooltips stay on screen:
viewport-nudge.ts(nudgeIntoViewport,useKeepTipsInViewport; CSS tooltips carrydata-tip). - Interchangeable interface themes: the site chrome (page colours, bottom nav, markdown pages, profile) and the
/playmenus (menu button, menu, deck picker, choose-one dialogs) now read--ui-*CSS variables, so a whole look can be swapped. Three themes: Classic (the old look, the default), Emberhold and Frostforged (the Emberhold UI kit: 9-slice panels and buttons, toggle art, its menu sounds). Pick one in the/playmenu, on/profile, or with?ui=<id>on any page (saved);/ui-lab(dev only, not linked) shows all of them side by side. Cards, minions and heroes are untouched. The collection, deck builder, heroes viewer and profile are themed too, and every control on them (and in the/playmenu) now comes from shared components incomponents/ui/(Button,Select,TextInput,Checkbox,Toggle,SegmentedControl,Panel), so a theme or a behaviour change reaches all of them; the mana-cost and card-size buttons are now proper radio groups. Animated icons from the Basic Shapes packs (22 crosses, plus signs, dots and a cross-into-checkmark, as 96 px frame sequences, 1.4 MB in all and loaded only when an icon first plays): anAnimatedIconcomponent that takes the text colour and plays forward or back; the checkbox tick uses it. A gallery is on/ui-lab. Form rows (ui-controls) give every control one height per theme, so Clear filters appearing no longer moves anything. Disabled controls all show the not-allowed cursor (checkboxes, drop-downs and switches used to show a pointer), switches and segmented controls can be disabled, and a search box's clear (X) button is drawn in the theme's colour. Animated icons are no longer stretched (the dots were ovals), are sized by their resting shape so crosses and plus signs match, and draw nothing when off (the Regular Cross left corner marks behind). Toggles now slide (the knob moves with a slight spring and the track fades between off and on; the kit themes usetoggle_track_*andtoggle_knob_*pieces cut from the kit's toggle images), and the segmented control's chosen option keeps its whole outline (its left edge was missing) while chips have uniform corners. The drop-down arrow now takes the field's text colour (it is drawn from gradients, not a grey picture). Adding a theme is one entry incomponents/ui-theme/ui-themes.tsplus one block instyles/themes/_themes.scss. Themed menus can play the kit's click, toggle and open/close sounds (they follow the existing Sound switch; Classic is silent). - Board minion look (tuned in the minion lab): the attack badge is 44px (was 40) and 1px lower, the health badge 2px lower, the attack numeral moved to (2px, 4.2px) and the health numeral 0.5px left, the keyword icons 4px lower, and the minion's name is no longer shown on the board (it is only visually hidden, so screen readers still get it;
/minion-lab?lcshow=1shows it). The offsets are CSS variables (--nudge-x/--nudge-y) with these defaults, so the lab's sliders start from them. /minion-lab(dev only, not linked): the board minion on its own, in a gallery of looks (plain, Guard, Bubble, Concealed, status icons, damaged, buffed, suppressed), with sliders and number boxes for the overall shape (height, aspect, corner radius, border, picture offset, guard shield) and for where the attack and health badges, the name and the keyword icons sit (the keyword icons also have size, gap, ring, corner, glyph and per-keyword colour controls), plus each badge's own numeral size and position. Also a state preview (ready, selected, aimed) and a preview zoom. Sliders start at the real values, and the URL holds every setting.- A clicked minion now lifts (14 px) as well as growing (1.08x). The growth never actually showed before: the landing animation held its last frame and overrode the selected transform, so it is now
backwardsinstead ofboth. A target you aim at no longer scales on hover (ring only; it was meant to be 1.1x but never showed). The board lab can tune the lift, the scale and the target-hover scale, and every slider has a number box for exact values. /board-lab(dev only, not linked): the real/playboard frozen into a setup you choose, with a draggable, collapsible overlay of layout knobs. Everything is in the URL, so a layout can be shared. No bot and no clock; boards, energy and whose turn it is change live without touching the hands or decks (heroes and hand ids restart it, with a fixed seed so the deck is the same each time). Knobs: minion size and gap, the energy bar (scale, X/Y, vertical or horizontal), section gap, table width, hand sink, both hands' card widths, the clicked-card scale (with a preview), both hero figures' width and X/Y position, and the log / deck panels (swapped, or stacked and scrolling independently). Sliders start at the board's real values. Presets save the URL (all of it, or layout only), with a Flip A/B button.PlayBoardtakes an optionallabprop for this;/playdoes not pass it.
2026-11-13
- A card dragged to aim at a target no longer grows to the click's 2x;
.prettierrcadded (the hero skills component is reformatted to it). - Weight (second pass): dead minions fall, spin and fade before the row closes; a minion played from your hand is flown to its slot before it lands; hits, landings and deaths have a heavier thud, played at the moment of impact; the spell popup slams in with a shockwave; "Attack hero" lunges each attacker in turn; tooltips no longer fly off to the far side when you aim an attack (they render into the page body and hide while aiming).
- Weight (first pass): new minions drop in, land with a squash and a dust ring; attackers wind up and lunge into their target (minions and weapon swings); the target shakes on contact, not before; damage and heal numbers float up from minions and heroes; a hit of 4+ jolts the table. All of it is skipped under reduced-motion.
components/play-board/motion.ts. - Energy bar: a tall column of energy orbs beside the board (right edge), with the count above. Dragging or selecting a card pulses the orbs it would spend (red when you cannot afford it).
- Playtest fixes: a selected hand card is bigger (2x), hero skill tooltips open over the minions, the Attack number on board minions is centred on its badge, and hero tokens (Spirit Animals, Eagle) get a real tooltip instead of "undefined", and a hovered hand card draws over the hero bar and skills.
- Hero art: the "1" / "2" / "AI" circle on the hero bar is now the hero's portrait (still shown when a player has no hero), and the skill buttons are round icons with a cost badge, a cooldown number and the name and text on hover. Art is in
public/images/heroes/<ID>/(copied fromreact-ccg-deprecated, resized; provenance unchecked like the rest). - Bot fix: the greedy bot no longer sees through your face-down Mystery. It used to simulate its moves on the real state, so it avoided any attack the Mystery would punish (it could stop attacking for turns); now it plans without the Mystery and just attacks into it.
- Heroes: five heroes (Zeus, Forsaken Druid, Exile, Warrior, Cleric) with three skills each, usable on
/play: skill buttons above your hero bar (click; targeted skills then aim), cooldowns and one-use ultimates, picked in New game (or?h0=ZEUS&h1=WARRIOR). The AI uses skills too. Readings I chose are inRULES.mdAppendix D. /collectionis a browser of every playable card (Core + Prime) with search and filters and a card detail window./profileis the page for your name and colour (moved out of the/playmenu).- The
/playmenu is redesigned: Resume, New game and Concede cards, switch rows for sound, timer and accessibility, segmented Opponent and Mode choices, and Home / Deck builder / Cards links (asks before leaving a live game). - The bottom nav has a Home button and highlights the current page.
- Home, News and Changelog render the repo's
README.md,ROADMAP.mdandCHANGELOG.md.
2026-11-12
- Play: player profile (display name and colour theme), quieter sound effects, redrawn board minions (oval art, sword/shield badges, status icons), a smoother hand, a 60-second turn timer, Mystery badge on the hero bar, accessibility mode, Shift+Space to attack the hero.
- Engine: Mysteries, Overcharge, Suppress, cost modification, Poison, temporary control, random card pools and a long run of PRIME cards (201 of 254 playable). A 30-card deck limit and a copy limit.
- Decks: 12 Core, 10 Prime and 8 Core + Prime starter decks; a new deck builder with a card detail window; a new-game deck picker.
- Data and balance: card data rebuilt from the new Airtable base with the balance pass applied; PRIME win-rate tables.
- Art: PRIME card art copied in, a placeholder for cards with none,
-DECKstrips matched tohsclone.
2026-11-11
- Play: framed cards (rarity frames, cost gems, badges), the
hsclonehand feel, a new hero bar, rich card text and debug URL params. - Cards: TacMedic became Frontline Guardsman (a plain 2/4 Guard); weapons lose the "Equip" prefix.
- Docs: README refreshed with a notice that the card art is placeholder and not licensed for reuse.
Earlier
The Hearthstone-style engine was rebuilt from scratch on branch hs-rebuild (card model, turn flow, minions and
combat, spells, keywords, triggers, weapons and armor, then every CORE card). The earlier zone-style game is kept at
tag snap-style-v0 and branch archive/snap-style.