Skip to content

fix: show the real mission title for gauntlet/contract runs - #41

Merged
prabu-openclaw merged 2 commits into
mainfrom
fix/gauntlet-mission-title
Jul 24, 2026
Merged

fix: show the real mission title for gauntlet/contract runs#41
prabu-openclaw merged 2 commits into
mainfrom
fix/gauntlet-mission-title

Conversation

@prabu-openclaw

Copy link
Copy Markdown
Collaborator

Found while doing a simulator pass on the new arena backgrounds: every Gauntlet/Contract run rendered "MISSION: Unknown Mission" in the combat objective banner.

Cause

missionTitle in HexwireApp.swift switched over the six hardcoded story mission ids and fell through to a "Unknown Mission" stub for anything else — which is every replay-mode run.

Fix

Both replay modes already build a MultiRoomMission with a real title:

  • Gauntlet → "GAUNTLET — FLOOR \(currentFloor)" (MissionLoader.swift:268)
  • Contracts → generated job titles (ContractService.swift:124)

So the default case now reads RoomManager.shared.currentMission?.title before falling back to the stub. Story-mission titles are untouched.

Also included

  • docs: fix the stale spawn-type count in MissionCertificationMatrix.md (17 → 22, matching knownSpawnTypes).

Validation

Verified on the iPhone 17 simulator — a Gauntlet floor now renders "MISSION: GAUNTLET — FLOOR 1".

Same pass also confirmed the new arena art (#39/#40) is working: all 20 arena_*.png are bundled, and arena_19 (Data Haven) and arena_12 (Cryo Vault) render their own backgrounds with no story-room fallback.

Code-only + docs; no files added/removed → no XcodeGen regeneration needed.

🤖 Generated with Claude Code

Prabu and others added 2 commits July 22, 2026 11:19
The combat HUD derived its title from a hardcoded switch over the six
story mission ids, so every replay-mode run rendered "Unknown Mission".
Gauntlet floors ("GAUNTLET — FLOOR N") and contracts (generated job
titles) already carry a real title on the loaded MultiRoomMission, so
fall back to RoomManager.shared.currentMission?.title before the stub.

Verified in the simulator: a gauntlet floor now reads
"MISSION: GAUNTLET — FLOOR 1".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
knownSpawnTypes has 22 entries, not 17 — the matrix undercounted.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@prabu-openclaw
prabu-openclaw merged commit 0836065 into main Jul 24, 2026
7 checks passed
@prabu-openclaw
prabu-openclaw deleted the fix/gauntlet-mission-title branch July 24, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant