Surface Make It So trigger progress and trigger count #56

Closed
opened 2026-04-22 20:38:11 -07:00 by nelsong6 · 7 comments
nelsong6 commented 2026-04-22 20:38:11 -07:00 (Migrated from github.com)

## Goal

Surface the two directly useful Make It So stats on the card:

  • how close it is to triggering right now
  • how many times it has successfully triggered this run

In practice, that means the card should clearly show:

  • the live skill counter progress, e.g. 2/3
  • a total successful trigger count for the card

What this issue is not

This issue is no longer about proving per-instance summon attribution through live verification.

  • Do not optimize this issue around summon-to-hand attribution as the primary value.
  • Do not broaden this issue to cover Pen Nib or a shared trigger-family abstraction.
  • The broader trigger-progress investigation now lives in #62.

Desired card-facing behavior

For Make It So specifically:

  • show current progress toward the trigger
  • show how many times the trigger has happened
  • prefer direct, player-legible wording over implementation-shaped wording

If the current implementation already covers part of this behavior, tighten the surfaced wording/tests so the card reads like the intended product behavior.

Acceptance criteria

  • Make It So shows its current progress toward triggering in the on-card stats/tooltip.
  • Make It So shows a total successful trigger count in the fuller stats view.
  • The surfaced wording reflects the trigger concept directly, not a more indirect implementation detail.
  • Focused tests are added or updated for the surfaced Make It So stat rows.
  • If wording, schema notes, or fixtures need to change to preserve the intended behavior, update them in the same PR.
  • Create a branch, commit, push, and open a PR.
  • Comment on this issue with the PR link and a brief summary of what changed.
  • #41 is the related inventory issue.
  • #62 captures the broader investigation into shared trigger-progress concepts across mechanics.
## Goal Surface the two directly useful Make It So stats on the card: - how close it is to triggering right now - how many times it has successfully triggered this run In practice, that means the card should clearly show: - the live skill counter progress, e.g. `2/3` - a total successful trigger count for the card ## What this issue is not This issue is no longer about proving per-instance summon attribution through live verification. - Do not optimize this issue around summon-to-hand attribution as the primary value. - Do not broaden this issue to cover Pen Nib or a shared trigger-family abstraction. - The broader trigger-progress investigation now lives in #62. ## Desired card-facing behavior For **Make It So** specifically: - show current progress toward the trigger - show how many times the trigger has happened - prefer direct, player-legible wording over implementation-shaped wording If the current implementation already covers part of this behavior, tighten the surfaced wording/tests so the card reads like the intended product behavior. ## Acceptance criteria - Make It So shows its current progress toward triggering in the on-card stats/tooltip. - Make It So shows a total successful trigger count in the fuller stats view. - The surfaced wording reflects the trigger concept directly, not a more indirect implementation detail. - Focused tests are added or updated for the surfaced Make It So stat rows. - If wording, schema notes, or fixtures need to change to preserve the intended behavior, update them in the same PR. - Create a branch, commit, push, and open a PR. - Comment on this issue with the PR link and a brief summary of what changed. ## Related context - #41 is the related inventory issue. - #62 captures the broader investigation into shared trigger-progress concepts across mechanics.
github-actions[bot] commented 2026-04-23 12:03:58 -07:00 (Migrated from github.com)

Done — PR #64

What changed:

Wording — trigger-concept language instead of implementation names

  • 'Skill counter' → 'Trigger progress': names what the player actually cares about, not the internal game mechanic
  • 'Summoned to hand' → 'Times triggered': names the observable outcome, not the implementation path

Trigger progress now shows in the compact (hand-hover) view
Previously, the trigger progress row only appeared in the full deck-view tooltip. The compact view shown when hovering Make It So in hand during combat showed nothing Make It So-specific. That is exactly when you want to know how close you are to triggering this turn. Added the compact call in AppendCompactBody.

'Times triggered' stays full-view only (fuller stats view, as per acceptance criteria).

Tests updated

  • Renamed 3 existing tests to match the new labels
  • Added AppendMakeItSoStats_CompactViewRendersTriggerProgress to cover the new compact-mode row

All 72 tests pass (71 pre-existing + 1 new).

## Done — PR #64 What changed: **Wording — trigger-concept language instead of implementation names** - 'Skill counter' → 'Trigger progress': names what the player actually cares about, not the internal game mechanic - 'Summoned to hand' → 'Times triggered': names the observable outcome, not the implementation path **Trigger progress now shows in the compact (hand-hover) view** Previously, the trigger progress row only appeared in the full deck-view tooltip. The compact view shown when hovering Make It So in hand during combat showed nothing Make It So-specific. That is exactly when you want to know how close you are to triggering this turn. Added the compact call in AppendCompactBody. 'Times triggered' stays full-view only (fuller stats view, as per acceptance criteria). **Tests updated** - Renamed 3 existing tests to match the new labels - Added AppendMakeItSoStats_CompactViewRendersTriggerProgress to cover the new compact-mode row All 72 tests pass (71 pre-existing + 1 new).
nelsong6 commented 2026-04-23 21:27:52 -07:00 (Migrated from github.com)

Preparation note as of April 23, 2026:

  • PR #64 was closed unmerged, so issue #56 is still open work.
  • The issue-agent label is intentionally left in place.
  • No issue-agent run is being dispatched yet.

This issue should be treated as available for a future manual issue-agent run unless new work lands separately in main first.

Preparation note as of April 23, 2026: - PR #64 was closed unmerged, so issue #56 is still open work. - The `issue-agent` label is intentionally left in place. - No issue-agent run is being dispatched yet. This issue should be treated as available for a future manual issue-agent run unless new work lands separately in `main` first.
github-actions[bot] commented 2026-04-23 23:01:07 -07:00 (Migrated from github.com)

What was done

PR #67 implements the changes for issue #56: Surface Make It So trigger progress and trigger count.

Code changes

Core/Patches/CardHoverTooltipPatch.cs

  1. Label rename — "Skill counter" → "Trigger progress": names what the player actually cares about (how close the card is to firing this turn), not the internal mechanic name.

  2. Label rename — "Summoned to hand" → "Times triggered": names the observable outcome, not the internal attribution path through hand-summoning.

  3. Compact (hand-hover) view now shows trigger progress: Previously the compact view shown when hovering Make It So in hand during combat showed nothing Make It So-specific. Added AppendMakeItSoStats(sb, cardModel, agg, compact: true) call in AppendCompactBody immediately after the Played/Drawn row — trigger progress is the primary mid-combat question for this card.

  4. "Times triggered" stays full-view only (as per acceptance criteria).

Tests/CardUtilityStats.Core.Tests/MakeItSoTooltipTests.cs

  • Renamed AppendMakeItSoStats_RendersLiveSkillCounter → AppendMakeItSoStats_RendersTriggerProgress (checks "Trigger progress" label)
  • Added AppendMakeItSoStats_CompactViewRendersTriggerProgress (proves compact view now shows trigger progress)
  • Renamed AppendMakeItSoStats_FullViewRendersSummonedCount → AppendMakeItSoStats_FullViewRendersTimesTriggered (checks "Times triggered" label)
  • Renamed AppendMakeItSoStats_CompactViewSkipsSummonedCount → AppendMakeItSoStats_CompactViewSkipsTimesTriggered (proves compact skips trigger history)

All 72 tests pass (71 pre-existing + 1 new).

Test case summary

Tests exercise the internal AppendMakeItSoStats(sb, agg, compact, currentCounter, threshold) overload directly via reflection:

Test Setup Assertion
RendersTriggerProgress compact=false, counter=2, threshold=3 "Trigger progress" label and [b]2/3[/b] in output
CompactViewRendersTriggerProgress compact=true, counter=1, threshold=3 "Trigger progress" visible in compact (was missing before)
FullViewRendersTimesTriggered compact=false, TimesSummonedToHand=2 "Times triggered" label and [b]2[/b] in full view
CompactViewSkipsTimesTriggered compact=true, TimesSummonedToHand=2 "Times triggered" does NOT appear in compact

Live screenshot validation — blocked (tooling gap)

STS2 was confirmed running (SlayTheSpire2.exe active, bridge listening on port 21337). However, the sts2-modding MCP server requires the local user's Python installation at C:\Users\nelsonlaptopuser\AppData\Local\Programs\Python\Python312\ which is not accessible from the GitHub Actions runner service account. MCP could not be invoked to capture in-game tooltip screenshots.

Blocker: MCP Python venv not accessible from runner service account context. Screenshot artifacts could not be captured. A human validation pass with the mod loaded on the laptop would confirm the tooltip behavior.

PR: https://github.com/nelsong6/card-utility-stats/pull/67

## What was done PR #67 implements the changes for issue #56: Surface Make It So trigger progress and trigger count. ### Code changes **`Core/Patches/CardHoverTooltipPatch.cs`** 1. Label rename — "Skill counter" → "Trigger progress": names what the player actually cares about (how close the card is to firing this turn), not the internal mechanic name. 2. Label rename — "Summoned to hand" → "Times triggered": names the observable outcome, not the internal attribution path through hand-summoning. 3. Compact (hand-hover) view now shows trigger progress: Previously the compact view shown when hovering Make It So in hand during combat showed nothing Make It So-specific. Added `AppendMakeItSoStats(sb, cardModel, agg, compact: true)` call in `AppendCompactBody` immediately after the Played/Drawn row — trigger progress is the primary mid-combat question for this card. 4. "Times triggered" stays full-view only (as per acceptance criteria). **`Tests/CardUtilityStats.Core.Tests/MakeItSoTooltipTests.cs`** - Renamed `AppendMakeItSoStats_RendersLiveSkillCounter` → `AppendMakeItSoStats_RendersTriggerProgress` (checks "Trigger progress" label) - Added `AppendMakeItSoStats_CompactViewRendersTriggerProgress` (proves compact view now shows trigger progress) - Renamed `AppendMakeItSoStats_FullViewRendersSummonedCount` → `AppendMakeItSoStats_FullViewRendersTimesTriggered` (checks "Times triggered" label) - Renamed `AppendMakeItSoStats_CompactViewSkipsSummonedCount` → `AppendMakeItSoStats_CompactViewSkipsTimesTriggered` (proves compact skips trigger history) All 72 tests pass (71 pre-existing + 1 new). ### Test case summary Tests exercise the internal `AppendMakeItSoStats(sb, agg, compact, currentCounter, threshold)` overload directly via reflection: | Test | Setup | Assertion | |------|-------|-----------| | RendersTriggerProgress | compact=false, counter=2, threshold=3 | "Trigger progress" label and `[b]2/3[/b]` in output | | CompactViewRendersTriggerProgress | compact=true, counter=1, threshold=3 | "Trigger progress" visible in compact (was missing before) | | FullViewRendersTimesTriggered | compact=false, TimesSummonedToHand=2 | "Times triggered" label and `[b]2[/b]` in full view | | CompactViewSkipsTimesTriggered | compact=true, TimesSummonedToHand=2 | "Times triggered" does NOT appear in compact | ### Live screenshot validation — blocked (tooling gap) STS2 was confirmed running (SlayTheSpire2.exe active, bridge listening on port 21337). However, the sts2-modding MCP server requires the local user's Python installation at `C:\Users\nelsonlaptopuser\AppData\Local\Programs\Python\Python312\` which is not accessible from the GitHub Actions runner service account. MCP could not be invoked to capture in-game tooltip screenshots. **Blocker**: MCP Python venv not accessible from runner service account context. Screenshot artifacts could not be captured. A human validation pass with the mod loaded on the laptop would confirm the tooltip behavior. PR: https://github.com/nelsong6/card-utility-stats/pull/67
nelsong6 commented 2026-04-25 00:18:11 -07:00 (Migrated from github.com)

Stopping the current issue-agent attempt for manual diagnosis. The runner plumbing is now healthy through STS2 bridge readiness and local Anthropic key loading; the active investigation is why the agent test build is resolving stale/wrong STS2 assemblies.

Stopping the current issue-agent attempt for manual diagnosis. The runner plumbing is now healthy through STS2 bridge readiness and local Anthropic key loading; the active investigation is why the agent test build is resolving stale/wrong STS2 assemblies.
nelsong6 commented 2026-04-25 00:27:06 -07:00 (Migrated from github.com)

Issue-agent validation note from the last runner diagnosis:

Use this known-good validation path on the Windows issue-agent runner:

$sts2DataDir = "D:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64"

dotnet build "Tests\SpireLens.Core.Tests\SpireLens.Core.Tests.csproj" `
  -c Debug `
  "-p:Sts2DataDir=$sts2DataDir"

dotnet test "Tests\SpireLens.Core.Tests\SpireLens.Core.Tests.csproj" `
  -c Debug `
  --no-build `
  "-p:Sts2DataDir=$sts2DataDir"

Do not use custom BaseOutputPath, BaseIntermediateOutputPath, OutputPath, or IntermediateOutputPath for this repo while validating this issue. The last run showed those custom isolated output paths perturb STS2/publicized assembly and test reference resolution; the normal build/test path above passed all 72 tests.

Issue-agent validation note from the last runner diagnosis: Use this known-good validation path on the Windows issue-agent runner: ```powershell $sts2DataDir = "D:\SteamLibrary\steamapps\common\Slay the Spire 2\data_sts2_windows_x86_64" dotnet build "Tests\SpireLens.Core.Tests\SpireLens.Core.Tests.csproj" ` -c Debug ` "-p:Sts2DataDir=$sts2DataDir" dotnet test "Tests\SpireLens.Core.Tests\SpireLens.Core.Tests.csproj" ` -c Debug ` --no-build ` "-p:Sts2DataDir=$sts2DataDir" ``` Do not use custom `BaseOutputPath`, `BaseIntermediateOutputPath`, `OutputPath`, or `IntermediateOutputPath` for this repo while validating this issue. The last run showed those custom isolated output paths perturb STS2/publicized assembly and test reference resolution; the normal build/test path above passed all 72 tests.
nelsong6 commented 2026-04-26 20:25:15 -07:00 (Migrated from github.com)

Closed stale PR #67 because it lacked acceptable target-visible STS2 screenshot evidence. This issue remains labeled issue-agent so it can be run again through the split issue-agent workflow.

Closed stale PR #67 because it lacked acceptable target-visible STS2 screenshot evidence. This issue remains labeled `issue-agent` so it can be run again through the split issue-agent workflow.
nelsong6 commented 2026-07-05 15:45:47 -07:00 (Migrated from github.com)

Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.

Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.
Sign in to join this conversation.
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#56
No description provided.