Add Bag of Marbles relic stats #139

Merged
nelsong6 merged 2 commits from codex/bag-of-marbles-relic-stats into main 2026-04-27 20:36:31 -07:00
nelsong6 commented 2026-04-27 19:42:04 -07:00 (Migrated from github.com)

Summary

Picks up the implementation artifact from failed issue-agent run https://github.com/nelsong6/spirelens/actions/runs/25029449001 for #134.

  • adds schema v15 RelicAggregates with a first RelicAggregate for Bag of Marbles
  • records Bag of Marbles combat-start applications via BagOfMarbles.BeforeSideTurnStart
  • promotes pending relic stats at combat end and exposes committed + pending stats for tooltip reads
  • adds a Bag of Marbles relic hover tooltip using the existing SpireLens stats panel
  • adds v15 schema fixture and focused relic aggregate tests

I also fixed two handoff issues from the agent run:

  • restored the untracked new files that were omitted from the packaged git diff artifact
  • changed the Bag of Marbles Harmony postfix to match the game method's ICombatState parameter instead of the concrete CombatState

Refresh

  • rebased onto current main after #140 hardened issue-agent scenario validation
  • no conflicts from the rebase

Screenshots

Combat state with Bag of Marbles owned and Vulnerable applied:

Bag of Marbles combat state

Relic tooltip showing the SpireLens stats row:

Bag of Marbles tooltip

Verification

  • dotnet test Tests\SpireLens.Core.Tests\SpireLens.Core.Tests.csproj -c Debug "-p:Sts2DataDir=D:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64"
    • Passed: 78
    • Existing nullable warnings only
  • local MCP scenario validation with STRIKE_IRONCLAD, DEFEND_IRONCLAD, BASH, BAG_OF_MARBLES, and FUZZY_WURM_CRAWLER_WEAK
    • get_game_state confirmed BAG_OF_MARBLES in player relics
    • get_game_state confirmed Fuzzy Wurm Crawler had 1 Vulnerable
    • show_relic_tooltip(surface="player_relic_bar", relic_id="BAG_OF_MARBLES") succeeded
    • screenshots captured through capture_screenshot
## Summary Picks up the implementation artifact from failed issue-agent run https://github.com/nelsong6/spirelens/actions/runs/25029449001 for #134. - adds schema v15 `RelicAggregates` with a first `RelicAggregate` for Bag of Marbles - records Bag of Marbles combat-start applications via `BagOfMarbles.BeforeSideTurnStart` - promotes pending relic stats at combat end and exposes committed + pending stats for tooltip reads - adds a Bag of Marbles relic hover tooltip using the existing SpireLens stats panel - adds v15 schema fixture and focused relic aggregate tests I also fixed two handoff issues from the agent run: - restored the untracked new files that were omitted from the packaged `git diff` artifact - changed the Bag of Marbles Harmony postfix to match the game method's `ICombatState` parameter instead of the concrete `CombatState` ## Refresh - rebased onto current `main` after #140 hardened issue-agent scenario validation - no conflicts from the rebase ## Screenshots Combat state with Bag of Marbles owned and Vulnerable applied: ![Bag of Marbles combat state](https://raw.githubusercontent.com/nelsong6/spirelens/68ad3209d780aff279ff78b0e9d8c4938dc7740b/docs/validation/pr-139/bag-marbles-combat-state.png) Relic tooltip showing the SpireLens stats row: ![Bag of Marbles tooltip](https://raw.githubusercontent.com/nelsong6/spirelens/68ad3209d780aff279ff78b0e9d8c4938dc7740b/docs/validation/pr-139/bag-marbles-tooltip.png) ## Verification - `dotnet test Tests\SpireLens.Core.Tests\SpireLens.Core.Tests.csproj -c Debug "-p:Sts2DataDir=D:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64"` - Passed: 78 - Existing nullable warnings only - local MCP scenario validation with `STRIKE_IRONCLAD`, `DEFEND_IRONCLAD`, `BASH`, `BAG_OF_MARBLES`, and `FUZZY_WURM_CRAWLER_WEAK` - `get_game_state` confirmed `BAG_OF_MARBLES` in player relics - `get_game_state` confirmed Fuzzy Wurm Crawler had 1 Vulnerable - `show_relic_tooltip(surface="player_relic_bar", relic_id="BAG_OF_MARBLES")` succeeded - screenshots captured through `capture_screenshot`
nelsong6 commented 2026-04-27 20:30:25 -07:00 (Migrated from github.com)

Added fresh local validation screenshots from the hardened scenario path.

Combat state with Bag of Marbles owned and Vulnerable applied:

Bag of Marbles combat state

Relic tooltip showing the SpireLens stats row:

Bag of Marbles tooltip

Added fresh local validation screenshots from the hardened scenario path. Combat state with Bag of Marbles owned and Vulnerable applied: ![Bag of Marbles combat state](https://raw.githubusercontent.com/nelsong6/spirelens/68ad3209d780aff279ff78b0e9d8c4938dc7740b/docs/validation/pr-139/bag-marbles-combat-state.png) Relic tooltip showing the SpireLens stats row: ![Bag of Marbles tooltip](https://raw.githubusercontent.com/nelsong6/spirelens/68ad3209d780aff279ff78b0e9d8c4938dc7740b/docs/validation/pr-139/bag-marbles-tooltip.png)
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!139
No description provided.