Convergence.Game/BIBLE/part 5
App/Services/SaveStore: slot1.json…slot3.json under the active profile's persistentDataPath/Profiles/<Name>/Saves (amended 2026-11-02, GG-T99; was persistentDataPath/Saves; -saveRoot DIR puts the whole Profiles folder under DIR/Profiles), written atomically (temp file + File.Replace). GameApp.Persist writes the slot; a settings change is written by GameApp.SaveSettings to the profile's settings.json instead:
| Trigger | Saved? |
|---|---|
| New game in a slot | yes |
| Every successful Camp action (buy, sell, craft, repair, equip, learn, assign, party, summon, bounty, inn, camp item) | yes, immediately |
| Settings change | the profile's settings.json, not the slot (GG-T99) |
| Story crawl first shown | yes |
| Battle end (victory, defeat, retreat, escape) | yes, after BattleFactory.Commit
|
| Save & Quit | yes |
| Mid-battle | no (battle state is not saved; quitting mid-battle loses the battle only) |
Amended 2026-10-20 (GG-T146): SaveStore.Write never throws. A failure at any step (disk full, a locked file, permissions) is caught, logged as [Save] slot N write failed: …, best-effort-cleans the .tmp file, and is reported to the caller via a bool return instead of losing progress silently — mirroring how Load reports a bad read with a log plus a null sentinel rather than an exception. GameApp.Persist shows the "Couldn't save!" toast whenever Write returns false. (Tests: SaveStoreTests.Write_WhenTheTempFileCannotBeWritten_ReturnsFalseInsteadOfThrowing, Write_WhenTheReplaceStepFails_ReturnsFalseAndLeavesThePreviousSaveIntact.)
Amended 2026-11-20 (GG-T482, phones): the temp file is flushed to the disk (FileStream.Flush(true)) before the rename, so a power cut can't leave a renamed empty slot, and the rename keeps the previous slot file as a rolling backup, slotN.json.bak (File.Replace with a backup name; WebGL copies it first). Load falls back to the backup when the slot file is missing, empty or unreadable, copies it back over the slot file (so the next write rotates the good save, not the bad one, into the backup), keeps the bad file as slotN.json.corrupt, and logs [Save] slot N restored from its backup. The player loses at most the last write (one Persist: a purchase, a battle's result). Exists counts a slot with only its backup left; Delete removes all three files. (Tests: SaveStoreTests.Write_KeepsThePreviousSaveAsTheBackup, Load_OfCorruptFile_RestoresTheBackup_AndPutsItBack, Load_OfEmptyFile_RestoresTheBackup, Load_WithOnlyTheBackupLeft_RestoresIt, Delete_RemovesTheBackupToo.)
Cloud save and transfer (planned follow-up, GG-T482). Not built yet; the plan:
- Android: Play Games Services Saved Games (the Google Play Games plugin for Unity). One snapshot per profile slot (
<profile>/slotN) holding the slot JSON (well under the 3 MB snapshot limit) plusUpdatedUtcandPlaySecondsin the metadata. Upload after eachPersistwhen signed in (debounced to one upload a minute and onOnApplicationPause); on load, if the cloud snapshot is newer than the local slot, ask "Use the cloud save from <date>, <play time>?" rather than merging. The plugin adds a sign-in prompt and the Play Games dependency, so it waits for the owner's Play Console setup (GG-T478). Built 2026-11-23 (GG-T608), inert until the Play Games plugin and the Play Console app id are in (docs/RELEASE_BUILD.md "Cloud save").Meta/CloudSavemakes every decision: the snapshot is named<profile>-slotN(Play Games allows only[A-Za-z0-9-._~], 100 chars; anything else becomes_), its body is the slot'sSaveTransfercode (so a download goes through the same version check andSaveMigrations.Migrateas an import), its metadata carries the play time and a "Name · N heroes · h:mm played" description, andDecidecomparesUpdatedUtc: within 5 s is the same save, a newer local save is kept (the next upload replaces the cloud), a newer cloud copy is only offered.CloudUploadThrottleuploads at most once a minute, flushed on pause and quit, and a failed upload retries at the next save.App/Services/CloudSaves:GameApp.Persisthands every successful write to it (a slot still waiting when another slot is saved goes up first); Continue and Load Game askBeforeLoad, which shows "Use the cloud save from <date>, <h:mm> played? This device's save is older (…) and would be replaced." (Use cloud save writes it to the slot; Cancel plays the local one) and plays the local save at once when signed out, unreadable, or after 8 s without an answer; Load Game gains Restore from cloud (and is enabled with no local saves) wherever a cloud exists, which signs in interactively if needed and fills only empty slots. Two devices' unsynced writes resolve inside Play Games to the longer play time.PlayGamesCloudBackend(plugin v11, Play Games v2: silent sign-in at launch,OpenWithAutomaticConflictResolution/ReadBinaryData/CommitUpdate) compiles only withGG_PLAY_GAMESon Android; every other build has no backend and every call is a no-op. Cloud saves carry the purchase ledger like any slot, and the Import save rule applies (GG-T469): a cloud copy whose ledger shares a store transaction id with a save in any other slot on the device (every profile, and.baks) is neither offered nor restored, so one purchase never pays its Shards in two slots; the account wallet (GG-T620) is where purchases stop riding along. (Tests:CloudSaveTests.) - iOS: iCloud key-value or CloudKit through a native plugin, the same snapshot-per-slot shape; needs the Mac and Apple account (GG-T479). Built 2026-11-25 (GG-T609) on the iCloud key-value store, inert until the owner's Apple account, Mac and phone steps are done (docs/RELEASE_BUILD.md "Cloud save: iCloud", owner tickets GG-T1127 App ID, GG-T1128 Xcode build, GG-T1129 phone check).
ICloudCloudBackend(iOS players only) sits behind the sameICloudSaveBackend/CloudSaveslayer as Play Games, so the upload debounce, the "Use the cloud save from …?" offer, Restore from cloud and the purchase-ledger rule are unchanged. One value per slot underCloudSave.ICloudKey(the snapshot name, hashed down to iCloud's 64-byte key limit only when longer) holdsCloudSave.ICloudPack: the save's ownUpdatedUtc(so the same save reads back in sync rather than newer), play time, description and transfer code together, so a slot never syncs half-written;ICloudSaveBackend.Writenow receives the save'sUpdatedUtcfor that (Play Games ignores it). Conflicts match Android'sUseLongestPlaytime: iCloud keeps the last write to reach its server, so when another device's change replaces a value this device wrote this session,CloudSave.KeepMineOnConflict(longer play time wins; a tie keeps the cloud's) decides whether to write ours back. Unavailable (no iCloud account, iCloud off for the game, or no entitlement, whichsynchronizereports): signed out, so every call is a no-op; iOS has no in-game iCloud sign-in, so Restore from cloud then restores nothing. The native bridge isPlugins/iOS/GGICloud.mm;Editor/ICloudEntitlementsadds the Key-value storage capability to the exported Xcode project. The store's 1 MB covers every profile's slots together; a write over it is refused and logged. (Tests:CloudSaveTests.) - Export/import code (platform-free fallback): Settings > "Transfer save" shows the slot as gzip+base64 text to copy (and a share sheet on phones), and "Import save" pastes one into an empty slot after a version check. Small and engine-only (
SaveFiles.Serialize/Deserializealready exist); the open question for the owner is whether a copyable save invites editing Diamonds, which the Diamond purchase ledger (GG-T469) should be checked against first.
Built 2026-11-22 (GG-T607).Meta/SaveTransfer: the code isGGS1.<checksum>.<payload>— the slot's compact JSON, gzipped and base64'd; the checksum is the first 8 hex digits of the JSON's SHA-256 and catches a code cut short or mangled by a paste (it is not a seal).Pack/TryUnpackare the one serialize/deserialize pair the cloud saves (GG-T608/T609) reuse.TryImportignores the spaces and line breaks a paste adds, refuses a damaged or foreign code, a newer code format or a newer saveVersion("Update the game, then import it"), caps what a code may expand to (8 MB), and runs the result throughSaveMigrations.Migratelike any slot read from disk; nothing throws, every failure is a reason line. Settings (Title or Camp) has two rows: Transfer save (SaveExportScreen: pick a slot, the code in a read-only box, Copy code to the clipboard; the loaded game is exported from memory, the others read from disk) and Import save (SaveImportScreen: paste, Paste from the clipboard, pick an empty slot, Import). An import never overwrites a slot (every slot full → "Delete one first"). Purchases: an import whose purchase ledger shares a store transaction id with any save file on the device (every profile's slots and their.bak, the same scan the IAP store uses) is refused — a paid save can move to another device but not be copied into a second slot here, where it would pay its Shards twice. Hand-editing a code's Shards is still possible (the checksum is rebuildable); the account wallet (GG-T567, deferred) is where purchases stop living in the save. No share sheet yet (needs a native plugin); copy/paste works on every platform. UI labels are code like the rest of Settings, not Prose (story text only). (Tests:SaveTransferTests—A_code_reads_back_into_the_same_save,Spaces_and_line_breaks_from_a_paste_are_ignored,A_damaged_cut_short_or_foreign_code_is_refused_without_throwing,A_code_from_a_newer_format_or_save_version_is_refused,Packing_never_changes_the_save,A_paid_save_already_in_a_slot_on_this_device_is_spotted.)
15.3 Ability bar and Bestiary
HeroSave.Knownlists learned ability ids;HeroSave.Barthe five bar entries. The battle reads the bar throughBattleFactory.SpecFor. (Tests:Save_round_trips_through_json,Full_loop_battle_commit_then_every_vendor.)- Bestiary: Seen for every class spawned — recorded at commit even on defeat; Defeated counts kills on victory. Amended 2026-11-06 (owner, GG-T290):
Scanned for Scan targets— Scan is retired; what the party knows of a class isBestiaryKnowledge.Tier(entry)(Meta,SaveData.cs), read fromDefeatedalone: Seen → name, description, lore and drops; 1 defeat → Speed; 3 → HP and base stats; 6 → elemental weaknesses and resistances; 10 → abilities, brain and targeting (DefeatsForSpeed/Stats/Elements/Abilities). An old save'sScannedflag is kept and counts as at least the stats tier. (Tests:BestiaryKnowledgeTests.)
15.4 Player profiles
Added 2026-11-02 (owner, GG-T99; reverses the "settings are per save slot" amendment). Profiles come from the shared com.mindattic.unity.shared package (Packages/manifest.json → file:../../Unity.Shared/unity/com.mindattic.unity.shared; its engine-free Unity.Shared.Core is referenced by Convergence.Meta and compiled into the dotnet test build):
persistentDataPath/Profiles/
├─ current.txt the profile in use
├─ <Name>/settings.json {"format":"mindattic.settings","version":1,"common":{…},"game":{…}}
│ common: musicVolume, sfxVolume, muteMusic, muteSfx, reduceMotion, language (every MindAttic game)
│ game: battleSpeed, dragTimer, colorblindMode, pincerCutIns, confirmActions,
│ menuTheme, fontName, difficulty{level} (1..10, default 10; §22.9)
│ customThemes[], themeTones{<theme>: {brightness, contrast, gamma}} (§11.5, GG-T407/GG-T563)
├─ <Name>/Saves/slot1-3.json that profile's save slots (§15.1)
└─ .trash/<Name>~<UTC> deleted profiles, moved aside, never erased
Meta/PlayerProfiles.cs:GameSettingsmapsSettingsSave↔ settings.json (unknown fields are kept; the CLI-mutedsession mute is never written back);ProfileSessionis the active profile + its settings (switch / create / rename / delete; switching reloads settings from the new profile's file);SaveFilesis the slot file shape shared bySaveStoreand the tests.- Settings follow the profile, not the slot:
GameApp.Settingsis the active profile's, applied at boot (so the Title already wears the player's theme, font and volumes) and the same whichever slot is loaded. The Settings screen (reachable from the Title as well as Camp) edits it and writes settings.json on every change. - Title: a Profile row shows the current profile; it opens the picker (
ProfileSelectScreen: tap to switch; Rename; Delete with a confirm; + New profile), andProfileNameScreentakes a name (create — which also switches to it — or rename), refusing names that can't be a folder on every platform or already exist. Deleting the last profile leaves a freshDefault. Code-built like every other screen. - First-run profile and Commander name (amended 2026-11-27, GG-T1550; ✅ Built: the settings key, the text token, the wizard and the Splash hand-off (GG-T1619, GG-T1344, GG-T1345);
-start splashon a fresh-saveRootreaches the wizard under automation, the start ofpython tools/harness.py frontdoor(GG-T1408); click-through indocs/design/front-door/; GG-T1336, GG-T1339, GG-T1344, GG-T1345). On a first launch (the active profile has nogame.firstRunDoneand no saves;GameSettings.Keys.FirstRunDone/SettingsSave.FirstRunDone, a profile without the key that has slot files counts as done, and the legacy migration marksDefaultdone) the Splash hands off toCreateProfileScreen, one step in the menu kit (amended 2026-11-28, GG-T1957, UX review item 17; it was a three-step wizard with quick settings and a summary): the Commander's name, prefilled with a suggestion (CreateProfileScreen.Suggestion: "Commander", numbered past a name already taken) and checked byProfileNameScreen.Problem(the profile name rules above: 1-16 characters, a legal folder name on every platform, not taken), and Create, a single tap (the final commit, so it passesconfirmTap: false; the owner has not ruled on two-tap here), which creates the profile and switches to it (on the first launch it renames the store's own empty Default instead, GG-T1345), writesgame.firstRunDoneto its settings.json, then goes to the Main Menu. Settings keep their defaults; music, sound, battle speed, Reduce Motion, colorblind and difficulty are all in Settings. Back cancels only when the current profile has finished its own first run (otherwise there is nothing to go back to). The Commander's look and pronouns are not asked here: they belong to the Founding scene, and neither is built yet. Profile select's + New profile opens it too;ProfileNameScreenstays for Rename. Automation:-goto createprofileopens it,newprofilestill opens the old name screen. The name becomes the profile and seedsSaveData.CommanderNamefor every new campaign (kept in saves by GG-T1342); Settings can change all of it later. Story text reaches the name through the{commander}text token (crawl pages, dialogue lines and barks), filled fromSaveData.CommanderName(else the profile name; cloud restores pass it toSaveMigrations.Migrate); content validation accepts only this token and flags any other{token}; it is distinct from the$commanderdialogue speaker token that already exists (Meta/Commander.cs, GG-T1575), which binds a line's speaker to the Commander when a dialogue opens. - Migration (
LegacySaveMigration, once, first launch):persistentDataPath/Saves/slot*.jsonare copied into theDefaultprofile (a slot it already has is never overwritten), the most recently played slot's (by itsUpdatedUtc) oldSettingsblock seedsDefault/settings.json, and the old folder is renamedSaves.migrated. Nothing is deleted. - Delete all game data (§15.4, added 2026-11-27, GG-T1580; store data-deletion / GDPR erasure, docs/release/StoreReadiness.md S3): Settings > Data has a Delete all game data row (
settings-delete-all-data) after Spending limit. Two confirms: the first says every profile, save slot and setting on this device is erased, and so are their cloud copies; the second that purchased Shards, owned products and cosmetics are lost too and are not refunded.GameApp.DeleteAllData(done)reads the profile names, clears the loaded save, deletes every slot of every profile from the cloud when it is signed in (CloudSaves.DeleteAll, which also drops a pending upload, GG-T1544), then really erases the profiles folder's contents: each profile folder,.trash(a profile deleted from the picker is only moved there),.account(the account wallet) andcurrent.txt, pluspersistentDataPath/Saves.migrated*only when the folder is the realpersistentDataPath/Profiles(never under-saveRootor-profiles-root). It then opens a freshDefaultprofile, reloads an empty wallet and returns to the Title;donegets false (a toast says some data couldn't be deleted) when any local or cloud delete failed. - Settings > Developer (added 2026-11-28, GG-T1938; owner: "the release versions that get produced should allow me to select things like Settings > Developer > Cheats: On, so that I can speed through the game, click a Developer only option in the pause menu that says Kill All Enemies"): an in-app gate separate from the
-enableDebugOptionslaunch gate (§8.1), so it works in a release build on a phone. Hidden until the version line (settings-versionat the foot of the Settings list, orabout-versionon About) is tapped 7 times in a row (taps under 2 s apart), Android-style; the toast says "Developer options on". The unlock and the Cheats switch live in this device's PlayerPrefs (dev.options, the same flag that shows GG-T1939's feedback Note,convergence.dev.cheats), never in a save or a profile, and both start off (App/Dev/DevOptions.cs). With Cheats on: a red DEV badge sits in the stage's top-right corner (dev-badge, above every screen) so screenshots show it; Settings > Developer offers Give gold (+10,000), Give items (10 of each consumable), Unlock all stages, Unlock all stations and Party level (cycles 1, 5, 10, 20, 30, 40, 50) on the loaded save, through the dev automation's own code paths (App/Dev/DevCheats.cs, whichdevstage,devxp,devgive,devequipallandnewgame npcs=1now call too); the battle pause menu gains a Developer block: Kill all enemies (DevCheatCommandthroughBattleEngine.Apply: every foe falls through the death choke-point, wave after wave, no death bursts, no time spent, so the last foe's fall plays the normal victory), Win battle (BattleScreen.DevWin), Full heal party (DevCheatCommand, healing through the heal choke-point), Fill mana (DevGiveMana, every meter topped) and Battle speed ×1/×2/×4/×8 for the run (Settings' own dial stops at ×3). Still to come: Give shards and Skip story beats (GG-T1965), Instant turns (GG-T1967). - Automation:
-saveRoot DIRkeeps every profile underDIR/Profiles(the harness passes its run folder, so harness and tests never touch real profiles); Unity.Shared's-profiles-root DIR/MINDATTIC_PROFILES_ROOTname the folder outright;-profile NAMEpicks (or creates) a profile;-demoand-testmodeplay under a throwawayThrowawayprofile in a temp-cache folder cleared at launch. The automation endpoint hasprofile?op=list|switch|create|rename|delete,gotoknowsprofilesandnewprofile, andpython tools/harness.py profilesshoots the picker, the name screen and Settings and checks settings follow the profile.
(Tests: ProfileTests — Migration_moves_every_legacy_slot_into_the_Default_profile_and_keeps_the_old_folder, Migration_seeds_settings_from_the_most_recently_played_slot, Migration_runs_once_and_does_nothing_without_a_legacy_folder, Migration_never_overwrites_a_slot_the_profile_already_has, Each_profile_has_its_own_save_slots, Each_profile_has_its_own_settings, Switching_profiles_reloads_settings_and_remembers_the_choice, A_session_mute_never_reaches_settings_json.)
17. Workflow Discipline
Amended 2026-10-09: "Code-Only Workflow" is now literal — there is no editor-side authoring at all.
- Never ask the user to open the Unity Editor to place, drag or wire anything. A screen is C# in
App/ScreensorApp/Battle; a rule is C# inCore; content is JSON. - Rules change in
Corefirst, with a test inTests/Core.Tests; the view adapts to events. - Never force-close Unity;
tools/unity.ps1refuses to run while the project is open — ask the user to quit the Editor cleanly.
17.1 Common pitfalls
- Deciding rules in the view. If
BattleScreenneeds to know an outcome, askBattleEngine(PreviewMove,GetSlotStatus,ValidTargets,ActionsUntilTurn) — never re-implement. - Non-determinism in Core. No
System.Random,DateTime,UnityEngine.Randomor dictionary-order dependence in rules; the replay test catches it. - Mutating state in a preview. Previews run on
BattleState.Clone()withPreviewOnly(no events, no traps/wake-ups); keep it that way. - Missing glyphs. A new symbol in UI text must pass
check_glyphs.py. - Unknown JSON fields.
MissingMemberHandling.Errorfails the load — add the field to its def inCore/Content/Models/first. - PowerShell 5.1 encoding. Never round-trip
.cs/.jsonthroughGet-Content/Set-Content(BOM-less UTF-8 mojibakes); use an editor or .NETWriteAllTextwithUTF8Encoding(false). - Playback stalls. Every animation runs through
Safe(), the finalSyncAll()snaps views to truth, and a 20 s watchdog resyncs — don't bypass them. - Worktree package resolution (GG-T159).
Packages/manifest.jsonpullscom.mindattic.media.capture/com.mindattic.telemetryviafile:../../MindAttic.Media.Capture/unity/.../file:../../MindAttic.Telemetry/unity/..., two levels above the project root. In the main checkout that lands on the real sibling repo; in a per-ticket worktree (<WorkspaceRoot>.worktrees\GridGame.Unity\<Ticket>\) the same climb instead lands on<WorkspaceRoot>.worktrees\GridGame.Unity\<Repo>, which has no repo of its own.tools/unity.ps1now auto-creates a directory junction there (pointing at the real sibling repo, found by walking up to the nearest*.worktreesancestor) the first time it's missing, sotools/build.ps1/tools/test.ps1 -Compilework in a fresh worktree with no manual setup; junctions, not symlinks, because creating a symlink needs admin/Developer-Mode privilege on Windows and junctions don't.
17.2 Cadence
- Keep going until the feature works end-to-end before committing.
pwsh tools/test.ps1after every rules/content change;-Compileafter App changes (Editor closed).pwsh tools/build.ps1thenpython tools/harness.py smoke/sweepfor anything visible.
17.3 Checkpoint recipe
1. pwsh tools/test.ps1 → all tests + glyph check green? 2. App touched? pwsh tools/test.ps1 -Compile → zero "error CS"? 3. New rule? docs/BIBLE.md updated (§32) and a test named for it? 4. Visible change? build.ps1 + harness.py smoke/sweep → screenshots in artifacts/, layout audit clean? 5. USER_STORIES.md status + evidence updated? 6. Commit once.
17.4 Naming conventions
*Def = a JSON content row · *Event = something that happened · *Command = a player decision · BattleRunner.<Concern>.cs = one rules concern per partial file · static classes in Meta = Camp services returning Result · *Screen / HubPage = a UI Toolkit page · *View = presentation of a Core object (BoardView, UnitView).
17.5 File-edit cookbook
| Goal | File(s) | Remember |
|---|---|---|
| Tune a battle number | Core/Battle/BattleConfig.cs
|
update the bible table; run soak |
| Change a formula | Core/Rules/Formulas.cs
|
§13.1 |
| Add a spell / skill | abilities.json (+ a class's Abilities/DefaultLoadout)
|
§7 row; CatalogTests covers it automatically
|
| Add a buff | buffs.json (+ a new knob in BuffDef and its hook in BattleRunner if needed)
|
§8 |
| Add an enemy | classes.json + a stages.json wave (+ droptables.json)
|
Resources/Portraits/<name>-<NN>.png (§12.1.3) + a Thumbnail framed in GridGame.Studio's Thumbnails tab (§12.1.1)
|
| Add an item / recipe | items.json / recipes.json
|
Every_recipe_is_craftable_with_its_inputs
|
| Tweak AI weights | Core/Rules/EnemyPlanner.cs
|
§14.1.2 |
| Add a Camp service | Meta/MetaServices.cs + a screen in App/Screens/Camp/ + hub row + StartScreens id
|
MetaLoopTests, harness sweep list
|
| Add a save field | Meta/SaveData.cs + SaveMigrations (bump CurrentVersion when shape changes)
|
round-trip test |
| Add a battle animation | BattleScreen.Playback.cs Animate switch
|
awaited beat, Fx for motion
|
| Add a sound | Resources/Audio/Sfx + Audio.Cue
|
Credits.txt attribution |
Owner walkthrough notes (GG-T1939). With Developer options on (DevOptions.Enabled), a corner Note button and the battle pause menu's Note row capture the screen and a typed comment into persistentDataPath/feedback/<timestamp>/ (shot.png, note.json: comment, screen id, battle stage/wave/units, build, device, time); tools/import_feedback.py files each as a fix ticket. Dev-only; not part of the player-facing design.
18. Glossary
The L0 §9 Glossary is canonical; additional terms: Armored (snake member taking 0 while a later member lives) · Escape (Smoke Bomb exit; wounds kept) · Control return (end of an action: hero buffs/cooldowns and enemy Frozen tick) · Interrupt outcomes (Clutch → resolve now, Shrug → no delay, Stagger → delay accumulates, Cancel → delay ≥ cast time, orbs lost) · Passive (always-on class ability: Double Attack, Counter Attack) · Sentient (an enemy with a society or that plans ahead — may be a pincer attacker; heroes always; replaced Humanoid 2026-11-06, GG-T289) · Coins (gold picked up in battle, banked on victory) · Materials (crafting inputs) · targeting axes Shape / Mode / Filter (§5).
19. How to Add a New Spell — Checklist
- Add a row to
abilities.json:Id,Name,Description,Kind: "Spell",Costletters,CastTime,Shape/Radius/Mode/Filter,Motion,DamageType/BaseDamageorBaseHeal, optionalApplyBuff/ApplyBuffChance/RemovesDebuffs/HastenU,Icon. - Every hero can now learn it at Camp (general spell catalog, §25.6); add it to a class's
Abilities/DefaultLoadoutto make it signature or starting. - New debuff? Add it to
buffs.json(letter + color). - Add
Resources/Icons/<icon>-00.png(§12.1.3). pwsh tools/test.ps1—CatalogTests.Every_hero_ability_resolves_against_a_live_boardexercises it.- Add the §7 row.
19.1 Worked example: "Quake"
Brief: pick a tile, hit a 3×3 square of enemies for 16 Physical, no debuff.
{ "Id": "quake", "Name": "Quake", "Description": "The ground heaves under a 3×3 area.",
"Kind": "Spell", "Cost": "RB", "CastTime": 1.5,
"Shape": "Square", "Radius": 1, "Mode": "PickTile", "Filter": "EnemyOnly",
"Motion": "None", "DamageType": "Physical", "BaseDamage": 16, "Icon": "Quake" }
Learn price: 120 + 80 × 2 orbs = 280 G. What you don't touch: the dispatcher, targeting UI, cast icons, bank, HUD — data only (GG-LAW-5).
20. How to Add a New Enemy — Checklist
- Add a
ClassDeftoclasses.jsonwithTeam: "Enemy",Tags(Sentientif it has a society or plans ahead and so may pincer — vampires and mummies yes, mindless undead and beasts no, GG-T289/GG-T294),BaseStats,Growth,Resistances,XpReward,MoveRange, optionalDropTable,ChargeAbility/ChargeShape,Trap,BossPhases,Footprint,SnakeSegments. No story text (GG-T355, §27.2):Description,Loreand boss-phaseAnnouncelines are not fields ofclasses.jsonany more.- The class's keys exist as soon as it does:
class:<id>(its blurb and Bestiary lore) andbark:bossphase/<id>/<n>for each boss phase. Until Prose has its text it shows(missing text: class:<id>)andContentLoader.Validatenames the key. - Draft the words in Prose, never in this repo:
prose --texts-draft gridgame <dir>with aprose-text/1file per key (tools/prose_seed.pyshows the shape); agents only draft (RFC 0009). Runkit push --mapso the universe gainsclass-<id>. When the owner approves and publishes, the next build's pull writes it intoContent/Text.python tools/prose_text.py checklists the keys still without a text.
- The class's keys exist as soon as it does:
- Add the class's portrait (
Resources/Portraits/<name>-<NN>.png, §12.1.3) as a 1024×1024 transparent canvas, never trimmed or shrunk (owner 2026-11-07: "all characters are 1024x1024 with transparent backgrounds; that's the rule, that's what the assets are", §12.1.2). RunGridGame.Studio/tools/import_art.py, or for owner art on a white backgroundpython ../GridGame.Studio/tools/portrait_cut.py <image> --import <id>, which erases the background and keeps white cloth and translucent smoke (GG-T327). Either one writes the canvas and the class's"Figure"box (add the class first, or copy the box it prints). The import names the file and writes the class's"Portrait"stem (and"PortraitVariant") when it has none; a later GridGame2026import_art.pyrun reads only classes whose"ArtSource"names an original there, and give it aThumbnail: frame it in GridGame.Studio's Thumbnails tab (§12.1.1); there is no separate thumb image. - Put it in a
stages.jsonwave; optionally add adroptables.jsontable. pwsh tools/test.ps1— validation, catalog and soak include it automatically. The Bestiary lists it (silhouette until seen).
20.1 Worked example: "FrostWolf"
A Beast {"Id":"frostwolf","Team":"Enemy","Tags":["Beast"],"Resistances":{"Ice":0.0,"Fire":2.0}, "XpReward":25,"MoveRange":1,"DropTable":"wolf00", …stats} never pincers; EnemyPlanner closes distance and melees; coins default to ~½ XP; the Bestiary shows it as a silhouette until seen.
22. The Macro Loop
Title ─▶ (Continue | New Game → slot → CharacterSelect (pick 3) → Prologue crawl | Load Game → slot)
▼
Camp (HubScreen) ◀══════════════════════════════════════════╗
│ Adventure ─▶ stage list (newest-first) ║
│ Crucible ─▶ endless waves, keeps everything (§22.10) ║
▼ ║
StoryCrawl (first entry into a theme only) ║
▼ ║
Story beats (dialogue; a finale's boss intro; §27.1) ║
▼ ║
Battle — clear every wave ║
▼ ║
LevelUp — one hero at a time, only when someone leveled ═════╣
▼ ║
PostBattle — gold, items, unlocks, bounty ════════════════════╝
(Continue → [level interlude] → Camp · Next stage › → Battle · Retry → Battle)
(first win over the Hierarch: Continue → Ending crawl → rolling Credits → Title)
- Stage = waves. Clearing a wave spawns the next immediately inside the same action; clearing the last wave is victory.
- Reward beat.
BattleFactory.Commitwrites XP, gold, items, kills, unlocks and slain bounty targets, then the save is persisted andPostBattleScreen.RouteFromopensLevelUpScreenfirst if anyone leveled, elsePostBattleScreendirectly. No Overworld (§28).Amended 2026-11-27 (owner, GG-T1655): the caravan travels an overworld map between battles; camp, hunting and the Wilds happen on it (§28, proposed).- Test Mode loop (GG-T93):
-testmoderuns this same loop with the bot at every seat — Camp → Battle → LevelUp → PostBattle → Camp, whereCampRoutinespends before every launch — skipping Title/CharacterSelect/StoryCrawl/tutorial, on a party-scaled save whose enemy level tracks the party's level (see §6).
22.1 Per-transition state contract
| From → To | Commit before | Hydrate on arrival |
|---|---|---|
| Camp → Battle | nothing (every Camp action already persisted) | BattleFactory.Build: party specs (level from XP, carried HP, weapon + durability, equipped items, bar), inventory counts for item stacks, unlocked slots, recommended level = campaign index + 1
|
| Battle → LevelUp → PostBattle | BattleFactory.Commit + Persist
|
LevelUpScreen (only if BattleReport.LevelUps is non-empty) then PostBattleScreen render the BattleReport
|
| PostBattle → Camp / Battle | already saved | screens rebuild from App.Save
|
Commit rules (BattleFactory.Commit) — Amended 2026-10-09 where marked, Amended 2026-10-11 (Retreat) where marked:
- Always: deduct consumed items; record Seen (Scanned retired 2026-11-06, GG-T290).
- Victory: gold += coins (also
LifetimeCoins); add item drops; add kills to Bestiary; every party hero — alive or fallen — gains the battle's full XP total (not split, Amended); HP: level-up → full, survivor keeps wounds, fallen → 1 HP; weapon durability written back (a shattered weapon is removed); stage marked cleared,HighestClearedStageraised, next stage named as unlocked. A bounty target that fell is marked slain on any ending (GG-T431, §22.4). - Defeat: nothing gained but hard-won XP (below); party HP reset to full.
- Retreat (Amended — no longer a Defeat): keeps hard-won XP plus
BattleConfig.RetreatKeepFraction(50%) of the battle's gold and item counts so far, floored; party HP reset to full, same as Defeat. - Escaped (Amended): nothing gained; wounds kept (fallen → 1 HP).
- Crucible (Amended 2026-10-19, §22.10): however the run ends — wipe, leave, escape or (in theory) clearing every wave — it keeps everything: gold, item drops, the full XP total (level-ups and skill points), kills and gear wear; party HP reset to full. Never touches cleared stages,
HighestClearedStage, unlocks,LastStageor the expedition.BattleFactory.Commithands anycrucible-*stage toCrucible.Commit.
22.2 Failure path detail
Amended 2026-10-11 — hard-won experience: a defeat now keeps the XP of every foe felled (gold and loot are still lost); the results screen shows "Hard-won experience +N each" and any level-ups. Found with the battle records: with a 20-wave first battle and no reward for losing, a learning player could never get stronger.
- Defeat (all heroes down): "DEFEAT", no rewards but hard-won XP, party restored to full, PostBattle offers Retry and Continue.
- Retreat (pause menu → Retreat, confirmed) — Amended 2026-10-11: FFIV-style partial loss, no longer a Defeat. Its own
BattlePhase.Retreated(mirrors howEscapedalready gets its own phase);BattleFactory.Commitkeeps hard-won XP plusRetreatKeepFraction(50%) of the battle'sResults.Coins/Results.Itemsaccumulated so far, lost otherwise. PostBattle shows "RETREATED" and the partial haul. The pause-menu row and confirm dialog quote the exact kept percentage. Mid-expedition, a retreat still ends the expedition via the normal non-victory path (§22.5). - Escape (Smoke Bomb): "ESCAPED", no rewards, wounds remain. Amended 2026-10-09 (new). No permadeath (§29).
- The Crucible is the exception (Amended 2026-10-19): a wipe, Leave or escape there keeps the whole haul and all XP, party restored to full (§22.10).
22.3 Adventure — the stage list
Amended 2026-11-27 (owner, GG-T1656): the map replaces the Adventure list. The stage list, order, waves and levels below still hold, but the stages become places on the region maps (§28.1, §28.2): the caravan travels to a stage's node and Enter starts it (§28.3), and "Stage N" captions give way to location names (§28.9). Stage navigation is the Adventure list. Proposed until the epic's tasks build it (epic GG-T1652): the text below is the live behaviour until then.
Story flavour superseded 2026-11-21 (GG-T575). The stage list, order, waves, levels and save rules in §22.3 and its subsections still hold. Their story flavour does not: it was written for the retired premises (Under Morrow, then A War in Heaven), so "Morrow" as the moon, "the moon" coming home or hanging low, the Nearing, moon-changed beasts, fallen moon-rock and the Pale Concord's tithe are retired history. The sky now holds the ordinary Moon (fixed size) and the Somnolith, which is not a moon (an ancient thing stopped long ago, hanging in the sky and orbiting, coming closer chapter by chapter until it fills the sky over Morrow's Shadow; GG-T577); the life-force is mana, never essence; read every region's story against the canon (Prose gridgame, staging copy Data/Prose/canon/) and §27.3. Region and chapter names stay, including Morrow's Shadow ("morrow" = tomorrow). A painted moon named in a backdrop entry below describes the old art, which GG-T576 splits and repaints.
Amended 2026-11-16: stage names are the region name plus a numeral (the Green Valley/Sandsea/Mireholt/Frostmaw/Veshker leftovers are retired; greenvalley2 is The Free Holds, GG-T386). Adventure is region, then stage, each row Cleared/New; a cleared stage is a hunt when no expedition is under way (Expeditions.IsHunt), rolling drops and wanderers afresh (GG-T388).
Amended 2026-10-09 (owner decision):
- Unlocked stages only, newest first. The list shows every unlocked campaign stage in reverse play order, so the frontier is on top; all locked stages collapse into one teaser row ("◇ N more stages ahead…", disabled).
- Stage names are "<Theme> I / II / III" (e.g. "Tithe Moors I", "Shardfall III").
- Row content: ★ cleared / ☆ not yet, the name, "Lv N" (recommended level), and a second line "<Theme> · N waves · drops: X, Y, Z" from the wave enemies' drop tables (first 3 distinct items) — the farming hint.
- Unlock gating: stage index i is unlocked when
i ≤ HighestClearedStage + 1(Progression.IsStageUnlocked): linear forward, fully open backward; every unlocked stage is replayable. - Farming is the point: cleared stages stay replayable and drop tables differ per enemy.
- A strip above the list shows each hunted bounty's clue (GG-T431); a region or stage a hunted target roams is marked ☠.
Difficulty curve: Progression.RecommendedLevel(i) = i + 1; spawned enemy levels are max(authored, recommended); test stages are exempt. XP and coins scale with enemy level. The player's difficulty dial (§22.9) then scales the enemy side down from the designed 10 and the rewards with it.
Amended 2026-11-05 (GG-T261, POL-G1/G2): the casual-bot curve is measured by python tools/polish.py --balance (casual bot, rotating five-hero parties at the stage's level). Before: Anchor Wastes I–III and Halcyon I–III won 0 %, Tithe Moors III 0 %, Tithe Moors II and Shardfall II 100 % — the zeros were the remains rule (§14.5), not the waves. After the remains fix, wave trims where losses clustered and additions where it was a walk-over — Shardfall I wave 5 (−1 Mecha Armor), II waves 1/4 (+Scorpion, +Soldier), III waves 2/4 (+Tech Gremlin, +Vulture); Arkgrave I wave 5 (Hag → Lurker); Tithe Moors III waves 2/3 (+Wolf, +Ganger); Anchor Wastes I waves 3/4 (a Goblin Thug for one Ceramic Knight and for the Troll), II wave 3 (+Goblin Thug), III waves 2/5 (a Goblin Thug for one Ceramic Knight, −Ice Mauler; the Cyclops' GravityStamp stays); Halcyon II wave 1 (−Bat), III waves 1/2/4 (the two-undead Flank group, one Bat, −Undead) — every main stage now wins 25–100 % with 8 rotating parties (most 50–88 %; party make-up swings a stage ±25 %). POL-G1 17.4 → 31.0, POL-G2 71.4 → 78.6.
Campaign (campaign.json): Tithe Moors, The Lantern Road (GG-T345, §22.3.2), Shardfall, Arkgrave, Anchor Wastes, The Still (GG-T344, §22.3.1), Halcyon, The Choir's Cathedral (GG-T350, §22.3.3) — 3 stages each, 5 hand-authored waves per stage (§22.7, amended 2026-10-12 — every stage normalized to 5, including Tithe Moors I, which had been 20), generally grouped by enemy family (frogs with frogs, goblins with goblins) rather than mixed. No two campaign waves are the same encounter (added 2026-10-22, GG-T184): the 19 waves that repeated an earlier wave's foes now name an encounters.json group of the same family instead (WaveDef.Group), and ContentLoader.Validate fails on any repeat. (Tests: EncounterCatalogTests.) Final boss: the Hierarch (its own enemy class hierarch since GG-T350, The Choir's Cathedral III; it spawns at the stage's recommended 24). ( Added 2026-11-05 (GG-T234): every main-biome finale (each theme's third stage) is fought against a rule-breaking boss (§14.9): the Captain (TwinTurn), an oni (Undying, The Lantern Road III, GG-T345), Mecha Armor (AxisWard), Swamp Mistress (MireSwap), Cyclops (GravityStamp), the Chronomancer (TwinTurn, The Still III, GG-T344), a Kiln Guard captain (AxisWard, Halcyon III, GG-T350) and the Hierarch (Undying, The Choir's Cathedral III, GG-T350).
vampire, level 10 authored, Halcyon III)
22.3.1 The Still (added 2026-11-07, owner direction, GG-T344)
Owner, with six new landscapes: "I will generate more landscapes from which you can extrapolate more story, settings levels, etc". The six images (a vast white dome inside: mana tanks glowing cyan, a moon-oculus, mirror-polished floors, rails and catwalks, arched gates) became The Still (still), a sixth main theme between the Anchor Wastes and Halcyon — the great Still at the foot of Halcyon's spire where every Anchor beam's tithe is collected into tanks before it climbs to the Hierarch (STORY.md §5.5).
- Campaign:
campaign.jsonorder is now Tithe Moors, Shardfall, Arkgrave, Anchor Wastes, The Still, Halcyon, then the five postgame themes. Milestone rewardtome_mana_siphon. Backgrounds: the owner's six landscapes asBackgrounds/still_01..06.jpg("Backgrounds": "still"). Three stages, five waves each, like every main theme: The Still I (still-01, the queues: three Hollow; the Bulwark gate guard, Shieldbearer and Rifleman; two Chromed Hollow and a Hollow carrying the cans; a Red Seal warden with a Chromed Hollow; a Choir Confessor and two Hollow at the head of the line), II (still-02, the tank hall: two Chromed Hollow and a Hollow; Cantor and Confessor; Siphoner, Shieldbearer and a Hollow; two vat-giants grown in the tanks,cyclops03/04; a Psalmist, a Chromed Hollow and a Hollow), III (still-03, under the oculus: two Hollow and a Chromed Hollow; the Siege Gunner and a Rifleman; Cantor and Psalmist; a vat-giant and a Hollow; then the Chronomancer with TwinTurn beside a Shieldbearer and a Confessor, §14.9). Board tileTiles/still.png(GridGame.Studio/tools/make_tiles.py still, one polished white slab with pooled mana); the tanks stand on the board as blocks. - Levels:
RecommendedLevel(i) = i + 1puts the Still at 13–15 (the Bulwark's and Choir's Crucible band) and moves Halcyon from 13–15 to 16–18 (the Hierarch fights at 18). Since GG-T345 (§22.3.2) both are three higher: the Still 16–18, Halcyon 19–21. - Story beats: the crawl,
still_party_talk(ThemeStart, the Enchantress on the queues),boss_intro_still(StageStart still-03: the Chronomancer shows them tank nine — a whole hold, Fennick's Rise, drowned and turning — and the crew learns the Hollow aren't empty, they're stored), and a side quest, The Hymn Stops Here (q_hymn_stops, the Enchantress: defeat three Choir Cantors). - Balance (24 seeds, campaign parties of six, difficulty 10,
AbilityUsageSoakwithCONVERGENCE_ABILITY_STAGE): casual 14/24, 20/24, 15/24 (58–83 %), smart 24/24 on all three. The first cut had two Templar pairs and a Templar beside the Choir and measured casual 6, 7 and 5/24; the losses clustered at those waves, so the Red Seal thinned to one warden per wave. Halcyon at 16–18 instead of 13–15 measured casual 6, 10 and 20/24 against 9, 15 and 19 before, with losses at the same waves (Halcyon I wave 3, Halcyon II wave 5). One bat came off each of those waves, and Halcyon now measures 8, 19 and 20/24, smart 24/24. - Old saves:
HighestClearedStageis a campaign index, so save v5 moves any save already past the Anchor Wastes up by three (SaveMigrations.StillInsertedAt12,StillStageCount3): the same furthest clear, the Still open behind it. - Tools: the ability-usage and timeline soaks play the main campaign (every campaign stage before the first
LevelOverride) instead of "the first 15", andCONVERGENCE_ABILITY_STAGEtakes a comma list. - (Tests:
StillTests;StoryArcTestsandRuleBreakTestslist six finales;QuestTestswants a quest in every main theme.)
22.3.2 The Lantern Road (added 2026-11-07, owner direction, GG-T345)
Owner, with four new landscapes: "I will generate more landscapes from which you can extrapolate more story, settings levels, etc". The four images (a lantern-lit pilgrim road climbing mountain gorges at night: stone stairs, shrines, torii, bamboo, rope lines of paper lanterns, a low full moon) became The Lantern Road (lanternroad), a seventh main theme between the Tithe Moors and the Shardfall: the crew climbs the pilgrim road out of the moors toward the desert (STORY.md §5, a structural entry only).
- Campaign:
campaign.jsonorder is now Tithe Moors, The Lantern Road, Shardfall, Arkgrave, Anchor Wastes, The Still, Halcyon, then the five postgame themes (main campaign 21 stages, 31 in all). Milestone rewardtome_steadfast. Backgrounds: the owner's four landscapes asBackgrounds/lanternroad_01..04.jpgat their native 768×1536, JPEG q95 ("Backgrounds": "lanternroad"). Board tileTiles/lanternroad.png(GridGame.Studio/tools/make_tiles.py lanternroad: one moonlit blue-grey flagstone, moss, a warm lantern pool). Three stages, five waves each, existing units only (the oni road-raiders, the gorge's moon-changed Wild, a little Redline and militia on the caravan's trail): The Lantern Road I (lanternroad-01: two wolves; three bats; two oni; two steppin razors; an oni with a wolf and a bat), II (lanternroad-02, two stone lanterns as blocks: a flying monkey and a bat; two steppin razors and a wolf; two oni; a werewolf with two wolves; a Redline ganger and a militia soldier), III (lanternroad-03, two blocks: two bats and a flying monkey; two steppin razors; a wolf and a werewolf; an oni and a steppin razor; then the oni chiefoni02with Undying beside an oni and a wolf, §14.9). - Levels:
RecommendedLevel(i) = i + 1puts the Lantern Road at 4–6 and moves every later chapter three levels: the Shardfall 7–9, the Arkgrave 10–12, the Anchor Wastes 13–15, the Still 16–18, Halcyon 19–21 (the Hierarch fights at 21). Postgame stages keep theirLevelOverride. - Story text is placeholder draft. The owner ruled that story is authored in Prose, not in this repo (Prose RFC 0017, GG-T355), so the chapter carries only short functional text: the crawl,
lanternroad_party_talk(ThemeStart, the Lantern Merchant on the road),boss_intro_lanternroad(StageStart lanternroad-03) and a side quest, Masks Off (q_masks_off, the Lantern Merchant: defeat three oni, soQuestTestsstill finds a quest in every main theme). All of it is to be replaced by approved Prose text. - Balance (24 seeds, campaign parties, difficulty 10,
AbilityUsageSoakwithCONVERGENCE_ABILITY_STAGE): the Lantern Road casual 19/24, 16/24, 15/24, smart 24/24 on all three. The first cut measured casual 19, 12 and 6/24 with losses spread over the oni and steppin-razor waves, so Lantern Road II lost a wolf from its oni wave and a Redline ganger from wave 5, and III thinned waves 2–5 by one foe each. Every later main stage re-measured (casual wins of 24, before → after; smart stayed 23–24/24 everywhere): Shardfall 18/14/13 → 15/13/14, Arkgrave 10/4/6 → 10/5/4, Anchor Wastes 14/6/4 → 12/8/7, the Still 14/20/15 → 11/18/17, Halcyon 8/19/20 → 13/18/20. The insertion also moves every later stage's seeds and rotating parties, so about ±3 of 24 is noise. Two light trims where the shift pushed a stage below where it was: Shardfall III wave 5 lost a soldier (11 → 14/24) and Arkgrave II wave 4 lost its toad (1 → 5/24). Already low before this change and left to a balance pass: Arkgrave II–III and Anchor Wastes II–III (casual 4–8/24) and Tithe Moors I (6/24, smart 22/24). - Old saves: save v6 moves any save already past the Tithe Moors up by three (
SaveMigrations.LanternRoadInsertedAt3,LanternRoadStageCount3), after v5's Still shift: the same furthest clear, the Lantern Road open behind it. - Armor sets: every set from level 4 up moves three levels (§24.2.3); the top set, Dreadwyrm, tracks the 31-stage campaign.
- (Tests:
LanternRoadTests;StoryArcTestsandRuleBreakTestslist seven finales;BackgroundsTestsexpects the four-imagelanternroadset;StillTestsfollows the Still's new levels and index.)
22.3.3 The Choir's Cathedral (added 2026-11-07, owner direction, GG-T350)
Four owner landscapes (a cathedral nave at night: an organ of mana pipes glowing cyan, rose windows, pews by the hundred, a moon in the vault) became The Choir's Cathedral (cathedral), the main campaign's eighth theme and new finale: the cathedral at the top of Halcyon's spire. The organ is the Hierarch's reservoir; the Choir sings the tithe up into it (STORY.md §5, a structural entry only).
- Campaign:
campaign.jsonorder is now Tithe Moors, The Lantern Road, Shardfall, Arkgrave, Anchor Wastes, The Still, Halcyon, The Choir's Cathedral, then the five postgame themes (main campaign 24 stages, 34 in all). Milestone rewardtome_counter_attack. Backgrounds:Backgrounds/cathedral_01..04.jpgat their native 768×1536, JPEG q95, fresh-GUID metas ("Backgrounds": "cathedral"; mean luminance 0.29). Board tileTiles/cathedral.png(GridGame.Studio/tools/make_tiles.py cathedral: one dark marble slab, pale veining, a pool of cyan organ light); the pews stand on the board as blocks. Three stages, five waves each, the Choir and the Concord only (two foes a wave, a Chromed Hollow as the lighter half): I (cathedral-01: a Cantor and a Chromed Hollow; a Kiln Guard and a Chromed Hollow; a Red Seal templar and a Chromed Hollow; a Bulwark Rifleman and a Chromed Hollow; the Siege Gunner and a Psalmist), II (cathedral-02: a Psalmist and a Chromed Hollow; a Siphoner and a Chromed Hollow; a Kiln Guard and a Cantor; a templar and a Chromed Hollow; a Shieldbearer and a Confessor), III (cathedral-03: a Cantor and a Chromed Hollow; a Kiln Guard and a Chromed Hollow; the Siege Gunner and a Confessor; a templar and a Chromed Hollow; then the Hierarch with Undying beside a Cantor and a Confessor, §14.9). (Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.) - The Hierarch is its own enemy class,
hierarch(STORY.md §3.1), so the playablevampirehero is no longer fielded as the boss. Kit, all existing systems: charge Tithe Draught (charge_tithe_draught, 2.5 s, rests a turn: 5 Dark to every hero, and it heals for each hero it touches — a drain through the organ; interrupt it), boss phase at half HP Open the Reservoir (hierarch_open_reservoir, free and enemy-only, inAbilities.EnemyOnly: heals 25, Empowered, a 0.35 haste on its own icon; it prefers its charge from then on), Vampire's Kiss lifesteal on every landed blow, and the Undying rule-break (it rises once at half HP while its Choir still stands — silencing the Choir is how the party breaks the reservoir). Mesmerize support (Slowed, reach 2 like every boss). Drop tablevampire; the Hierarch bounty (bounty_vampire_lord) now targetshierarch. - No portrait yet (owner 2026-11-07, GG-T351: missing art uses the mannequin). The class has no
Portraits/hierarch.png; it declares"Portrait": "mannequin"and carries the mannequin's ownThumbnailandFigurevalues, so validation (every class needs both, GG-T352) passes and every view frames the fallback texture exactly as the mannequin's own class does (Art.FigureRectreads the box of the class the texture belongs to).CatalogTestsaccepts a class that declares the mannequin placeholder in place of its own portrait file, checks it copies the mannequin's framing, and fails once real art lands so the placeholder is dropped. Dialogue speakers name it with"Class": "hierarch", "Portrait": "mannequin". - Halcyon III keeps its waves; its finale now ends on a Kiln Guard captain (
ceramicknight06, AxisWard) beside a Hollow, holding the spire stair (the Reaper that stood beside the Hierarch came off for balance).boss_intro_cityruinsis his (placeholder draft); the Hierarch's own lines moved verbatim toboss_intro_cathedral. TheEnding("Still Here") followscathedral-03and uses the cathedral backdrop. - Levels: the Cathedral runs at 22–24 (the Hierarch fights at 24); nothing before it moves. Postgame stages keep their
LevelOverride. - Story text is placeholder draft (story is authored in Prose, GG-T355): the crawl,
cathedral_party_talk(ThemeStart, the Enchantress on the organ), the Kiln Guard's intro and a side quest, Quiet the Organ (q_organ_quiet, the Enchantress: defeat three Choir Confessors). - Balance (24 seeds, campaign parties, difficulty 10,
AbilityUsageSoakwithCONVERGENCE_ABILITY_STAGE, measured on top of the Herald, Manasmith and Tactician heroes, GG-T333/336/337): the Cathedral casual 17/24, 19/24, 16/24, smart 24/24 on all three. The first cut (three-foe Concord waves, Kiln Guard pairs) measured casual 4, 0 and 3/24 (smart 24/24/23); every wave went to two foes with a Chromed Hollow as the lighter half, and Cathedral I's templar lost its Confessor. Halcyon re-measured, casual before → after: 9/17/15 → 9/17/16, smart 24/24 throughout. Halcyon I and II are unchanged content on unchanged seeds; III with the Kiln Guard captain beside the Reaper first measured 12/24 (losses at that wave), so the Reaper came off it. Halcyon I at 9/24 casual was low before this change (the new heroes moved the soak's party rotation) and is left to a balance pass. (Historical, superseded by GG-T577 and GG-T675: no Concord, the Somnolith is now the Manalith, aether is mana.) (Amended 2026-11-29, owner, GG-T2194: reverted - the Manalith is the Somnolith again.) - Old saves: save v7 moves any save already into the postgame up by three (
SaveMigrations.CathedralInsertedAt21,CathedralStageCount3); a save whose furthest clear is Halcyon III finds the Cathedral next. Thestory:endingflag is left alone, so a save that already saw the ending at Halcyon does not see it again at the Cathedral (New Game+ replays it as before). - Armor sets: the campaign grows to 34 stages; Wispweave stays at 22 and the top four spread over the new range (Templar's 24 → 25, Reaper's 26 → 28, Sanguine 28 → 31, Dreadwyrm 31 → 34) so no stretch goes more than five levels without a set (§24.2.3).
- Tools: the harness's finale run (
tools/harness.py) launchescathedral-03and checksboss_intro_cathedral. - (Tests:
CathedralTests;StoryArcTestsandRuleBreakTestslist eight finales and the ending follows the Hierarch's stage;BackgroundsTestsexpects the four-imagecathedralset;CatalogTestsaccepts the mannequin placeholder;QuestTestsallows the eighth main-theme quest.)
22.3.4 The postgame regions (added 2026-11-07, owner direction, GG-T346)
The owner's postgame landscapes give the postgame chapters regions of their own (STORY.md §5, structural entries only; story text is placeholder draft until Prose, GG-T355). Rules shared by every region:
- A re-skinned postgame theme names its set (
"Backgrounds": "<region>", native 768×1536, JPEG q95, fresh-GUID metas) and its stages carry the postgame theme id as theirTheme(greenvalley2, notgreenvalley), becauseBattleScreenand the results screens read the backdrop from the stage's theme. The board tile falls back to the base theme's (Art.BoardTile:Tiles/<theme>, thenTiles/<BaseTheme>, then the plain tile), sogreenvalley2keeps the moors' tile. The endless encounter scheduler (EncounterSchedule, GG-T60) counts the re-skinned stages as a biome of their own. - Postgame stages keep
LevelOverride(they are what marks the postgame for the soaks, the quest rule andQuestTests) and carry no rule-breaker (§14.9). - Balance is unmeasured: waves are built by analogy with existing stages at similar levels, pending the owner's
/test. - Order and levels (GG-T357, see The postgame curve below): the Bloom, the Free Holds, the Underspire, the Drowned Arks, Deep Shardfall, Under the Anchors, Morrow's Shadow, one level a stage from 25 to 40, continuing the main campaign's
i + 1curve. Level numbers in the region entries below are as they were added.
The Free Holds (GG-T346): seven owner landscapes of walled hill-forts over gold moorland under a pale moon (freeholds_01..07, mean luminance 0.39) became the backgrounds of The Moors Beyond the Stills (greenvalley2). Its two stages are re-skinned, not rebuilt, and renamed The Free Holds I–II: hold militia (soldier00–03) at the gates where slimes and goblin thugs stood, a Hollow hold (undead00–02) where the skelepedes stood, militia in place of a skelepede and a toad in II; Redline, the moor wolves and the Captain's finale wave stay. Same foe counts per wave; level 15 unchanged. The crawl gains one placeholder line about the holds' walls; greenvalley2_party_talk already fit and is unchanged.
- (Tests:
FreeHoldsTests;BackgroundsTestschecks postgame themes with their own region set.)
The Street markets (GG-T349): nine owner landscapes of the underspire's neon night markets (the white spire behind tangled cables, pink signs, market stalls in the rain; underspire_01..09, mean luminance 0.24, a hair under POL-H3's soft 0.25 floor, kept as made) became the backgrounds of The Underspire (cityruins2). Its two stages are renamed The Underspire I–II and re-cast as the Street's home turf, where everyone wants the spire after the Hierarch: Redline (ganger), the Murder (harpy01–03), the Herd (minotaur01–04), the Chromed Hollow (cyberzombie) and the Choir (cultist01–03) only. The undead, ghosts, Red Seal templars, bats, the mannequin, and the old finale's Vampire (a playable hero), Reaper and Demon Lord came out. I: three Redline; two Chromed Hollow (kept); two harpies and a Redline tout; two Herd; a Cantor with a Hollow and a ganger. II: three Chromed Hollow (kept); three Herd; two harpies and a ganger; a Psalmist, a Confessor and a Hollow; then the Herd Boss (minotaur01) beside a Choir Cantor and a Redline ganger, three claimants to the spire in one wave. Level 15 unchanged; crawl and cityruins2_party_talk already fit and are unchanged.
- (Tests:
UnderspireTests;BackgroundsTestsexpects the nine-imageunderspireset.)
The Bloom (GG-T347): eight owner landscapes of red blossom and moss over broken white pillars under a pale moon (bloom_01..08, mean luminance 0.42) became a new postgame chapter, The Bloom (bloom), placed right after the ending as the first postgame chapter: where the Hierarch's stolen mana came down, Redline harvest the Bloom, the Hierarch's holdouts burn it and the moon-changed guard it.
- Campaign:
campaign.jsonorder is now the eight main themes, The Bloom, then the five older postgame themes (37 stages in all). Milestonechest_gildedlike every postgame chapter;"Backgrounds": "bloom"; board tileTiles/bloom.png(GridGame.Studio/tools/make_tiles.py bloom: white stone, moss in the cracks, fallen petals). A theme id with no trailing digit is its own base theme, so it counts with the main themes inBackgroundsTests, but itsLevelOverrides keep it out of the main campaign for the soaks and the quest rule. - Stages The Bloom I–III, five waves each, two foes a wave (the Cathedral's shape) with broken pillars as blocks: Redline pairs (
ganger), moss-golem pairs (treegolem), a Red Seal templar with a Bulwark trooper, and in II a werewolf with a wolf. The finale wave is the Red Seal's last warden (templar05: the sturdiest templar, Tough Hide, Vengeance, Smite charge) with a Bulwark Shieldbearer and Siphoner. No rule-breaker (postgame). Levels 25, 26, 27 (LevelOverride), past the Cathedral's 22–24; the older postgame chapters stay at 15. - Story text is placeholder draft (Prose, GG-T355): the crawl and
bloom_party_talk(ThemeStart, the Lantern Merchant). No quest (postgame chapters have none). - Old saves: save v8 moves any save already into the old postgame up by three (
SaveMigrations.BloomInsertedAt24,BloomStageCount3); a save whose furthest clear is the Cathedral III finds the Bloom next. - Armor sets: the campaign grows to 37 stages; Templar's stays at 25, Reaper's 28 → 29, Sanguine 31 → 33, Dreadwyrm 34 → 37 (a set at least every five levels, the top set at the campaign's length; §24.2.3).
- Balance is unmeasured (no soak): built by analogy with the Cathedral's two-foe waves at 22–24, pending the owner's
/test. - (Tests:
BloomTests;CathedralTests(the postgame now starts with the Bloom);BackgroundsTestsexpects the eight-imagebloomset.)
Morrow's Shadow (GG-T348): ten owner landscapes of a colossal moon over cracked plains with floating rocks (morrowsshadow_01..10, mean luminance 0.47) became the final postgame chapter, Morrow's Shadow (morrowsshadow): where Morrow hangs lowest and its pull lifts stone, the Nearing made visible.
- Campaign: appended after
cityruins2, the last theme (40 stages in all), so no save index moves and no migration is needed. Milestonechest_gilded;"Backgrounds": "morrowsshadow"; board tileTiles/morrowsshadow.png(GridGame.Studio/tools/make_tiles.py morrowsshadow: cracked pale earth under a cold moonlit cast). - Stages Morrow's Shadow I–III, five waves each, two foes a wave, fallen moon-rock as blocks: Hellspawn pairs, Infernalist pairs, a Void Sentinel with a beast, and moon-changed Wild (wolves, a werewolf, a yeti, a vulture, a flying monkey). The finale wave is the Demon Lord (
demonlord: lifesteal, Infernal Hide, Fireball charge) with a Void Sentinel and an Infernalist Bloodbinder, the Ember's master under the moon it wants home; a stand-in until the owner makes a unique boss. No rule-breaker. Levels 28, 29, 30 (LevelOverride). - Story text is placeholder draft (Prose, GG-T355): the crawl and
morrowsshadow_party_talk(ThemeStart, the Enchantress). No quest. - Armor sets: the campaign grows to 40 stages; Templar's stays 25, Reaper's 29 → 30, Sanguine 33 → 35, Dreadwyrm 37 → 40 (gaps of 3, 5, 5, 5 above Wispweave's 22; §24.2.3).
- Balance is unmeasured (no soak), pending the owner's
/test. - (Tests:
MorrowsShadowTests;BackgroundsTestsexpects the ten-imagemorrowsshadowset.)
The postgame curve (GG-T357): the five older postgame chapters still sat at level 15, below the Cathedral's 22–24, and in the order the main campaign visits their base themes rather than a story order. Now:
| # | Chapter | Theme | Stages | Levels |
|---|---|---|---|---|
| 1 | The Bloom | bloom
|
bloom-01..03
|
25–27 |
| 2 | The Free Holds | greenvalley2
|
greenvalley-04/05
|
28–29 |
| 3 | The Underspire | cityruins2
|
cityruins-04/05
|
30–31 |
| 4 | The Drowned Arks | swamp2
|
swamp-04/05
|
32–33 |
| 5 | Deep Shardfall | desert2
|
desert-04/05
|
34–35 |
| 6 | Under the Anchors | cave2
|
cave-04/05
|
36–37 |
| 7 | Morrow's Shadow | morrowsshadow
|
morrowsshadow-01..03
|
38–40 |
- Story order: Redline's Bloom trade leads out to the holds that sell it; back to Halcyon, where the spire's fate is being bargained; then the wider questions about Morrow: leave on the Arks, stand against the Ember's march on the Anchors, go under the Anchors to what they push against, and finally Morrow's Shadow, where the Ember goes to welcome the moon home.
- Levels: one a stage (
LevelOverride= campaign index + 1), so the postgame continues the main campaign'sRecommendedLevel(i) = i + 1with no gap or dip, and Morrow's Shadow III fights at 40. - Waves re-levelled by analogy: enemies spawn at the stage's level (a spawn's own
Levelis a floor, 1 throughout), so theLevelOverrideis the re-level. The five chapters' three- and four-foe waves were built for 15; at 22–24 three-foe waves measured casual 4, 0 and 3/24 in the Cathedral's first cut against 17–19/24 for two-foe waves (§22.3.3), so at 28–37 they would be brutal. Every one of those ten stages now has the endgame shape of the Cathedral, the Bloom and Morrow's Shadow: two foes a wave, three in a stage's last wave where it had a boss or a big finale (the Captain, the Herd Boss, the Swamp Mistress, the Captain with a sandmaw, the yeti). Each wave keeps two of its old foes; catalog groups of three or four became the two-foe explicit waves of the same family, and the three two-foe groups (lurker-diagonal-2,treegolem-pair-2,ceramicknight-column-2) stay. Every wave is still unique across the campaign (checked statically against the wave-signature rule); five picks were shifted by one id to keep it so (Free Holds I's wolves and Hollow, Drowned Arks IV's last wave and V's golems, Deep Shardfall V's scorpion wave, Under the Anchors V's oni wave, which took the goblin thug Under the Anchors IV gave up). - Old saves: save v9 (
SaveMigrations.PostgameReorderedFrom27,PostgameReorderMap): six of the ten stages moved, none were added.HighestClearedStagebecomes the furthest new index among every stage the save had cleared (ReorderedPostgameFrontier), so its furthest clear stays cleared, nothing it cleared locks again, and a chapter that moved behind the frontier opens there (e.g. a save that had cleared through Deep Shardfall V now has the Underspire and the Drowned Arks open behind it and Under the Anchors next). Saves before the Free Holds or in Morrow's Shadow do not move. - Armor sets: no change needed. The campaign is still 40 stages and its last level is now 40 too, so Templar's 25, Reaper's 30, Sanguine 35 and Dreadwyrm 40 already give a set at least every five levels with the top set at the last level (§24.2.3).
- Balance is unmeasured (no soak), pending the owner's
/test. - (Tests:
PostgameCurveTests(order, the curve, the wave shape, v9);FreeHoldsTests,UnderspireTestsandMorrowsShadowTestsfollow the new levels and order;ArmorSetTestschecks the top set against the last level.)
22.4 Bounty board
Hidden at release (GG-T392): Features.Bounties; see §8.1.
Amended 2026-11-19 (GG-T431, owner): "bounty board is definetly something you want from the hub so you can hunt down especially dangerous monsters, it will have clues like 'Seen wandering the Ashlands II' and it needs some sort of bounty indicator (a skull?) so that you know its a tougher variant and that you can collect rewards at the bounty board after you kill it." The kill-N contracts are retired (they duplicated the side quests' Defeat objectives); the board now posts marked targets.
- A bounty (
bounties.json,BountyDef) is a titled, tougher variant of an existing enemy class ("Grimjaw the Mauler", awolf02) that roams one campaign stage, in one wave, optionally with an extra trait: a rule-breaking boss's rule (§14.9). No new art. Validation: the target is a non-snake enemy class, the stage a real campaign stage, the wave one of its waves. - The poster (Camp → Bounties,
BountyScreen): the target's portrait under the bounty skull, its title, "class · tougher variant", the clue "Seen wandering stage" (the stage's display name,Bounties.Clue), and the reward. Take starts the hunt; a hunted poster reads Hunting (tap to stop; it may post again). - The board (
Bounties.Board) holds 3 bounties (Bounties.BoardSize): slain ones waiting to be collected first, then hunted ones, then fresh offers. Offers are unclaimed bounties on stages already unlocked, in an order seeded by the save and a turnover counter that ticks every 3 stage battles (Bounties.RefreshBattles). Claimed bounties never post again. - The hunt.
BattleFactory.Buildgives a stage battle oneBountyMarkper hunted bounty roaming it. The target joins its wave (the next wave with room if the board is full) at the stage's level +2 (BattleConfig.BountyLevelBonus), with ×2.5 HP (BountyHpScale) and ×1.3 every stat but Speed (BountyStatScale; Speed is left alone so the timeline reads the same), and its trait. It wears a pulsing skull roundel (☠,BountySkull) on its unit frame; its name is its title; the inspect card says "Bounty target · tougher than its kind … collect at the bounty board". Arrival plays a banner "☠ Bounty: title", the war cry and a "BOUNTY" float; its fall (after any Undying rise) plays the pickup cue, a banner and a "BOUNTY SLAIN" float (BountyTargetEvent). - The kill counts however the battle ends (victory, defeat, escape or retreat):
Bounties.RecordBattle(inBattleFactory.Commit) moves it from hunted to slain and the results screen shows "title slain! Collect at the board". The Crucible never carries a mark. - The reward is collected at the board on the next visit: Claim pays 150 G + 50 G × the stage's campaign index (
Bounties.RewardGoldBase,RewardGoldPerStage), the bounty's item, and any skill points to every party hero (RewardSkillPoints, GG-T134), with the purchase cue and the pickup cue. A Tome reward offers its Teach row (§25.6.4). The Camp row's value reads "☠ N to collect" or "Hunting N"; the Adventure screen lists each hunt's clue above the regions and marks a region and stage a target roams with ☠. - Bots skip it.
CampRoutinenever takes, hunts or claims a bounty. - Old saves. A save holding a pre-GG-T431 active contract (
BountySave.ActiveId/Progress) has it dropped on load and the board stays open for it (BountySave.Used). No save-version bump. (Tests:BountyHuntTests;MetaLoopTests,ParityTests.Abandoned_bounties_can_be_retaken_and_claimed_ones_never_repostupdated.)
| Bounty | Target | Stage (wave) | Trait | Item |
|---|---|---|---|---|
| Grimjaw the Mauler | wolf02 | The Tithe Moors II (5) | Tome of Berserk | |
| Mother Gloam | slime02 | The Tithe Moors III (2) | Healing Potion | |
| Kurogane the Lantern-Breaker | oni00 | The Lantern Road I (3) | ||
| Ashpelt the Moonless | werewolf00 | The Lantern Road II (4) | TwinTurn | |
| Thirstmouth | sandmaw | The Shardfall II (2) | ||
| Rotbark the Unfelled | treegolem02 | The Arkgrave II (3) | ||
| Hollowe the Vat-Giant | cyclops00 | The Anchor Wastes I (2) | Tome of Tough Hide + 1 SP each | |
| Saint Shroud, the Unburied | undead01 | The Still I (3) | Undying | Holy Water |
| The Pale Bellringer | ghost | Halcyon II (2) | ||
| Brother Vesper, Last of the Choir | templar01 | The Choir's Cathedral II (4) | AxisWard | Revival Charm + 2 SP each |
| Sergeant Iron Tithe | heavytrooper03 | The Bloom II (3) | ||
| The Lamp-Eater | duskstalker | Morrow's Shadow I (3) |
Amended 2026-10-09: a Camp screen ( (Retired by GG-T431; the five kill contracts Slime Culling, Wolf Pack, Shrouds on the Road, Vat-Giants and The Hierarch are gone, their items moved to the hunts above.)
BountyScreen, "Bounties"), not a StageSelect strip. Posted = every bounties.json contract not yet claimed (claimed ones never repost). One active slot; kills of the target class count on victory only (in the Crucible, on any ending), capped at the goal; Claim pays gold + item, plus an optional skill-point payout; Abandon resets. The camp routine prefers a skill-point contract when two finish equally soon.
22.11 Side quests (added 2026-11-05, owner direction, GG-T237)
Owner: "optional quests and bounty board … make it a complete experience." Optional story errands, separate from the bounty board: any number may run at once, none ever gates the campaign, and they live in Camp's Quests journal (QuestScreen, start id quests).
- Content:
quests.json(QuestDef:Id,Name,Giver,Theme,Unlockstage,Summary,TurnInline,Objective, rewardsRewardGold/RewardItem×RewardItemCount/RewardSkillPoints(each active-party hero) /RewardFlag/RewardHero(GG-T434: a hero who joins on turn-in, like a dialogueRecruitHero; nothing if owned), andRequires). Objectives reuse what the save already tracks: ClearStage (optionallyMaxHeroes— at most N of your own heroes in the fight — andNoneFallen), Defeat N of an enemy class (counted after accepting), Bring N of an item (read from the bag, handed over on turn-in: the fetch quests), Flag (a save flag), and since GG-T434 DefeatFamily N of any class of an enemy family (the drop table its classes share, the familyEncounterCatalog.Familyreads:slime,harpy,bulwark,soldier…), Recruit a named hero (owned, not domesticated), ReachLevelCount(any hero, or the one named inHero) and LearnSkill an ability id (any hero, orHero).ContentLoader.Validate(QuestCatalog.Validate) checks every reference (stages, themes, items, enemy classes and families, hero classes, abilities, levels 2–99,Heroonly on ReachLevel/LearnSkill), thatRequiresnames a real quest and never loops, and that some dialogue offers each quest (aStartQuesteffect). - Quest chains (GG-T434): owner, 2026-11-19: "make more side quests, and quest chains about fetching materials or killing monsters or recruiting certain people or reaching a certain level or unlocking a specific skill". A quest's
Requiresnames the quest that must be done first; until then it isLocked, so its offer (QuestAvailable) doesn't come up.QuestCatalog.Chainwalks back to the first step and forward through the quests that require each one; the journal card shows the chain under the giver line (Quests.ChainLine: "Part 2 of 3: Iron for the Forge (done) › Plate from the Wrecks › ?", a step not offered yet shown as "?"). - Given in conversation: each quest has a Camp Talk dialogue (
quest_offer_<id>, with an NPC or"party") gated onQuestAvailable— itsUnlockstage is cleared and it is neither under way nor done — whose accept choice carriesStartQuest. "Not now" loses nothing: once the offer has been heard the journal lists it under Heard of with an Accept button. Quests not heard yet are listed under Ask around with who to talk to. ARewardFlagopens a follow-up Talk (quest_after_grown_not_forged, the Blacksmith on what the grown cogs mean). - Progress (
Meta/Quests.cs):Quests.RecordBattleruns inBattleFactory.Commitnext to the bounty, on stage victories only (like the bounty board; the Crucible doesn't count). The results screen shows a "Quest" row per quest it moved. Bring, Flag, Recruit, ReachLevel and LearnSkill objectives read the save live (a hero already recruited, levelled or taught counts as soon as the quest is taken). - Journal: sections Ready to hand in! (Hand in), Under way (Set aside — progress lost, can be taken up again), Heard of (Accept), Ask around, Done. The Camp row reads "! N to hand in" when something is ready, else "N under way"; it appears once any quest is unlocked. Accepting plays
quest_accept; handing in plays thequest_completefanfare and slides in a card with the giver's thanks and the reward (.quest-turnin, eased in, no single-frame swap). - Bots: Test Mode, the balance sim and
CampRoutinenever take quests (no Talk is played headlessly), so they never affect balance. - Save:
SaveData.Quests(QuestSave:Activeid → progress,Done); older saves migrate to an empty journal.
Amended 2026-11-27 (owner, GG-T1656): new objective kinds, proposed (§28.11). Hero side stories add PayGold (hand over gold), Defend (hold a settlement node's battle), SlayBoss (a Wild boss), Treasure (dig at a map node) and Escort (travel to a node with the hero as a guest) beside the objectives above. Proposed until the epic's tasks build it (epic GG-T1652): the text below is the live behaviour until then.
| Quest | Giver | Biome · offered after | Objective | Reward |
|---|---|---|---|---|
| Wolves at the Wells | Innkeeper | Tithe Moors · stage 1 | Defeat 5 Wolf | 250 G + Hi-Potion |
| What the Frogs Know | Merchant | Tithe Moors · stage 1 | Bring 3 Frog Gland | 300 G + 2 Mana Potion |
| Travel Light | Party | Tithe Moors · stage 2 | Clear Tithe Moors III with ≤ 3 heroes | 200 G + Tome of Steadfast + 1 SP each |
| Grown, Not Forged | Blacksmith | Shardfall · stage 1 | Bring 4 Gremlin Cog | 350 G + Tome of Mana Siphon + follow-up talk |
| Antivenom | Alchemist | Shardfall · stage 2 | Defeat 4 Scorpion | 300 G + 2 Hi-Potion |
| The Hag's Hand | Alchemist (after Antivenom) | Arkgrave · stage 1 | Bring 3 Hag Claw | 400 G + Revival Charm |
| Every Voice | Enchantress | Arkgrave · stage 2 | Clear Arkgrave III, nobody falls | Hi-Ether + 1 SP each |
| Furs for the Long Cold | Innkeeper | Anchor Wastes · stage 1 | Bring 3 Yeti Fur | 500 G + 2 Tent |
| Cold Iron | Blacksmith | Anchor Wastes · stage 2 | Defeat 3 Ice Mauler | 600 G + Tome of Counter Attack + 1 SP each |
| The Ones Who Paid | Party | Halcyon · stage 1 | Defeat 5 Ghost | 700 G + 3 Holy Water + 1 SP each |
More quests and chains (GG-T434, 2026-11-19). Twenty more, 33 in all, unlocking steadily from the first stage to the postgame, rewards scaled to measured stage pay (about 210–270 G a stage early, 400–600 G late). The names and objectives are deliberately descriptive: the journal and offer text is lorem ipsum (GG-T387 pattern, GridGame.Studio/tools/prose_lorem.py; drafted to Prose as batch quests-434), and the story writer reads the story off the shape. Five chains: Beasts of the Moors (3), The Masterless Blade (3), The Smith's Forge (3), The Alchemist's Cures (Antivenom › The Hag's Hand › 2 new, 4), Echoes of Halcyon (4).
| Quest | Giver | Biome · offered after | Objective | Reward |
|---|---|---|---|---|
| Slime in the Cellar | Innkeeper | Tithe Moors · stage 1 | Defeat 6 of the slime family | 220 G + 3 Healing Potion |
| Harpies over the Wells | Innkeeper (after Slime) | Tithe Moors · stage 2 | Defeat 4 of the harpy family | 260 G + 2 Antidote |
| The Beast of the Moors | Innkeeper (after Harpies) | Tithe Moors · stage 2 | Defeat 1 Werewolf | 320 G + 1 SP each |
| A Blade Without a Lord | Party | Tithe Moors · stage 2 | Recruit the Ronin | 250 G + Hi-Potion |
| The Ronin's Measure | Party (after Blade) | Lantern Road · stage 1 | The Ronin reaches Lv 6 | 300 G + 2 Hi-Potion |
| The Guard Stance | Party (after Measure) | Lantern Road · stage 2 | The Ronin learns Guard Stance | 350 G + 1 SP each |
| Seasoned | Party | Lantern Road · stage 3 | Any hero reaches Lv 10 | 400 G + 1 SP each |
| Iron for the Forge | Blacksmith | Shardfall · stage 1 | Bring 6 Iron Ore | 380 G |
| Plate from the Wrecks | Blacksmith (after Iron) | Shardfall · stage 2 | Bring 3 Mecha Plating | 420 G + 2 Greater Healing Potion |
| Quenched in Frost | Blacksmith (after Plate) | Anchor Wastes · stage 1 | Bring 2 Frost Core | 650 G + Tome of Regenerate + the Lancer joins |
| A Contract Worth Signing | Merchant | Shardfall · stage 2 | Recruit the Sellsword | 400 G + 2 Storm Flask |
| Ichor of the Lurkers | Alchemist (after The Hag's Hand) | Arkgrave · stage 2 | Bring 4 Swamp Ichor | 500 G + Revival Charm |
| A Star to Call Down | Enchantress | Arkgrave · stage 3 | Any hero learns Meteor | 550 G + Hi-Ether |
| Holy Essence for the Still | Alchemist (after Ichor) | The Still · stage 1 | Bring 3 Holy Essence | 700 G + 2 X-Potion + 1 SP each |
| The Bulwark Breaks | Party | Halcyon · stage 1 | Defeat 6 of the Bulwark family | 750 G |
| The Reaper's Shroud | Party (after Bulwark) | Halcyon · stage 2 | Bring 2 Reaper Shroud | 800 G + 2 Hi-Ether |
| Strong Enough for the Choir | Party (after Shroud) | Cathedral · stage 1 | Any hero reaches Lv 24 | 850 G + Tome of Lifesteal + 1 SP each |
| The Last Rite | Party (after Choir) | Cathedral · stage 2 | Any hero learns Mass Heal | 900 G + 2 X-Potion + 1 SP each |
| Heartwood of the Bloom | Innkeeper | The Bloom · stage 1 | Bring 3 Heartwood | 900 G + 2 Tent + 1 SP each |
| Holds Without Masters | Party | The Free Holds · stage 4 | Defeat 10 of the soldier family | 1000 G + Tome of Berserk |
(Tests: QuestTests — content valid and spread over the five biomes, an orphan quest rejected, offer gated on the unlock stage and started by the conversation, "Not now" kept in the journal, Defeat counts victories only and pays once, ClearStage's party-size and nobody-falls terms, Bring takes only the asked count and a reward flag opens the follow-up, old saves migrate; GG-T434: every new objective kind and three chains of three or more in content, bad family/hero/level/skill/reward-hero references and a looping or dangling Requires rejected, a chain step locked until the step before is done and the chain line in the journal, family kills summed across the family, Recruit/ReachLevel/LearnSkill read live (a named hero's level only), a recruit reward joins once. Written, not run.)
22.6 Battle records (added 2026-10-11, owner: "record everything so you can learn how to balance and synergize, keep the records of all moves as JSON so that we can build ML around it in the future")
BattleRecorder (Core) writes one JSON document per battle, schema v3 (v2 added per-turn skill level / perfect command; v3, GG-T98, added formation-time footprints on PincerFormed and SpawnedAt on wave/reinforcement events): source (player / bot:greedy / bot:casual / bot:autoplay / player+autoplay), stage, seed, waves, the party (class, role, level, stats, gear, bar), the opening state and events, then every turn — the full state before (units with position, HP, buffs, cooldowns, bar, brain, timeline position, casts; pickups, traps, blocks, amplifier, bank, mana charge), the command, whether it was accepted, every event it produced (type + fields), and a summary after — and finally the outcome (phase, wave reached, actions, coins, XP, kills, items used, heroes standing).
- The game saves every battle (victory, defeat, retreat) to
persistentDataPath/battle-records/(or<artifacts>/recordsunder the harness, or-records <dir>). RecordTests.Record_soak_of_the_first_battlewithCONVERGENCE_RECORDS=<dir>writes bot-played battles;tools/records.pyprints per-wave tables (turns, damage taken, deaths, potions, pincers, chains, mana, pickups, taunts), each role's damage/healing, damage taken by enemy brain, and the most-used abilities. The original 20-wave first battle (since compressed to 5, §22.7) and several rules (skirmisher dart, last stand, taunt valuation, hard-won experience) were tuned from these tables.- Per-ability usefulness (GG-T246):
python tools/records.py --abilities <dir>credits each hero ability with what its resolutions did. Effects are attributed from anAbilityResolved(or theItemUsedbefore it) up to the next action, turn, pincer, attack or wave, so a cast-time spell is credited when it lands. It reports uses, damage, healing, kills, status and tempo/movement effects and an impact score per use, the abilities that sat on a bar but never fired, the weak ones, and the mana flow (orbs banked, overflowed and spent).AbilityUsageSoak(envCONVERGENCE_ABILITY_RECORDS=<dir>,CONVERGENCE_ABILITY_ROUNDS) feeds it every hero class in rotating parties of five across the first 15 campaign stages at their recommended levels. Findings:docs/research/AbilityUsage.md.
22.7 The first battle (amended 2026-10-12, owner: superseding "make the first battle 20 rounds" — every stage, including this one, normalized to 5 waves)
Tithe Moors I is 5 waves, levels 1 → 5, each wave outweighing the one before it (test The_first_battle_has_five_waves_of_rising_difficulty): an ooze opener (slimes), a beast wave (wolves, bat), a frog/toad wave, a goblin-and-bandit skirmish that a captain's soldier squad reinforces mid-fight — the flagship example of the delayed-spawn/surprise mechanic (§14.8) — and a captain's-squad finale.
Amended 2026-10-19 (GG-T118, rebalanced for the three-hero start): the reinforcement is one soldier, not two (wave 4 is five foes, still heavier than the frog wave), and the finale's captain and two soldiers are level 4, not 5, so levels now run 1 → 4. Measured on Tithe Moors I alone, 24 seeds, single attempt: the casual bot (randomness 0.5) won 41% with 22% HP left with the old five-hero start; the trio on the old waves won 16% / 11%; probes of the trio with a Lv 4 finale gave 45% / 31%, and with a four-foe wave 4 as well 54% / 37%; this cut sits between them, back at the old five-hero difficulty or a little kinder. The greedy bot wins 100% either way. In BalanceReport (up to 4 attempts) the casual bot now clears it 80% of attempts with 61% HP left (five-hero start before: 66% / 48%; trio on the old waves: 30% / 26%).
Amended 2026-11-05 (GG-T261/GG-T262): after the remains countdown (§14.5), EnemyHpScale 0.45 and strikes at 1.2 (§14.6), Tithe Moors I is unchanged in content and the casual bot (polish.py --balance, 8 rotating five-hero parties) clears it 75 % of the time with 59 % HP left, waves a median ~20 player actions (was 38).
22.5 Expeditions (added 2026-10-10, owner direction)
Amended 2026-11-27 (owner, GG-T1656): expeditions fold into travel (§28.13, §28.5). Wounds and orbs still carry between battles while the caravan travels, and camp rest heals; the Adventure expedition headers and the Inn rule go with the map. Built (GG-T1785, GG-T1790, GG-T1786): the text below is history. As built: TravelRules (Meta/TravelRules.cs) keeps the caravan on the road whenever WorldSave.Camped is false; any campaign battle launched from camp sets out (StageLauncher → TravelRules.SetOut), a win on the road carries the bank's orbs into the next battle (WorldSave.CarriedOrbs, BattleReport.CarriedOrbs) with wounds kept, and a defeat falls back to camp with no orbs. There is no fixed battle order, completion bonus, Abandon or "Retreat early": Adventure lists each region's stages under a plain region header (unlocked stages launch in any order, a cleared one as a hunt), the camp card reads "On the road · N orbs carried", the stage confirm shows a Travel field, and the results show On the road — N orbs carry over (plus the Medic Wagon's patch) with To Camp (makes camp, letting the orbs go) beside Next battle. SaveData.Expedition survives only for migration (save v27, §28.13); the Expeditions class is gone. The completion bonus and the Strongbox stay an owner TODO (GG-T1705, TravelRules). (Tests: MetaLoopTests.A_win_on_the_road_carries_its_orbs_and_wounds_into_the_next_battle_with_rest_closed, A_defeat_on_the_road_falls_back_to_camp_with_no_orbs, TravelRulesTests.)
Owner: "the game should be grouped in sets of battles, where a battle has X battles to fight and each battle has Y waves, so there is a survival element and a reason to hold onto consumables and use mana sparingly because the challenge is going to get bigger."
- Each campaign theme is an expedition: its stages are the battles (3 each), fought in order; each battle has its waves.
SaveData.Expedition(ExpeditionSave: theme, next battle, carried orbs, coins) tracks the one under way. - Starting: an expedition starts on its theme's first battle (
Expeditions.CanLaunch/Begin); only one at a time; battles 2+ open only as the next step. - Between battles: wounds carry (as always), leftover mana orbs carry into the next battle's bank (
BattleSetup.StartOrbs, minted as "carried"), consumables spent are gone. The caravan's merchant, blacksmith and alchemist stay open — that is why the shops are always there — butthe inn is closed on the road (no service opens while the caravan moves and camp rest replaces the Inn (§28.5; Tents still work).Inn.Restrefuses; Tents still work) - Finishing: the last battle won completes the expedition: +50% of its coins as a bonus, the caravan makes camp and the party rests (full HP), the next expedition unlocks.
- Failing: a defeat ends the expedition (the party falls back and recovers); it restarts from battle 1. Abandon (Adventure), a voluntary Retreat (in-fight, or the "Retreat early" button below) or escaping also ends it, wounds kept.
- Amended 2026-10-11 — bailing out early costs nothing already earned: every battle won in an expedition is paid out immediately by that battle's own
Commitcall —s.Expedition.Coins/CarriedOrbsare bookkeeping for the completion bonus only, not an escrow. So mid-expedition,PostBattleScreen's button row offers "Retreat early" next to Next battle › (shown whenever a next battle is pending): it's a plainExpeditions.Abandonwith no partial-loss math, forfeiting only the not-yet-earned completion bonus. An in-fight Retreat (pause menu) is different — it DOES apply the FFIV-style partial-loss formula (§22.2), but only to that one battle's own in-progressResults; gold from earlier battles in the same expedition is untouched either way. - UI: Adventure groups battles under "<Theme> Expedition" headers with status ("Battle 2/3 · 4 orbs carried", "★ Completed"); results show "Expedition: battle 1 of 3 won — 4 orbs carry over" and Next battle ›;
camp shows the expedition strip and "Inn — On the road". - (Tests:
An_expedition_runs_its_battles_in_order_carrying_mana_with_the_inn_closed,Finishing_an_expedition_pays_a_bonus_and_rests_the_party_while_defeat_restarts_it,Retreating_mid_expedition_ends_it_without_touching_already_banked_gold.)
22.8 Level-up fanfare (added 2026-10-11, owner: "pomp and circumstance... the same tempo and pause that makes video games enjoyable")
LevelUpScreen sits between BattleScreen and PostBattleScreen whenever BattleReport.LevelUps is non-empty (PostBattleScreen.RouteFrom decides; skipped entirely otherwise). One hero at a time:
- The portrait slams into place (
Art.Portrait, the same bombastic revealCharacterSelectScreenuses). - The XP bar ticks fully through every level crossed in this one battle (fill → "Lv N" pop → reset) before a true partial fill for the level actually landed on — a hero who jumped two levels visibly climbs through both, not one smooth lerp.
- Stat deltas (
Formulas.StatsAtLevelbefore vs. after) reveal one at a time, staggered. - Auto-advances after a hold, but a tap anywhere or "Skip ›" jumps straight ahead — the same dual-input idiom
StoryCrawlScreenalready uses, not a new one. - Next ability (GG-T1404, GG-T1556). Beneath the stat deltas, "Next ability: X, N SP" (
NextAbility.Line): the nearest ability node on the hero's skill hexagon whose ability it doesn't know, by fewest SP, then shortest route (NextAbility.For). Its Learn button leaves the fanfare for the results (ReplacewithPostBattleScreen) and pushesHeroScreen.Learn(heroId, pick), Heroes › Abilities › Board with that route preselected, so Back returns to the results. The results list the same line for every hero who leveled (victory, defeat and Crucible alike), each with its own Learn button pushing the Board on top of them. A hero with nothing left to reach (or a domesticated monster) shows no line. - New ability ready (GG-T1407). When a hero's banked SP covers the route to its next ability (
NextAbility.Affordable), the Heroes nav tab badges "!" (NavBadges), the Heroes hub tile reads "New ability ready" (party heroes only), and that hero's roster card on the Hero screen wears a New badge and the same caption. Opening the hero's Board marks that ability seen (HeroSave.AbilityReadySeen, saved), which clears the badge until a different ability becomes the affordable next one.
22.9 Difficulty settings (scaffolding, added 2026-10-11, owner direction)
Amended 2026-11-06 (owner, GG-T309): one dial, 1–10, starting at 10. Owner: "This is a difficulty question, and the higher the difficulty the greater the rewards. On a 1-10 scale you would start on 10 and let players adjust the game if they feel it is too easy or hard." The Easy/Normal/Hard/Custom preset and its six inert multipliers (below, superseded) are gone.
- Where it lives.
SettingsSave.Difficulty.Level(DifficultySettings), a profile setting in settings.json (game.difficulty = {"level": N}, §15.4), so every save slot of the profile plays it. New profiles start at 10. It applies from the next battle (BattleFactory.Build(…, difficulty)copies it intoBattleSetup.Difficulty→BattleState.Difficulty); a battle in progress keeps the level it began at. - One table.
Core/Battle/DifficultyTable.cs(DifficultyTable.Rows), validated byContentLoader.Validate(DifficultyTable.Problems): ten rows in order, positive multipliers, every enemy column non-decreasing, every reward column strictly rising, and level 10's enemy side exactly 1.0 / offset 0. Level 10 is the designed game: every balance number in this bible is tuned at 10, and lowering the dial only ever softens it.Level Name Enemy HP Enemy damage Enemy Lv Enemy speed (GG-T311) MinGap / MaxSpread (GG-T318) Rewards (gold, XP, drop chance) 1 Gentle ×0.55 ×0.60 −2 ×0.60 1.60 / 2.00 s ×0.6 2 Gentle ×0.60 ×0.65 −2 ×0.65 1.55 / 1.90 s ×0.7 3 Easy ×0.65 ×0.70 −1 ×0.70 1.50 / 1.80 s ×0.8 4 Easy ×0.70 ×0.75 −1 ×0.75 1.45 / 1.70 s ×0.9 5 Moderate ×0.75 ×0.80 −1 ×0.80 1.40 / 1.60 s ×1.0 6 Moderate ×0.80 ×0.85 0 ×0.85 1.30 / 1.45 s ×1.1 7 Hard ×0.85 ×0.90 0 ×0.90 1.25 / 1.35 s ×1.2 8 Hard ×0.90 ×0.93 0 ×0.93 1.15 / 1.20 s ×1.3 9 Very hard ×0.95 ×0.97 0 ×0.97 1.10 / 1.10 s ×1.4 10 Intended ×1.00 ×1.00 0 ×1.00 1.00 / 1.00 s ×1.5
Amended 2026-11-06 (GG-T318): the spacing columns.MinGapSeconds/MaxSpreadSecondsdrive the timeline spacer (§2.12), and every row adds a ±0.25 sJitterSeconds. Less spacing is more pressure, so the validator lets these columns only fall as the level rises. The neutral row (level 0, rules tests) has no spacing and no jitter. - Party size (GG-T321): independent of the dial, enemy strike and MaxHP also grow ×(1 + 0.30 × heroes beyond the starting three), §2.12.
- What it scales. Enemy MaxHP and armor plates at spawn (on top of
BattleConfig.EnemyHpScale); the damage an enemy's blow deals a hero (after the hero's own reductions start, min 1); every enemy's turn-icon pace (EnemySpeed, GG-T311: slower foes leave wider gaps for the party, §2.0); how far apart foes are spaced on the timeline (MinGap/MaxSpread, GG-T318, §2.12); every non-test enemy spawn level (EnemyLevelOffset, never below 1, which also lowers that foe's stats and XP); and per kill the coins, the XP and every drop-table entry's chance (capped at 100%), after New Game+'s coin bonus. Test stages (StageDef.IsTest) keep the enemy side unscaled. Level 0 (DifficultyTable.Neutral) is the raw rules with no scaling at all — what a hand-builtBattleSetup(the rules tests) gets. - Shown to the player. Settings → Difficulty: − / the level / + (132-px targets) and one line underneath from
DifficultyTable.Describe, e.g. "Intended: the designed fight. Rewards ×1.5." or "Gentle: foes 55% HP, 60% damage, 60% speed, -2 Lv. Rewards ×0.6." The results screen names the dial under Experience ("Difficulty 10 — rewards ×1.5";BattleReport.Difficulty). - Migration. A settings.json from before the dial holds the old preset: Easy → 5; Custom with enemy HP and damage averaging below ×1 → the level whose enemy side is nearest that average; Normal, Hard, Custom at ×1 or more, and anything unknown → 10 (the old multipliers were inert, so those players were already fighting the designed game). It is rewritten as
{"level": N}on the next save and the scaffold's keys are dropped. A legacy save slot's Settings block migrates the same way. - Telemetry tags every battle with
difficultyand the multipliers it applied (diffEnemyHp,diffEnemyDamage,diffEnemyLevel,diffRewardGold,diffRewardXp,diffItemDropRate); battle records carrydifficulty. - Balance runs fight at a chosen level:
CONVERGENCE_DIFFICULTY=1..10(default 10) forAbilityUsageSoakandBalanceReport, andpython tools/polish.py --balance --difficulty N. - Soak variables are named
CONVERGENCE_*(GG-T2270); the oldGRIDGAME_*names are still read as a fallback. - (Tests:
DifficultyTests— table valid and monotonic, 10 = unscaled enemies, the reward curve and its label, new settings at 10, preset migration, enemy HP/levels rising with the dial on a real stage, kill rewards scaling.)
Superseded 2026-11-06 (GG-T309) — the original scaffold: Owner: a Difficulty selection with presets and a Custom mode "so when you read the telemetry you can ML it and learn what multipliers affect what; for right now just keep everything at 1.0." SettingsSave.Difficulty held a Preset (Easy/Normal/Hard/Custom, default Normal) and six multipliers (EnemyHp, EnemyDamage, EnemySpeed, RewardGold, RewardXp, ItemDropRate) pinned at 1.0 for every built-in preset, none of them consumed by the battle; telemetry was tagged with all of them. The stated future direction — higher difficulty, better rewards — is what the dial above delivers.
22.10 The Crucible (added 2026-10-19, owner direction, GG-T95)
Hidden at release (GG-T392): Features.Crucible; see §8.1.
Owner: "a way to gain xp and loot for the saved campaign … a waiting for the bus kind of mode." Owner, 2026-11-19 (GG-T430): "implement the Crucible for 'toilet play' its just a horde mode that can earn you money and goes on until you die; you choose one team and go as far as you can; it dynamically generates harder and harder waves."
A quick, endless survival battle fought from camp inside a normal saved campaign — a Camp menu row, not a separate game mode (Meta/Crucible.cs, CrucibleScreen, CrucibleLauncher).
- Entry. Camp → Crucible row (right under Adventure; its value reads "Endless waves" before the first run, then "Best: N waves") →
CrucibleScreen(what it is, first-wave level, the families you'll face, the record) → Enter the Crucible (crucible_entercue). Closed mid-expedition: the row is disabled and reads "Closed on an expedition" (Crucible.CanLaunch) — the run's full-HP reset would otherwise heal the party between an expedition's battles for free (§22.5). It also refuses with no party or no foes met. - Pick one team (added 2026-11-19, GG-T430). The Crucible screen shows Your team N/6 — the active party (portraits and levels, the party-size cap
Progression.MaxPartySize) — and a Change team button that opens the Party page and returns here. That team fights every wave; nobody swaps in mid-run. - One battle, many waves. A run is one generated
StageDef(crucible-<seed>, registered in the in-memoryContentDbonly, earlier runs' stages pruned) ofCrucible.MaxWaves(BattleConfig.CrucibleMaxWaves, 99; was 50 before GG-T430) waves, fought by the ordinaryBattleEnginewave loop — no new battle loop. Because it is one battle, wounds, mana and consumables carry wave to wave and there is no camp in between. Effectively endless: levels climb every wave, so the party falls (or leaves) long before wave 99; clearing all 99 would be a victory, committed the same way. - Escalation — the horde ramp (tunables moved to
BattleConfig.Crucible*and elites added 2026-11-19, GG-T430). Wave i (0-based) spawns atPartyLevel + i × CrucibleLevelStep(1;PartyLevel= the active party's rounded mean level), withCrucibleFirstWaveEnemies + i / CrucibleWavesPerExtraEnemyfoes (2 + i/3) capped atCrucibleMaxWaveEnemies(5). From waveCrucibleFirstEliteWave + 1(wave 5) the last foes of the wave are elites,CrucibleEliteLevelBonus(3) levels above it: one, then one more everyCrucibleWavesPerElite(5) waves, capped atCrucibleMaxElites(3) (Crucible.WaveElites). Level, count and elites only ever climb. The wave banner adds "· N elites". - Wave pay (added 2026-11-19, GG-T430). Clearing wave i banks
CrucibleWaveGoldBase + CrucibleWaveGoldPerWave × (i+1)gold (10 + 5n: 15 for wave 1, 60 for wave 10;Crucible.WaveGold), on top of the foes' drops. It rides on the generatedWaveDef.ClearCoins, which the engine adds toResults.Coinswhen the wave falls (WaveClearedEvent.Coins; 0 for every authored stage). The banner reads "Wave N cleared · +G G banked", the coins burst into the HUD gold counter with the coin chime. Banked means kept: a wipe keeps it like everything else. The levels are authored per spawn, soBattleFactory.Buildgives a Crucible stageRecommendedLevel1 and no New Game+ step — neither the campaign curve nor NG+ lifts them further. - Encounter groups (added 2026-10-22, GG-T184). Each wave is one of that family's authored groups from
encounters.json(its mix on its formation tiles), the largest that fits the wave's foe count; no group repeats in a run until every same-size group of its family has had its turn (EncounterCatalog.Pick). A family with no group that size tops up with random foes of the family. The endless generator (EncounterGenerator, GG-T55) builds its waves the same way. - Families. Each wave is one enemy family (
ClassDef.DropTable, house convention), never the same family twice in a row, cycling through a fresh shuffle of every family the save knows: enemies it has met (Bestiary seen or defeated; legacy scanned) or that fight in the campaign so far (cleared stages plus the next one). Bosses (BossPhases/Bosstag) and multi-tile foes stay in their own stages. So the drops are the mats this save is already crafting with. The arena (background, music, blocks) is one of the campaign-so-far stages. - Seeded and deterministic.
Crucible.SeedFor(save)mixes the save's creation time withCrucibleSave.Runs: the same save replays the same gauntlet (and the same battle RNG) until it fights it, and each run after is new.Crucible.Generate(content, save, seed)is pure. - Leaving. The pause menu's Retreat row becomes Leave the Crucible (keep all), confirmed with the wave count; a Smoke Bomb escape counts the same.
- Rewards — the exception to §22.2. Unlike any other non-victory end, a Crucible wipe or retreat keeps all the gold, drops and XP earned so far (that is the point of the mode), then restores the party to full HP like a defeat. Commit rules in §22.1; AMENDMENTS 2026-10-19.
- Record.
SaveData.Crucible(CrucibleSave:Best,Runs,TotalWaves, and since GG-T430BestGold, the richest run's haul, never lowered). Waves survived = waves fully cleared (the index of the wave the party fell or left on). The Camp row shows the best; a better run sets it, a worse one never lowers it. Per turn mode (added 2026-11-24, GG-T945, §2.13.1): a run plays the save's resolved mode and keeps its best waves and best haul under that mode (TurnRules.RecordMode), since wave counts from different modes aren't comparable. PartyWindow's staysBest/BestGold(older saves unchanged); other modes' go inByMode(null until used, keyed by mode name in the JSON;BestFor/BestGoldFor/Record).RunsandTotalWavesstay shared, andRunsstill seeds the next run whatever its mode. The Camp row, the Crucible screen's Record and the results' Best and Best haul read the mode the run plays. - Presentation. HUD reads "Crucible wave N" (no total); each wave's banner reads "Crucible wave N · Lv L" with a rising-pitch
crucible_wavesting. Results — the run summary: CRUCIBLE, "Survived N waves", "New best!" (with thecrucible_bestfanfare) or the standing best, then Gold banked, Best haul, and the rest of the haul (XP each, items, bounty); Continue → camp, Again › → the next run. Level-ups play first as after any battle. - No endless stalemates (added 2026-10-19, GG-T123). A run must always end by itself, for the bot and for a player alike. Two stalls were found by the bot soak and fixed in the rules (they apply to every battle, not only the Crucible):
- A lone hero is never fled. A pincer needs two heroes, so one hero left standing can hurt foes only with its bar. Against a lone hero (
EnemyPlanner.LoneHero) no foe makes a wounded retreat and every evasive brain (Commander, Trapper, Kiter, Medic) makes its last stand and an Ambusher stops lying in wait (§14.6) — they close in, so the hero either wins with spells, items and skills or falls. (Before: a wounded Flying Monkey kited the last hero round the board forever; a Scorpion ambusher waited forever for a lone hero that never came within 2 tiles.) - Howl only hurries a striker. A pure-haste support charge (Howl: no buff, no heal) is cast only when another ally in its square is already adjacent to a hero (or in a ranged foe's reach); otherwise the wolf moves. (Before: a scattered pack howled every turn, each howl hastening only the howler into its next howl, and never closed in.)
- The bot keeps a lone hero productive (
HeroBot): it spends mana and items on damage freely (cost penalty cut), closes in on the foes to bring its bar to bear, and guards (Shield) rather than wandering when nothing is worth doing. A player who would rather not finish a long fight still has Leave the Crucible (keep all). (Tests:Bot_soak_over_a_crucible_run— now deterministic, its save's creation time pinned sinceCrucible.SeedFormixes it in — andCrucible_bot_soak_never_stalls_across_many_saves, 48 gauntlets fought to a wipe under the action cap.)
- A lone hero is never fled. A pincer needs two heroes, so one hero left standing can hurt foes only with its bar. Against a lone hero (
Bounty kills count on any Crucible ending.The Crucible never carries a bounty target (GG-T431, §22.4).- The first-battle tutorial never runs in the Crucible.
- Cost and pace. Entering costs
RestedPool.LaunchCost(1) Rested like any launch; Camp → Crucible → Enter is two taps, and the pause menu's Leave ends it any time with everything kept — built for bus-stop sessions. - (Tests:
CrucibleTests—Crucible_waves_escalate_one_family_at_a_time_from_the_party_level(now also elites and wave pay),Crucible_horde_ramps_foes_elites_and_wave_pay_and_never_eases,The_best_haul_is_recorded_and_never_lowered,Crucible_draws_only_families_the_save_has_met_or_reached,Crucible_is_deterministic_per_seed_and_per_save,Crucible_spawns_at_the_authored_level_even_on_new_game_plus,Crucible_cannot_start_mid_expedition_and_says_why,A_crucible_wipe_or_retreat_keeps_every_reward_and_restores_the_party,A_worse_run_never_lowers_the_best_record,A_crucible_run_never_touches_campaign_progress_unlocks_or_the_expedition,A_crucible_wipe_keeps_the_gear_wear_it_caused,A_crucible_run_plays_the_resolved_turn_mode_on_the_same_seed,Crucible_records_are_kept_per_turn_mode,Crucible_per_mode_records_round_trip_the_save_json(GG-T945), bot soakBot_soak_over_a_crucible_run. Harness:python tools/harness.py crucible [WAVES [RUN]]— camp → Crucible → Enter → Auto → leave after WAVES (99 = fight to a wipe) → level-ups → results → camp, asserting the haul, XP, full HP, the record and the untouched campaign.)
23. Character Classes
All classes share classes.json; Team separates heroes (62) from enemies (110). Amended 2026-10-09: the spawn side decides the team — a hero class placed in a stage wave fights as an enemy (the Hierarch is the vampire class, which is also recruitable).
23.1 Class identity
Base stats, per-level growth, milestone bonuses, tags, resistances, learnable Abilities, DefaultLoadout, lore/card text, portrait crop. No dialogue.
23.2 Hero classes with seeded kits
| Class | Identity | Stat lean | Color | Kit |
|---|---|---|---|---|
| Cleric | white-magic healer | INT/WIS | W | Heal, Heal, Frost, Potion |
| Paladin | tank with heals | STR/VIT | W | Heal, Fireball, Potion |
| Barbarian | brute front line | even 12s | R | Fireball, Bolt, Potion |
| Alchemist | consumables + control | INT/WIS | G | Frost, Potion, Steal, Sleep Dart |
Assassin (id assassain)
|
flanker / rogue | AGI/SPD/LCK | B | Steal, Mug, Bolt, Potion |
| GreenNinja | mobility thief | AGI/SPD/LCK | G | Teleport, Steal, Fireball, Potion |
| RedNinja | mobility striker | AGI/SPD/LCK | R | Teleport, Mug, Bolt, Potion |
Every other hero class has color U (Blue, the default) and the default kit (Heal, Fireball, Frost, Bolt, Potion). A new save's roster is Paladin, Barbarian, Cleric (Progression.StartingRoster). (Amended 2026-11-21, GG-T533: Warden, Barbarian, Cleric; Warden is the fixed lead, §25.11.2.2.)
23.2.0 Signature moves + design rationale
| Class | Signature | Should feel like | Anti-pattern |
|---|---|---|---|
| Cleric | sustain (Heal/Mass Heal/Antidote) | "I keep the party alive when it shouldn't be." | stuck front-line |
| Paladin | tank + self-patch | "I body-block and patch myself." | out-damaging the Barbarian |
| Barbarian | Fireball + Bolt | "I delete the front rank." | slow to set up |
| Alchemist | stacks + Steal | "I never run out." | out-damaging mages |
| Assassain | Mug | "Every action I hit and harvest." | too tanky |
| GreenNinja | Teleport into a flank | "I'm in position a move sooner." | consequence-free teleport |
| RedNinja | Teleport + Mug | "I'm in their backline first." | same as Assassain |
23.2.1 Class identity rules of thumb
One thing it does best plus a secondary cope; lopsided stats; colors shape the bank (W/W/W vs W/B/R); abilities reference identity.
23.2.2 Classes without distinct kits
Amended 2026-10-13 (superseded, was already stale): this table predates a kit pass that gave every one of the 62 hero classes a bespoke signature move (<classid>_<move> in slot 3, e.g. paladin_bulwark, myrmidon_phalanx, whitewitch_ward) — verified against classes.json, 0 classes run the flat default kit described above. A further pass the same day grouped each role into 3-5 sub-archetypes (e.g. Tank: Aegis Guard / Juggernaut / Warlord / Deathguard; Healer: Aegis Wardens / Hexmenders / Skirmish-Menders; see tools/icons.json's ability map for the full id list) and gave each cluster two more bespoke moves (slots 1 and 4), so every class now has 3 of its 5 slots archetype-specific — only slot 0 (the role's baseline action, e.g. taunt/heal/cleave) and slot 2 (item:x_potion) stay shared, by design (SynergyTests.Every_hero_has_a_role_and_kits_match_it asserts the baseline survives). A parallel Universal flag on AbilityDef (12 new Skills) lets any hero of any role learn a class-agnostic move via Abilities.Learnable, alongside the pre-existing rule that every Spell is already universally learnable.
23.3 Enemy classes
110 enemy classes, 47 used in the campaign. Enemies use only ChargeAbility, Trap, BossPhases, SnakeSegments, Footprint, MoveRange and stats; their Abilities list is not used.
23.4 Roster + party composition
SaveData.Roster holds every recruited hero; Party the active squad, max 6 (Progression.MaxPartySize; amended 2026-10-10, owner: "up to six party members" — the board has six hero start tiles; Camp shows them in a 2-column grid). Party.Toggle moves a hero between party and reserve, refusing a full party and refusing to remove the last member (Amended 2026-10-09). XP lives on the hero, so it survives moves.
24. Equipment, Items, Materials, Currency
24.1 Item types
Equipment (weapon, armor, relic), Consumable, CraftingMaterial, QuestItem (never sold). Gold is not an item. Added 2026-11-06 (GG-T301): RecipeScroll (§24.6.2), Tome (teaches one Passive/Reactive, TeachesAbility) and Chest (rolls a droptables.json row when opened, OpensTable); see §25.6.4.
24.1.1 Rarity tiers
ItemRarity: Junk, Common, Uncommon, Rare, Epic, Legendary (content: 3 / 38 / 45 / 37 / 24 / 20). Names render rarity-colored (Ui.RarityClass).
| Rarity | Cost guide | Stat range | Source |
|---|---|---|---|
| Common | 1.0× | +1–3 | most enemies |
| Uncommon | 2.5× | +3–6 | mid enemies, forge |
| Rare | 6× | +5–10 | elites, upgrades |
| Epic | 15× | +8–15 | bosses, enchant |
| Legendary | 40× | +12–25 | end-game |
Relic/Epic+ named passives (PincerDamageBonus, RegenPerTurn, StartsProtected) and weapon-upgrade-line named passives (§24.6.1, GG-T47) are both built.
24.2 Equipment slots
Weapon, Armor, Relic I–III. Equipment.Fits (weapon/armor by slot; any relic in any relic slot), Equip (takes one from the bag, returns the old piece), Unequip, Compare (stat preview).
24.2.1 Proficiency gating (GG-T52)
Every weapon carries a WeaponClass (Simple/Martial/Arcane) and every Head/Torso/Legs/Gloves/Boots piece an ArmorWeight (Light/Medium/Heavy); every hero can always use Simple weapons and wear Light/Medium armor regardless of class. ClassDef.WeaponProficiencies (which non-Simple classes a class starts trained in) and ClassDef.ArmorProficiency (the heaviest armor it starts able to wear, default Medium) set each class's out-of-the-box reach: the Tank archetype (Guardian tree) starts at Heavy armor; Warrior/Guardian/Ranger start with Martial weapons; Mage starts with Arcane; Cleric and Alchemist start Simple-weapons-only (daggers, maces) until they earn more.
Progression.EffectiveWeaponProficiencies/EffectiveArmorProficiency layer the class default together with any proficiency-unlock passive already in HeroSave.Known — martial_weapons_proficiency ("Martial Weapons"), arcane_focus_proficiency ("Arcane Focus") and heavy_armor_proficiency ("Heavy Armor Proficiency"), the same three passives §25.6's Build screen already reads via Progression.KnownProficiencies (staged by GG-T74). They're real skill-tree nodes today: Mage can unlock Heavy Armor Proficiency (so a mage can earn the right to wear armor — the ticket's own example), Cleric can unlock Martial Weapons, and Alchemist can unlock Arcane Focus, each a late node (RequiredPointsInTree: 8) in its tree. Actually spending a point on any tree node (these three included) is still the deferred follow-up noted in §25.6/§25.6.1 — until that lands, a passive only enters Known via a class's starting kit (none do yet) or the migration grandfather clause below.
Equipment.ProficiencyGate(c, h, item) returns null if h can equip item, else the unlocking passive's name; Equipment.Fits(c, h, item, slot) (an overload of the shape-only Fits(item, slot)) folds that check in, and Equipment.Equip refuses with "Not proficient — needs {gate}" without consuming the item. The Equip screen's bag listing still calls the shape-only Fits/Candidates so a piece the hero owns but can't wear stays visible — shown disabled with a 🔒 and the gate's name in place of its count — instead of silently vanishing; Equipment.Candidates(c, s, slot, h) (the hero-aware overload) is what the camp bot and shop-browsing code use instead, so it never buys or crafts toward gear it can't equip. A save written before this landed may already have a hero wearing something ungated at the time — SaveMigrations.Migrate auto-grants the matching proficiency for anything already equipped, so nobody's gear is stripped out from under them. (Tests: LoadoutAndProgressionTests — effective proficiencies by class default and by passive, ProficiencyGate/Fits/Equip/Candidates behavior, the migration grandfather clause.)
24.2.2 Weapon roster (GG-T181)
100 unique base weapons — the 13 originals plus 87 more, authored as one table in GridGame.Studio/tools/weapons.py (re-run it to re-tune, then python ../GridGame.Studio/tools/make_icons.py --missing for any new icon). 30 Simple (clubs, sickles, slings, quarterstaves, knives, javelins, rods, lanterns, chakrams… — the Healer/Support kit, since those classes start Simple-only), 40 Martial (halberds, rapiers, katanas, glaives, whips, crossbows, flails, scythes, tridents… — Striker/Tank/Ranged) and 30 Arcane (wands, tomes, orbs, scepters, totems, staves — Mage/Support/Healer), Common through Legendary. Each has its own stat profile, and many a base trait from fields the engine already applies to any equipped item: PincerDamageBonus, RegenPerTurn, StartsProtected, BattleStartManaOrbs, (retired, GG-T1829), BankCapacityBonusResistances, or an on-hit trait — a low-chance PincerApplyBuff or a small LifestealFraction named on every step via PassiveName (whose +3 passive is then the same mechanic, stronger). Every weapon has a source: Common basics are Merchant stock (Common only, GG-T84), most are Forge recipes (gold ≈ 40% of base cost, Apprentice for Common/Uncommon, Journeyman for Rare, Master for Epic/Legendary, inputs themed on the enemy family whose trophies they use), and some are enemy drops (droptables.json, 0.8–6% by rarity — the Demon Lord's are the Legendary ones). Every base gets the originals' generated variants: +1/+2/+3 (Strength and Intelligence +2/+4/+7, cost +15/+30/+50, a named passive at +3) and one per enchant (enchant Bonus added, cost +120, rarity one step up). Each weapon type has its own game-icons.net silhouette and each base its own palette (tools/icons.json weapon_palette, shared by its variants). (Tests: WeaponRosterTests — 100 bases across all three classes and every rarity, distinct profiles, a shop/forge/drop source for each, a full upgrade line and enchant set for each, an icon for every weapon row; EconomyLoopTests; Every_weapon_upgrade_lines_top_step_has_a_named_passive.)
24.2.3 Armor sets (GG-T182)
armorsets.json holds 20 named five-piece sets — 100 armor pieces (one Head/Torso/Legs/Gloves/Boots each, all of the set's ArmorWeight): 7 Light, 6 Medium, 7 Heavy, pitched from campaign level 1 (Wayfarer's, Light) to 40 (Dreadwyrm, Heavy; since the postgame curve, GG-T357, 40 is both the campaign's length and its last level, Morrow's Shadow III, and the top set tracks both; Reaper's 30, Sanguine 35 and Dreadwyrm 40 spread over the postgame's Bloom and Morrow's Shadow, GG-T347/T348; the top four sets spread over the Choir's Cathedral's 22–24 and the longer campaign, GG-T350; every set from 16 up moved three levels when The Still joined the campaign, GG-T344, and every set from 4 up moved three more when The Lantern Road did, GG-T345, so the Lantern Road's 4–6 has none of its own), a new set at most every five levels, rarity Common → Legendary with the level. ArmorSetDef{Id, Name, Weight, Level, Description, Pieces[5], Bonuses[]}; each SetBonusDef{Pieces, Stats, Resistances, PincerDamageBonus, RegenPerTurn, BattleStartManaOrbs, StartsProtected} is active while at least Pieces distinct pieces of the set are worn. Every set has a 2-piece bonus (its signature stat) and a 5-piece bonus (two stats plus a perk: an element resistance, Pincer damage, Regen, battle-start orbs or starting Protected). ContentDb.SetByItem/TryArmorSetOf maps a piece to its set; ContentLoader.Validate rejects a set without exactly one piece per armor slot, a piece of the wrong weight or in two sets, or a bonus tier outside 2–5.
Resolution is pure Core (Core/Rules/ArmorSets: Progress, ActiveBonuses, BonusStats, Describe). BattleRunner.SpawnHero folds the active tiers into the hero's GearStats/GearResist/PincerDamageBonus/RegenPerTurn (and battle-start orbs/Protection), tracking them in Unit.SetBonuses; when a piece breaks mid-battle (§24.5) the tiers it was holding up are taken back out and the feed reads "<Set> set bonus lost". Because Progression.Preview runs the same spawn, the Status totals and the Equip compare grid include set bonuses automatically.
Sources — every piece has at least one: Merchant (only Common pieces: Wayfarer's head/gloves/boots, Militia head/torso/boots, Bramblehide and Gutterscrap boots), Forge recipes (base leather/iron/cloth plus the trophies of the enemies the set is themed on; Apprentice up to level 6, Journeyman to 14, Master above; gold ≈ 40% of cost), and drops (the remaining pieces, 4–5% from the themed enemy families' tables, 10% off the Demon Lord). The 23 older unsetted armor pieces stay as they were.
UI: the Status screen's "Armor Sets" window lists each set the hero wears a piece of ("Wayfarer's set 3/5") with every tier, ✔ and green once reached; the Equip screen's compare panel shows the set of the current and previewed piece as one line ("Wayfarer's set 4/5 → 5/5 · ✔ 2 pieces: … · ✔ 5 pieces: …"); item details (Items, Shop, Forge) name the set, its weight and level, and both tiers. (Tests: Tests/Core.Tests/ArmorSetTests.cs.)
24.3 ItemDef fields
Id, Name, Description, Type, Rarity, Slot, WeaponType, WeaponClass, ArmorWeight, BaseCost,
SellValue (−1 = BaseCost/2), MaxStack, Durability, BaseHealing, BaseDamage, DamageType, Stats{8},
BattleStartManaOrbs, OnUseAbility, GrantsOrbs, CuresBuff, CuresAll, Revives, Escape, OutOfBattleOnly,
BonusVsTag, BonusMultiplier, Resistances{type→mult}, SoldByVendor, Icon
24.4 Inventory
SaveData.Inventory — item id → count, per save slot; AddItem removes zero entries. Amended 2026-10-10: durability is per inventory instance — SaveData.Worn (item id → its worn copies, each a WornGear{Durability, Repairs}) remembers the wear and repair count of a piece that leaves a hero's slot, instead of resetting it; see §24.5.
24.5 Weapon durability
- A hero's equipped weapon loses 1 durability per pincer it attacks in (not as a supporter); items with
Durability0 never wear. Content weapons have 80–250 durability. - When a pincer starts with the weapon at 1, that attacker's strikes in that pincer deal ×1.5; then it wears to 0 and shatters: the wielder takes
round(15% MaxHP)(min 1, "Shatter!", environmental), the weapon's stats leaveGearStats, and (amended 2026-10-15, GG-T41) the weapon becomes a Broken fragment in the save at commit instead of being removed outright — see Broken fragments below. - Repair (
Meta.Repair): restores toEffectiveMax = max(1, Durability − repairs), thenrepairs++(so each repair lowers the next ceiling by 1); costceil(missing × BaseCost / Durability × RepairRate × 1.6^repairs), min 1, withRepair.RepairRate0.15 (0.30 until GG-T448); flagged uneconomical when cost ≥ BaseCost. Every repair counts toward the growth however few points it restores, so the camp routine waits until a piece is below 60% before repairing it (§25.0.11, GG-T540). (Tests:Weapon_wears_per_pincer_and_shatters_at_zero,Full_loop_battle_commit_then_every_vendor.) - Per-instance durability (closed 2026-10-10, US-246): unequipping a piece that isn't factory-fresh (worn below max, or repaired) files it into
SaveData.Worninstead of resetting it;Equipment.Equiphands out a fresh copy first, else the least-worn tracked copy. (Test:Unequipped_gear_remembers_its_wear_and_fresh_copies_are_used_first.) - Armor wears in battle (closed 2026-10-10): a hero's equipped armor loses 1 durability per landing hit taken (not DOT/environmental); at 0 it breaks mid-fight — stats and resistances leave
GearStatsimmediately with an "Armor broken!" feed line and crack VFX; (amended 2026-10-15, GG-T41) it becomes a Broken fragment at commit like a shattered weapon (no shatter damage — that stays weapon-only). Repair works as for weapons. (Test:Armor_wears_per_enemy_hit_and_breaks_at_zero.) - Ability-bar weapon swap (closed 2026-10-10): a bar slot can hold
weapon:<id>from the bag; using it swaps weapons (costs a turn, no mana; the incoming weapon enters at factory durability); the save follows the swap. - Shatter auto-equip (GG-T40): if a hero's weapon shatters and a backup is slotted on their bar, it equips for free the moment that hero is next given a command — no turn cost, no player input. (Test:
Shattered_weapon_auto_equips_the_bar_backup_on_the_hero_s_next_action.) - Broken fragments (GG-T41): a shattered weapon or broken armor doesn't vanish —
BattleResults.BrokenWeapons/BrokenArmors(hero → item ids, recorded the instant each shatters/breaks, even if a bar backup is auto-equipped afterward) turns each into aBroken <Name>fragment at a Victory commit (SaveData.Broken, item id → count), not a whole item returned to the bag. Broken pieces can't be equipped (Equipment.Candidatesonly readsInventory, neverBroken) or repaired (Repaironly ever touches a hero's equipped gear); they're listed on the Items screen (All/Gear tabs, "can't be equipped or repaired" note) and the Blacksmith's Salvage tab, andCrafting.SalvageBrokenscraps one forSalvageYield(c, item, 0)materials (§24.6) plus Blacksmith XP. (Tests:A_shattered_weapon_is_recorded_in_results_so_commit_can_turn_it_into_a_broken_fragment,A_shattered_weapon_becomes_a_broken_fragment_instead_of_vanishing,A_shattered_armor_becomes_a_broken_fragment_instead_of_vanishing,A_weapon_that_shattered_and_had_a_bar_backup_auto_equipped_does_not_also_return_whole_to_the_bag,Broken_fragments_cannot_be_equipped_and_salvaging_one_grants_materials_and_blacksmith_xp.) - Telegraph (added 2026-10-15, GG-T39): each hero's battle card shows a thin weapon/armor wear bar (
BoardView.UnitView.SetGear); at ≤10% remaining it pulses amber, and at the weapon's last-strike durability of 1 it glows red with a cracked-weapon badge instead. The drag preview calls out an imminent shatter ("This pincer will shatter your Iron Sword!") before the drop commits, for any attacker the previewed pincer would wear to 0 — not just the dragged hero. (Harness:python tools/harness.py durability.)
24.6 Crafting recipes
RecipeDef (recipes.json): station, inputs, gold, optional BaseItem consumed, result. Crafting.Craft checks gold, inputs, base item and result stack room atomically.
| Station | Count | Where |
|---|---|---|
| Forge (no base) | 11 | Blacksmith → Forge |
| Forge with base item (upgrades) | 39 | Blacksmith → Upgrade — Amended 2026-10-09: the old unused UpgradeLibrary now has a UI
|
| Alchemy | 14 | Alchemist → Brew |
| Enchant (base weapon + essence + 2 Arcane Dust + gold) | 52 | Alchemist → Enchant |
(Test: Every_recipe_is_craftable_with_its_inputs.) Salvage (Crafting.Salvage): break one equipment piece into 50% of its base Forge recipe's inputs (floor, min 1). Amended 2026-10-15 (GG-T42): every equipment piece is now salvageable — pieces without a base recipe fall back to a flat materials-by-type-and-rarity table (Crafting.FallbackSalvage, keyed by Weapon/Armor/Relic × rarity). Yield also scales with the piece's remaining durability (Crafting.SalvageYield(c, item, durability)): a near-dead or Broken piece returns proportionally less (floor), but never less than 1 of the cheapest input. Bag salvage (Crafting.Salvage) always eats the worst (most-worn) tracked copy first; Crafting.SalvageEquipped lets a hero's currently-equipped weapon/armor be scrapped directly instead of unequipping it first. Amended 2026-10-15 (GG-T41): Crafting.SalvageBroken scraps one SaveData.Broken fragment the same way, at durability 0 (§24.5). (Tests: Every_equipment_item_has_a_salvage_yield_via_recipe_or_fallback_table, Salvage_of_equipment_without_a_recipe_uses_the_type_and_rarity_fallback_table, Salvage_yield_scales_down_with_remaining_durability_but_keeps_at_least_one_of_the_cheapest_input, SalvageEquipped_clears_the_heros_slot_and_grants_durability_scaled_materials_instead_of_returning_it, Broken_fragments_cannot_be_equipped_and_salvaging_one_grants_materials_and_blacksmith_xp.)
24.6.1 Tier ladder (GG-T35, amended 2026-10-15)
Each crafting station has its own level — Apprentice → Journeyman → Master — raised by XP from every craft, brew, repair and salvage done there (StationProgress, SaveData.StationXp; 150/450 total XP for Journeyman/Master, tuned in VendorTiers.RankXp since GG-T538, §25.0.10). RecipeDef.Tier (1–3, default 1 when absent from content) gates Crafting.Craft to the station's current level, failing with "Requires Journeyman"/"Requires Master" below it; Repair and Salvage aren't recipes and are always available, but still feed the Blacksmith's XP. Deliberately independent of §25.12 caravan upgrades (gold-bought stat bonuses, never recipe gates) so the two never double-gate the same thing — tested by Caravan_upgrades_and_station_tiers_never_double_gate_each_other. Amended 2026-11-19 (GG-T432): the gold-bought facility levels of §25.12.2 are a second gate on a different axis — the material tier (the result's rarity), not Tier — so a recipe needs both its station's skill tier and its facility (Crafting.CanMake). Caravan stat upgrades still never move station XP or open a Tier.
Content assignment: Forge's 11 base (no-BaseItem) recipes are all Apprentice; its 39 Upgrade recipes split Journeyman (the first upgrade off a base item) / Master (the deeper +1 → +2 chains); Alchemy's 14 brews split Apprentice/Journeyman/Master by gold cost; all 78 Enchant recipes are Master (Alchemist-side, alongside Brew). The original "Iron Sword → Steel Sword → Mythril Blade → +1" ladder sketch predates this data shape; upgrades exist as data and UI. (Tests: A_station_starts_at_apprentice_and_levels_up_from_real_crafting_actions, Repair_and_salvage_grant_blacksmith_xp_but_never_alchemist.)
Named upgrade passives (added 2026-10-15, GG-T47): each weapon upgrade line's top step (13 originally; all 100 since GG-T181, §24.2.2) (its +3, the deepest Master-tier rung) carries a named passive — ItemDef.PassiveName/PassiveDescription (shown on the Equip compare panel and in ItemUi.StatsText) plus one of three data-driven mechanics, all keyed off the wielder's equipped WeaponId at combat time (no new Unit fields):
PincerApplyBuff/PincerApplyBuffChance: a landed pincer strike (not a supporter or counter hit) has this chance to apply the named buff to the target — Flame Tongue's Flamebrand (20% Burn), Serpent Spear's Serpent's Kiss (25% Poison), Rune Axe's Rune Frost (15% Freeze), Shadow Blade's Duskfang (20% Blind), Crystal Wand's Silencing Shard (20% Silence).LifestealFraction: heals the wielder this fraction of any damage they land, pincer or not — Bronze Dagger's Vampiric Edge (5%), Rusty Sword's Scrapper's Edge (3%), Mystic Staff's Soul Siphon (5%), Hunter's Bow's Bloodhunt (4%).AdjacentAllyDamageReduction: while this hero stands adjacent to an ally hero, that ally takes this much less damage from any landed hit (the strongest adjacent guardian wins — doesn't stack) — War Hammer's Guardian's Bulwark (12%), Starfall Mace's Celestial Aegis (10%), Steel Sword's Steel Bulwark (10%), Iron Sword's Ironwall (8%).
(Tests: Flamebrand_applies_burning_on_a_landed_pincer_strike, Vampiric_edge_heals_the_wielder_a_fraction_of_damage_dealt, Guardian_passive_reduces_damage_to_an_adjacent_ally, Every_weapon_upgrade_lines_top_step_has_a_named_passive.)
24.6.2 Recipe discovery (GG-T36, amended 2026-10-15)
Recipes start hidden; RecipeDiscovery.IsDiscovered reveals one once its station's level reaches its Tier (§24.6.1 — Crafting.IsUnlocked already derives that from SaveData.StationXp, so a tier-reached recipe is discovered by definition with no separate level-up event) or earlier, via SaveData.DiscoveredRecipes:
- Read a recipe scroll — a new
ItemType.RecipeScrollitem (ItemDef.TeachesRecipe) dropped like any other loot; the Items screen's detail pane offers "Learn recipe" (RecipeDiscovery.Learn), which consumes the scroll and discovers its recipe outright even if the station isn't high enough level to craft it yet (it then shows 🔒-locked, same as any other discovered-but-locked recipe). - First-ever pickup of the recipe's rarest input —
RecipeDiscovery.RarestInputpicks the input with the highestItemRarityamong a recipe'sInputs(ties: higherBaseCost, then id);BattleFactory.Commit's loot grant callsRecipeDiscovery.OnItemAcquiredthe moment an item's owned count goes from 0 to positive, discovering every still-hidden recipe whose rarest input is that item.
The Blacksmith/Alchemist recipe lists (BlacksmithScreen.RecipeList) show discovered recipes as before, plus a ??? row for an undiscovered recipe missing exactly one input (RecipeDiscovery.OneAwayMissing) naming that missing material — everything else undiscovered is hidden outright. Selecting a ??? row shows the input checklist (materials aren't secret) but not the recipe's name, result or price. Discovery only gates visibility: Crafting.Craft's gold/inputs/tier checks are unchanged. Three scrolls ship in content as rare drops (scroll_recipe_sword_tempering off goblinthug00, scroll_recipe_holy_water off ghost, scroll_recipe_holy_enchant off demonlord). (Tests: Tests/Core.Tests/RecipeDiscoveryTests.cs.)
24.6.3 Masterwork variants (GG-T46)
Every Forge craft and Upgrade (never Alchemy/Enchant) rolls a chance (Crafting.MasterworkChance) at a Masterwork result on a Weapon- or Armor-slot item: base 5%, +0.2% per point of the active party's combined Luck (Formulas.StatsAtLevel summed over SaveData.Party, levels included), +5% per Blacksmith station level above Apprentice (§24.6.1), capped at 35%. A hit rolls a random +10–20% stats multiplier (WornGear.Mastery/HeroSave.WeaponMastery/ArmorMastery) and a fixed +25% max durability (BattleConfig.MasterworkDurabilityMultiplier), shown with a ★ in front of the item's name everywhere it's listed (bag, Equip, Status, Repair) and in the craft toast. The roll travels with the specific piece like per-instance durability (§24.5): unequipping remembers it, equipping restores it, and it's gone for good if the piece shatters/breaks or is swapped out for an ability-bar backup (backups always enter at factory spec). (Tests: Masterwork_chance_grows_with_party_luck_and_blacksmith_level_and_caps, Forge_craft_can_roll_a_masterwork_variant_with_boosted_stats_and_durability, Unequipping_a_masterwork_weapon_remembers_its_roll_and_requipping_restores_it, Enchant_crafts_never_roll_masterwork_even_though_they_also_touch_weapons.)
24.6.4 Reagent potency (GG-T45, owner direction)
A handful of Alchemy recipes carry a RecipeDef.PotencyInputs/PotencyResult/PotencyResultCount on top of their normal Inputs/Result: brewing with a rarer reagent swapped in for the recipe's key material — e.g. a Pure Slime Gel (Rare, a low-chance bonus drop from the slime family's own table, §24.7) instead of a plain Slime Gel — yields a stronger version of the same potion instead of the base one, for the same gold cost. Crafting.HasPotencyInputs/Crafting.Craft(c, s, r, potency: true) check and consume the potency set instead of the normal one; AlchemistScreen's Brew detail shows the greater result and its own reagent checklist and Brew button beneath the normal one whenever a recipe has one. Today: Greater Healing Potion (90 HP vs. 50) off recipe_potion_healing, and Greater Antidote (cures everything, not just poison) off recipe_antidote — both gated on the same Pure Slime Gel, so a lucky rare drop has a use beyond unlocking new recipes. Adding another potion's potency variant is a content-only change (no code): give its recipe PotencyInputs/PotencyResult. (Test: Brewing_with_the_potency_reagent_yields_the_greater_result_instead.)
24.6.5 Lucky craft — the Diamond (GG-T235)
Amended 2026-11-21 (GG-T568): the Diamond is now the Mana Shard on screen (§24.9.1); a lucky craft costs 50 Mana Shards (or 300 G).
Owner 2026-11-05: "trying to do a lucky craft with a 'Diamond' to increase chances of a better item that's forged." The Diamond (mat_diamond, Epic crafting material, never sold by a vendor, never dropped) comes only from the LuckyDiamond paywall hook (§25.18): the Forge detail's Buy Diamond · 1g · 1s button runs a timed job that lands one in the bag (a full stack refunds). Amended 2026-11-20 (owner, GG-T455): comes from the Diamond exchange (§25.18.1); the Forge detail's buy-diamond button is now Diamond Store, and a lucky craft costs Crafting.LuckyDiamondCost = 50 Diamonds (or 300 G), paid through DiamondExchange.Pay on top of the recipe's own gold, so it is on offer with or without Diamonds in the bag (short of both, it offers the store). Any Forge recipe whose result can roll Masterwork (§24.6.3) also shows Lucky craft (use 1 Diamond) · ★ N% while one is held: the same craft as Craft (Forging.Forge(c, s, r, lucky: true) → Crafting.Craft(…, lucky: true), guided first forges included), but it spends one Diamond and rolls Masterwork at MasterworkChance(c, s, lucky: true) — the normal chance +40%, capped at 75% instead of 35% — and a lucky Masterwork's stat bonus rolls +15–20% instead of +10–20%. Tuning lives in Crafting.LuckyChanceBonus/LuckyMaxChance/LuckyStatBonusMin. A refused lucky craft (no Diamond, potency brew, ineligible result) consumes nothing. The result plays out over time (LuckyCraftUi): the Diamond spins up in a veil with a magic cue, then the result lands with powerup (Masterwork) or clang ("the Diamond's luck didn't hold"). Bots and CampRoutine never buy or spend Diamonds. Amended 2026-11-27 (GG-T1433): the lucky craft is a paid random item, so it is not sold in a blocked storefront country (§25.10.4): Crafting.CanLucky and the lucky Crafting.Craft ask LootBoxPolicy.AllowsLuckyCraft(), and the Forge detail shows the lucky-off line in place of the lucky-craft button. (Tests: LuckyCraftTests, LootBoxPolicyTests.)
24.7 Drops
Per enemy DropTable (§13.3); 37 tables in content, one per enemy family. The Adventure list hints each stage's drops.
Amended 2026-10-15 (GG-T43, owner direction): every enemy family carries its own signature crafting/alchemy material (frogs → Frog Gland, goblins → Goblin Scrap Iron, slimes → Slime Gel, undead → Undead Bone, cyclopes → Cyclops Eye, vampire → Vampire Fang, etc.), matching the house convention that a wave clusters one family (§22.7) — so a player can pick a stage and farm it for a specific ingredient. Remains (gravestones, bone piles) and eggs still drop nothing (§14.5, §14.8). The Bestiary lists a family's drops as soon as it's Seen (§25.11). (Test: Every_enemy_family_has_a_drop_table_with_a_signature_material.)
24.7.1 Material economy
ENEMIES ─▶ drop tables ─▶ Inventory ─┬▶ Blacksmith (forge / upgrade / salvage / repair) ─▶ gear
├▶ Alchemist (brew / enchant) ─▶ consumables, enchanted gear
└▶ Merchant (sell 50%) ─▶ Gold ─▶ buy, craft, learn, summon, inn
24.8 Specific items
- Mage Robes (
eq_armor_mage, Uncommon): +2 orbs at battle start; Wizard Robe (eq_armor_wizard, Rare): +3; stacks across the party, capped by the bank. - Sleep Dart (
cons_sleep_dart, stack 5): castssleep(PickActor) with no mana — the item-casts-a-spell path. - Sunfire Amulet (
eq_amulet_sunfire, relic): Fire damage taken ×0.7. - Consumables table: §4.3.
24.9 Currency
Amended 2026-10-09: coins collected in battle are gold. BattleResults.Coins is credited to SaveData.Gold (and the LifetimeCoins ticker) at a victorious commit; coins seen in a lost or escaped battle are lost. The old GoldTracker bridge is gone. Gold sinks: Merchant, crafting, repair, Inn, learning abilities, Summon Circle. New saves start with 200 G.
24.9.1 The currencies (wiki entries, GG-T568)
Each currency has one stable id, one standalone description (its Prose glossary text) and its numbers in data or in one tuning class. Player-facing names come from one place in code (ShardText for the premium currency).
- Gold (
gold). Earned as coins in battle, quest and milestone rewards, and by selling at the Merchant. It belongs to the save slot (SaveData.Gold). It pays for nearly everything at Camp (§24.9). - Mana Shard (
aetherite_shard; glossaryglossary:aetherite_shard). The premium currency, bought with real money in the Mana Shard Store. It pays for a random summon, an instant Rested refill and a lucky craft (§25.18.1). Owner 2026-11-21: "the real-money currency is 'Aetherite Shard(s)'"; it was called Diamonds until GG-T568, and Aetherite Shard(s) until GG-T675 (owner 2026-11-22: Mana Shard(s), mana made stable). The rename is words only: the item idmat_diamond, the store product idsdiamonds_100…diamonds_2500, the save fields and theDiamond*class names are unchanged, so saves and purchases still work. Its item (mat_diamond) is named "Mana Shard"; its icon is still the game-icons cut diamond (new crystal-shard art is listed in docs/ART_GAPS.md). - Summon Ticket (
summon_ticket; glossaryglossary:summon_ticket, itemmat_summon_ticket). One Ticket pays for one random summon in place of Mana Shards, spent before any Shards (§25.10.3). Earned in play and never sold on its own:SummonTickets.StarterTickets10 on the first Summon Circle visit, one per campaign stage first cleared, five per chapter, one per five battles won, and joined fragments; the starter pack also pays some into the wallet. Earned Tickets belong to the save (SummonState.Tickets), bought ones to the account wallet (AccountWallet.Tickets); the item record is for its name, icon and description only, never an inventory count. Player-facing names come fromTicketText. - Ticket fragment (
ticket_fragment; glossaryglossary:ticket_fragment, itemmat_ticket_fragment). A piece of a Ticket;Gacha.FragmentsPerTicket(10) join into one. Counted inSummonState.Fragments, like the Ticket never in the inventory.
25. The Camp (merged hub)
Amended 2026-10-09 (owner decision): the FF-style Camp menu (HubScreen) replaces the seven vendor scenes, the VendorNavBar and StageSelect-as-home. It is the "merged hub" the old §25.9 deferred.
25.0 Camp navigation
Rewritten 2026-11-27 (GG-T1610; built GG-T1609, GG-T1611, GG-T1612). HubScreen is the Camp root, laid out as pillars under the bottom nav (§11.3), top to bottom in a column with no header:
- Party window (
camp-party): a card per active hero (portrait, name, role badge, level, HP gauge; tap opens Status on that hero), two across on a phone and three on a roomy tablet. The Inn (camp-inn, orlocked-innwith its join hint until the Innkeeper has joined; Rest) row sits inside the window, with the party it heals. Respec opens from the Talents board (hex-respec, Heroes > Abilities > Talents) while the caravan is camped, not from the hub (GG-T2085). - Campaign card (
camp-campaign): Continue (camp-continue) launches the next stage straight throughStageLauncher(the expedition's next battle while one runs, else the first uncleared campaign stage, or its theme's opener), captioned with the stage name and "Costs N Rested" unless Rested-exempt; it reads Adventure and opens Stage select once nothing is left. The Adventure row (camp-adventure) opens Stage select. Below it: the caption "gold · play time · Cleared N/M", the New Game+ level when above 0, the New Game+ row (camp-newgameplus, confirmed) and the Rested panel (RestedGate.PanelIn, §25.18). - Crucible card (
camp-crucible,locked-cruciblewith its hint when closed; §22.10). - Tile grid (
camp-tiles,.kit-pillarof.kit-tile): one tile per remainingCampMenudestination (Heroes, Summon, Merchant and the rest) plus the Craft and Journal group tiles below, each with icon or keeper portrait, label, value or lock hint, a New badge, and a padlock when closed. A tile is named for its old row (camp-<row>open,locked-<row>closed) so tips and harness flows keep resolving; a closed tile toasts its hint. The hub's corners are fixed (GG-T1845): the hamburger (menu) top-left and the gold, shards and tickets strip top-right (camp-corners). The hamburger opens a Menu window with Settings (camp-settings), Save & Quit (camp-save-&-quit, which asks "Save and return to the title?" beforeToTitle) and Resume, so neither sits in the tile grid and the whole hub fits one screen. - Caravan line (
camp-gossip): once the Caravan station is open, a rotating one-line crew bark under the tiles (§25.12.1).
Each sub-screen is a HubPage with a header (back, title, gold) over a themed backdrop; Back returns to Camp. Every successful action toasts, plays a cue, persists and refreshes (HubPage.Done). Design: docs/design/hub-navigation/.
Craft and Journal groups (GG-T1613, GG-T1353, GG-T1616). The Craft members (Items, Blacksmith, Alchemist, Manasmith, Enchantress, Caravan) and the Journal members (Quests, Bounties, Talk, Codex, Bestiary; Mercenaries moved to Recruit, GG-T1964) are not tiles of their own on the root: each group is one tile (camp-craft / camp-journal; locked-* with the group's first hint when no member is open; New badge when any member waits) that opens a CampGroupScreen (camp-group-craft / camp-group-journal), a HubPage titled Craft or Journal whose .kit-pillar (camp-group-tiles) holds that group's CampMenu destinations as the same tiles, under the same names. One Back returns to the Camp root. The root's group tile carries hidden, picking-ignored markers named for each member (camp-codex, camp-blacksmith, …) so CampTipOverlay.Find and the harness still resolve them; a coach lesson for a member rings the group tile first, then the member's tile on its group screen (CampCoach.TapSteps). Camp tips (§25.14) ring controls inside the station screens, so they needed no retargeting.
Amended 2026-11-19 (owner, GG-T435): one Heroes row. Status, Equip, Abilities, Talents and Party were four or five Camp rows for one hero; they are now the tabs of one Hero screen (HeroScreen, App/Screens/HeroScreen.cs, title "Heroes") behind a single Heroes row where Status used to sit (camp-heroes; it reads "Train a skill!" while onboarding step 7 is ahead and opens on Abilities then, §25.0.9, otherwise the party's unspent skill points, opening on Status).
- Layout: the header, then the tabs Status | Equip | Abilities | Party (
hero-tabs;tab-status…), then a roster strip (hero-picker): one card per hero (hero-pick-<classId>: portrait, name, level, Party or Reserve), the party first, the picked hero framed in gold; it scrolls sideways when the roster is wider than the column and its cards share the row when not. The Party tab leaves the strip out (it lists every hero itself). Then the tab's own body, unchanged from the screen it was. - One hero across tabs: the picked hero carries from tab to tab; picking another forgets a previewed Equip piece and a selected talent node.
- Abilities keeps its sub-tabs (Known, Items, Learn, Passives, Locked) and gains Talents: the skill trees and the per-hero Respec (§25.6.3), with no battle bar above them.
- Ids and old routes: the screen's id is its tab's (
status,equip,abilities,talentson the Talents sub-tab,party), so the camp tips (abilities,abilities-learn) fire when the Abilities tab opens and the automationgoto/-startnames still match.StatusScreen,EquipScreen,AbilitiesScreen,SkillTreeScreenandPartyScreenare thin wrappers that open the Hero screen on their tab: Camp's party cards (Status, on that hero), the Crucible's Change team (Party) and-start status|equip|abilities|talents|partyall land there. Every element name the tips and harness flows use (guided-lesson,craft,learn-*,passive-*,locked-*,talent-*,bar-move-*,status-*) is kept.
Amended 2026-11-27 (GG-T1328): the rows become the Camp pillar's tiles (§11.2.1, §11.3, docs/design/hub-navigation/). Heroes (the Hero screen; Inn rest and Respec ride on it), Summon (Summon Circle, Mercenaries), Shop (Merchant, Diamond store), Craft (Items, Blacksmith, Alchemist, Enchantress, Manasmith, Caravan), Journal (Talk, Quests, Bounties, Bestiary, Codex) and Settings (Settings, save export and import, Save & Quit). Adventure becomes the Campaign pillar, Crucible its own pillar, New Game+ moves to the Campaign pillar. Station unlocks, join hints and row badges carry over to the tiles and group menus; a tile whose stations are all closed is dimmed with the earliest hint.
Amended 2026-10-19 (owner, GG-T119): the service rows — Merchant, Blacksmith, Alchemist, Enchantress (new, §25.3.4) and Inn — appear only once that Camp NPC has joined the caravan (§25.0.1); Talk (§27.1) sits after Party. A new save's Camp has none of them.
25.0.1 Camp NPCs join along the way (GG-T119)
The Merchant, Blacksmith, Alchemist, Enchantress and Innkeeper are people the party meets on the journey, not fixtures of the camp. Each joins at a story beat (§27.1) through a dialogue JoinNpc effect, which sets the save flag npc:<id> (CampNpcs.Joined); until then their Camp service is hidden. Every NPC also has a Camp Talk dialogue — from Camp's Talk row, and from a Talk button in the header of their own station (HubPage.Npc).
| NPC | Service | Joins (story beat) | First launch it plays before | The original table (ThemeStart Tithe Moors for the Merchant; GearWorn 60%, CanBrew and FirstArmor for the Blacksmith, Alchemist and Enchantress) is superseded by §25.0.1.1 below (GG-T537).
25.0.1.1 Every vendor joins on a story beat (amended 2026-11-21, owner, GG-T537; supersedes GG-T521)
Owner: "the Blacksmith and every other Camp vendor join on a story beat that is part of the campaign progression, not through incidental triggers." The fresh-player run (docs/FRESH_PLAYER_RUN.md) met the Blacksmith 45 minutes in, and only because a bought sword happened to wear below 60%. Now every Camp vendor and keeperless station arrives on the clear of a campaign stage, one new system per stage, just before the player first needs it (one exception since GG-T2348: The Tithe Moors II brings the Innkeeper and the Alchemist together, so Repair, Brew and the first forge all open inside the slice's first hour). No vendor waits on worn gear, gold, loot or chance; the GearWorn, CanBrew and FirstArmor dialogue triggers are gone from the engine.
| # | Clear this stage | Who or what arrives | Join beat (dialogues.json) | The scene, for the writer |
|---|---|---|---|---|
| 0 | (none: the prologue's Wake) | Merchant (§25.1), open from the start | prologue_wake (Prologue Wake)
|
(Amended 2026-11-29, GG-T2209, GG-T2210.) Nell Coppergate (§25.0.1.2) staked the scavengers who pried the vault open; she hands the Commander her gran's never-lit lantern, it lights, and she joins in the wake scene itself. A new campaign joins her as it starts (CampUnlocks.Wake, from StoryBeats.NewCampaign), scene played or not, and every loaded save has her (SaveMigrations.EnsureVendors). greenvalley_road_merchant stays as a plain story scene after The Tithe Moors I, no join: she stops pretending she is only along for the scrap.
|
| 1 | The Tithe Moors I | Blacksmith: Repair (§25.0.4) | greenvalley_smith
|
(Amended 2026-12-01, GG-T2348: planner default for the owner, moved into the Tithe Moors so the slice opens it; conflicts with GG-T2209's join points.) Edric Vane, the Captain's pressed smith, forged the Collector's plate from Halcyon plating Nell sold him. When the Collector falls on the moor road he comes looking for whoever broke his plate, and offers to mend their gear instead. The Captain still holds the moors. |
| 2 | The Tithe Moors II | Innkeeper: the Inn and Medic Wagon (§25.3.1) | greenvalley_after_first
|
(Amended 2026-11-29, GG-T2209.) Sorrel Ashby kept the inn at Tithe, the hamlet the Collector bled dry. With the Collector gone and nobody left to serve, she follows Nell's wheel ruts and offers to keep the camp fed and rested. She keeps the camp but is not one of the council (proposed, waiting on the owner; §25.0.1.2). |
| 2 | The Tithe Moors II | Alchemist: Brew (§25.0.5), and with her the Blacksmith's workshop (Forge, Upgrade, Salvage, lucky craft; §25.0.4, §25.0.6) | desert_alchemist
|
(Amended 2026-12-01, GG-T2348: planner default for the owner, moved into the Tithe Moors so the slice opens it; conflicts with GG-T2209's join points.) Sen Arakawa, a splice-cutter, sells Nell her potions and makes the flux Edric needs to work Halcyon alloy, which is why his workshop opens with her. Nell is down to her last bottle at Tithe, and Sen comes down the road to fill them. She stays to study the Commander's light, which doesn't thin, and hands over a first bottle. |
| 5 | The Lantern Road II (chapter 1's stage) | Summon Circle (§25.10) and the Diamond Store row (§25.18.1) | lanternroad_summon_circle
|
In the shrine of the moonless mural Warden finds the Still's thaw-sigil; with the Alchemist's salts it can wake another sleeper, so the first circle is drawn at Camp. |
| 6 | The Lantern Road III (the region boss) | Bounties and Mercenaries (§22.4, §25.10.1) | lanternroad_bounties
|
Travellers at the Innkeeper's fire name the beasts and outlaws on the road; she pins their names to a board, and the sellswords who hunt them start coming by. |
| 7 | The Shardfall I | Crucible (§22.10) | desert_crucible
|
The Blacksmith finds a ring of fused shard-glass that replays every fight held inside it, and sets it up as a proving ground. |
| 8 | The Shardfall II | Manasmith: refines Mana Dust into Shards (§27.3.3) | desert_aetherist
|
(Row added 2026-11-29, GG-T2209; the beat was already built.) Quint Halder walked out of the Choir's shard mines. Sen has written ahead, and he buys the caravan's waystone dust before it fades. He joins to find out why this dust is cleaner than any he has sifted. |
| 10 | The Arkgrave I | Enchantress (§25.3.4) | swamp_enchantress
|
(Amended 2026-11-29, GG-T2209.) A voice in the fog over the grounded arks: Isolde Wray, a binder taught from Halcyon scraps, who has paid Quint for his best shards in Halcyon coin for years. He leads the caravan into the fog to see who still has that coin. She sets runes into armour, and wants to know why the Commander's light holds when hers fades. |
| 11 | The Arkgrave II | Caravan (§25.12) | swamp_caravan
|
The Merchant strips axles and plating from the ark wrecks and rigs the caravan into wagons that can carry a growing camp. |
Play order (checked 2026-11-21, GG-T538): the # column is the campaign index, the order of campaign.json's Themes and their Stages (ContentDb.CampaignStages), which is the order a player meets and unlocks stages and what HighestClearedStage counts. The Shardfall (desert-01..03) is stages 7 to 9 and the Arkgrave (swamp-01..03) 10 to 12, so the Crucible at The Shardfall I does come before the Arkgrave vendors. The Chapters list is a separate thing: each chapter names the stage whose arrival plays its crawl (chapter 2, "The Grounded Arks", at swamp-01; chapter 7, "The March on the Anchors", at desert-05, the postgame Deep Shardfall at index 35). Its numbering is not the region order.
- Not gated: Adventure, Items, Heroes, Talk, the Bestiary and Settings are open from the start; Quests appear as each quest's own unlock stage is cleared (§22.11); the Rested pool (§25.18) is the launch gate itself, not a vendor, and runs from the first battle.
- The wake (GG-T2210): the one keeper who doesn't wait for a stage is the Merchant: her
JoinNpcsits in the unconditionalPrologue Wakedialogue, the only other placeContentLoader.Validateaccepts one (DialogueRunner.IsWakeBeat,CampUnlocks.WakeNpcs). The bots play the wake before their first stage (PlayPendingBeatsHeadless). So the Shop row opensMerchantPage(GG-T2223) from the first Camp, her tip points at the Healing Potion for the first battle gold, and the prologue potion lesson (GG-T2079) buys from her. (Tests:CampUnlocksTests.The_wake_opens_the_merchant,DialogueTests.Every_branch_of_the_wake_ends_with_the_merchant_joined.) - The beat: a vendor's join beat is a
StageCleareddialogue with no conditions: a keeper's carries aJoinNpceffect on every branch, a keeperless station's anOpenStationeffect (DialogueEffectType.OpenStation, ids inDialogueDef.Stations:summon,bounties,crucible,caravan).ContentLoader.Validaterefuses aJoinNpcorOpenStationanywhere else. A keeper's service opens when thenpc:<id>flag is set; a keeperless station opens on the stage clear itself (CampUnlocks.SummonAfter5,BountiesAfter6,CrucibleAfter7,CaravanAfter11, held to their beats byCampUnlocksTests), so a skipped scene never keeps it shut. - The join moment: the victory's results screen lists the arrival ("Blacksmith joins the caravan! · At Camp", "Summon Circle opens at Camp! · At Camp",
CampUnlocks.Arrivals, rowresults-arrival). The beat plays on the way back to Camp (DialogueRunner.PendingInterlude/PendingVendorBeat; after a chapter crawl when one is due), or at the next launch if the player takes "Next battle". Its toast names the vendor bare: "Blacksmith joins the caravan!". All the scenes are lorem seeds in Prose (dialogue:<id>,tools/prose_text.py seed-missing) until the writer drafts them from the descriptions above. - Camp rows while closed read "Joins after The Tithe Moors III" (a keeper, from its beat's stage) or "Opens after The Lantern Road II" (a keeperless station); the Blacksmith's locked workshop tabs say "Opens when the Alchemist joins, after The Lantern Road I".
- Existing saves (save version 12,
SaveMigrations.EnsureVendors, on every load): every vendor whose stage the save has cleared joins at once, so nobody is locked out; nobody met earlier under the old triggers ever leaves (an early Alchemist stays). A save from before GG-T537 takes the beats it is past as told, so it doesn't get a run of scenes at the next Camp; a current save past a beat still sees its scene. - Guided flows still line up: the first repair tip waits for the Blacksmith (stage 3), the guided first brew for the Alchemist, who brings the bottle (stage 4; with loot still missing the tip says what to bring back), and the first forge and first armor follow when the workshop opens with him; the Enchantress's first enchant follows at stage 10.
- (Tests:
CampNpcTests.Playing_the_campaign_in_order_meets_each_vendor_after_its_stage,Every_vendor_joins_on_its_own_stage_clear,The_blacksmith_joins_after_the_prologue_boss_not_on_worn_gear,The_alchemist_joins_after_the_lantern_road_i_with_a_bottle,The_enchantress_joins_after_the_arkgrave_i,Saves_past_a_vendor_beat_get_the_vendor_on_load;CampUnlocksTests; harnessfullloop.) - Always met, early: a join beat has no conditions and every branch of it joins (nobody can be refused away), and the services the campaign leans on (shop, rest, repair) all arrive inside the prologue's three stages (§25.0.1.1). (Tests:
CampNpcTests—Every_npc_joins_on_every_branch_of_a_story_beat,Playing_the_campaign_in_order_meets_everyone_by_the_third_expedition,Every_npc_has_a_camp_talk.) - The bots meet them the same way:
CampRoutine(§25.3.3) uses only joined services, andBalanceReport's story rows play each launch's pending beats headlessly (DialogueRunner.PlayPendingBeatsHeadless, GG-T118); a finished run asserts everyone was met. Its no-story yardstick rows join every NPC up front, like a pre-GG-T119 save. - Test Mode (§6, GG-T93) never plays story, so
TestLoop.NewSaveauto-joins every NPC up front — the loop exercises repair, rest, buy, brew and learn from cycle 1. The automation sweep's preview save andnewgame npcs=1do the same. - Old saves: save version 4's migration joins every NPC on any older save (they had been using every service). New Game+ keeps flags, so nobody leaves.
- Abilities/Learn, the Summon Circle, Bounties, the Caravan and the Crucible (§22.10) have no keeper; the last four open on their own stage clears (§25.0.1.1, §25.0.3).
25.0.1.2 The war council (added 2026-11-29, owner, GG-T2209; epic GG-T2198)
Amended 2026-11-29 (owner, GG-T2209): a fixed cast tells the story, and that cast is the caravan's vendors, not the summoned heroes. Heroes don't have to talk about the plot. The vendors join in the order the table above gives, and by the Arkgrave they are the Commander's war council. Each meeting looks like chance and isn't: every advisor is already tied to the one before by trade, so the caravan goes looking for the next one for a plain reason. Design page: docs/design/war-council/. Canon: GG-FACTIONS "The war council".
- Talking is optional. The plot moves without a single Talk. Talk is where you learn things, never a gate.
- The Commander is never shown. Conversations use the advisor's portrait tile (GG-T2219), and the Commander's lines are the player's choices, never a portrait or a voiced line (GG-T2189).
- Knowledge is spread across the cast. Nobody knows the whole of it. Each advisor holds one piece and keeps one thing back, and what they keep back is a payoff for a later chapter.
- The argument (§27.3.6) is about what the engines do once the last one wakes. Push it back (the wall), choose where it lands (the beacon), or open the house to it (the guest). Quint adds a fourth reading that suspects the plan itself. No text settles it.
| # | Advisor | Joins | Why they are on this road | The link to the next | Knows | Won't say (pays off) | Stance |
|---|---|---|---|---|---|---|---|
| 1 | Nell Coppergate, the Merchant: potions and ingredients | The wake (prologue, prologue_wake, GG-T2210)
|
She buys Halcyon scrap from moor scavengers and sells them potions. She staked the Knight, the Barbarian and the Cleric to pry the vault door for a share of what came out. | The Collector's plate rings like her own scrap. She sold that plating to the Captain's smith, and she knows where he's kept. | Prices, roads, debts, whose names are in the Choir's ledgers. | On the first night she meant to sell the Commander to the Collector, and she knows exactly what she'd have got (chapter 6, when every claimant asks her the price). | Keeps the tally: engines woken, days left, who paid. She only notes that nobody has stopped walking. |
| 2 | Edric Vane, the Blacksmith: buy, forge, repair weapons | greenvalley-03, when the Captain falls
|
The Captain pressed him into forging for the levy. | He can't work Halcyon alloy without a flux that only the lantern-shrine splice-cutter makes. | Metal. Halcyon plate doesn't rust, and it mends faster near the Commander. Later: shard-glass is not stone (chapter 1). | He left a seam in the Collector's plate on purpose, for anyone who learned to hit it. He still can't decide if that makes him brave or a coward. | The wall: wake them all and push it back up where Halcyon left it, for another ten thousand years. |
| 3 | Sen Arakawa, the Alchemist: Brew | lanternroad-01
|
She cuts cures at a lantern shrine and supplies Nell's potions. Nell is down to one bottle. | Waystone dust spoils before she can use it. Only a Shardfall refiner can make it keep, and she writes ahead to one. | Mana in bodies: everyone's runs thin from the tithe, and the Commander's is whole (chapter 1). | The Commander's light gets brighter as the Somnolith gets closer, and she has no idea what that means. | The beacon: it comes down whatever anyone does; the engines choose where. |
| 4 | Quint Halder, the Manasmith: Mana Dust into Shards | desert-02
|
He refined in the Choir's shard mines for twenty years and walked out. Now he sifts dust for whoever pays. | For years his best shards have gone into the Arkgrave fog, bought with Halcyon coin. He wants to know who still has it. | The mines' tallies: the Choir sends far more mana up the spire than any Lullaby could need (chapter 4's skim, guessed early). | His own shards are in the Cathedral organ's pipes. | The tap: Halcyon built taps and called them Anchors, so why trust that these engines are any different? Push it away and every lamp in the world goes out with it. |
| 5 | Isolde Wray, the Enchantress: runes into armour | swamp-01 (behind Features.Enchanter)
|
A Fen-dark binder, taught from Halcyon scraps among the grounded Arks. | Last of the line. With her the council is complete, and she is the one who reads the engines' inscriptions aloud. | Halcyon's script: Ark boarding orders, the engines' plates (chapter 2). | She found the Commander's name on an Ark roll, among the commanders who chose to feed the Lullaby (chapter 4). She has kept it to herself since the night they met. | The guest: in Halcyon's script, ward also means a guest in your keeping. What kind of house lights every lamp at once? |
Voices.
- Nell is quick and warm, and counts in everything. She talks in prices and debts, calls the Commander "partner", and her joke is always that she's owed. "Lantern was my gran's. Never once lit. I'd say you owe me for the oil, but there wasn't any."
- Edric uses few words, in a hammer's rhythm, and explains by fixing things. He names an object by what it's for. "Plate's a promise. Mine broke. Give me your sword."
- Sen is curious, fond, a little clinical. She writes things down mid-conversation and asks to look at your hands. "Everyone's light dims a bit each year. Yours hasn't dimmed at all. Sit still."
- Quint is dry and suspicious, the one sceptic. He weighs everything, trusts receipts over people, and is kind only in private. "I sifted for the Choir for twenty years. Nobody ever asked where the shards went. I'm asking you."
- Isolde is precise and answers with questions. She translates as she goes, and sometimes stops halfway through a word. "The plate says 'keep'. Or 'keeper'. Halcyon used one word for both. That should worry you more than it does."
The Innkeeper (proposed; owner to decide). Sorrel Ashby kept the inn at Tithe and joins at greenvalley-02, between Nell and Edric. Proposal: she keeps her beat where it is, because rest is needed that early, and she is not on the council. She keeps the table the council argues at and never takes a side. The council's quarrel is over whether to keep a guest, and she is the only one of them who has ever actually kept one. Knows: everyone who passes her fire (she pins the bounty board at lanternroad-03). Won't say: she paid the tithe for half the hamlet out of her own colour, and she is thinner than she looks. That stays secret until chapter 3, when she finds her village's colour in a tank. Voice: practical, plain, feeds people before she lets them talk. "Eat. Then argue. That's the rule at my table." For the owner: keep her as a non-council keeper (this proposal), or move her beat after Edric's and give her a seat. If she gets a seat, her chapter 3 beat is her stance: whoever it saves, someone pays.
Not on the council: the caravan crew (caravan.json: Brannoc, Sister Ilsabet, Old Hask, Penny Tallow and the rest, §25.12.1) and every hero. Names are proposals until the owner confirms them. The Camp ids (merchant, smith/blacksmith, alchemist, aetherist, enchantress, innkeeper) never change; putting the names into content is later work (GG-T2210, GG-T2212).
25.0.3 Stations open one at a time (GG-T174)
A new player meets the Camp one system at a time. Every station is always listed on the Camp menu, but a closed one is a dimmed row saying when it arrives (CampUnlocks):
| Station | Opens | Row while closed |
|---|---|---|
| Merchant, Inn, Blacksmith, Alchemist, Enchantress | when their keeper joins (§25.0.1.1) | "Joins after The Tithe Moors II" — read from the join beat in content |
| Summon Circle, Diamond Store | 5 cleared (The Lantern Road II) | "Opens after The Lantern Road II" |
| Bounties, Mercenaries | 6 cleared (The Lantern Road III) | "Opens after …" |
| Crucible | 7 cleared (The Shardfall I) | "Opens after …" |
| Caravan | 11 cleared (The Arkgrave II) | "Opens after …" |