Track the Energy Ice Cream actually conserved #337
No reviewers
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens!337
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/ice-cream-missing-stats-12efbd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ice Cream had no stats at all. It has no activation callback — it only overrides
ShouldPlayerResetEnergy, returning false for its own owner from turn 2 on. Sothe observed unit is the game's own reset-or-carry decision, not a trigger.
Where the number comes from
CombatManager.SetupPlayerTurnasksHook.ShouldPlayerResetEnergyonce perplayer turn setup and then branches: true assigns
Energy = MaxEnergyandthrows the old pool away, false adds
MaxEnergyto whatever is already there.The pool readable on the player while that hook is answering is therefore
exactly what the reset would have discarded, which makes the postfix read
marginal without a counterfactual. Reading after either branch would measure the
refilled total instead.
Credit is gated on the relic instance's own answer rather than the aggregate
result:
Hook.ShouldPlayerResetEnergyshort-circuits on the first listenerreturning false and never reports which one, and it runs for non-owning players
in multiplayer.
Rows
Both averages divide by zero-inclusive held-period denominators counted at the
same decision point, so turns and combats that carried nothing stay in. Turn 1
counts too — it always resets, and the row descriptions say so rather than
quietly excluding it.
Game-shape assumptions
IceCreamStatsTestspins the one-suppressor assumption so a second suppressoradded by a game update surfaces as a test failure rather than as a silently
shared stat. Re-verified against the live
sts2.dllon rebase:IceCreamisstill the only type overriding
ShouldPlayerResetEnergy, and theResetEnergy/AddMaxEnergyToCurrentbranch is unchanged.Notes
ice-cream-relic-run.jsonandSchemaLoadingTestsassertions.failed/skipped,
Hook.ShouldPlayerResetEnergylisted as a patched target.played combat before the patch was installed, so per
docs/sts2-runtime-primer.mdit will not record in that process until a fullgame restart. Not a precaution — the patched-method listing proves
installation, not reach.