Skip to content

fix: arenas render only their own art, never a story-room background - #40

Merged
prabu-openclaw merged 1 commit into
mainfrom
fix/arena-no-story-fallback
Jul 21, 2026
Merged

fix: arenas render only their own art, never a story-room background#40
prabu-openclaw merged 1 commit into
mainfrom
fix/arena-no-story-fallback

Conversation

@prabu-openclaw

Copy link
Copy Markdown
Collaborator

Follow-up to #39 (which imported arena_08arena_20). With all 20 arena backgrounds now shipping, this removes the placeholder fallback that let Gauntlet/Contract arena rooms borrow a story-mission room background.

Changes

  • Game/ArenaPool.swift — delete the now-dead placeholderBackgrounds map (arena_NN → MissionXXX_room_Y.png) and update the header comment.
  • Rendering/BattleScene.swift — drop the placeholder branch in roomBackgroundCandidates().

Resolution order for an arena room now

  1. <missionId>_<arenaId>.png — e.g. Gauntlet_arena_08.png (never exists)
  2. <arenaId>.png — e.g. arena_08.png ✅ (always exists; the match)
  3. <missionId>.png — e.g. Gauntlet.png (never exists)

No story-mission room can be selected for an arena. If an arena image were ever missing, the room renders with no background rather than borrowing a mission room.

Notes

  • Code-only change; no files added/removed → no XcodeGen regeneration needed.
  • All 20 arena_*.png verified present and all 20 arena ids verified in Missions/ArenaRooms.json, so no arena falls through.

Validation

  • Local: greps confirm no remaining placeholderBackgrounds references.
  • Tests/builds: deferred to hexwire-ci.

🤖 Generated with Claude Code

Now that arena_01..20.png all ship, drop the placeholder fallback that let
gauntlet/contract arena rooms borrow a tonally-close story-mission room
background. Remove ArenaPool.placeholderBackgrounds and the fallback branch
in BattleScene.roomBackgroundCandidates(); an arena now resolves only
"<arenaId>.png" (and the never-present "<missionId>.png"), so a missing
arena image renders no background rather than a mission room.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@prabu-openclaw
prabu-openclaw merged commit 95c3c5b into main Jul 21, 2026
7 checks passed
@prabu-openclaw
prabu-openclaw deleted the fix/arena-no-story-fallback branch July 21, 2026 15:36
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