Track the average turn Pendulum activated on #303
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!303
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/pendulum-relic-avg-turn-e24aec"
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?
Pendulum already recorded activations, marginal draw attribution, and combat-end
charge buckets. This adds the turn each activation landed on, so the tooltip can
answer how deep into a combat the relic actually pays out rather than only how
often. New
Avg activation turnrow, reusing the label Centennial Puzzle andPael's Eye already use.
Turn number settled against the assembly, not assumed
Reading a turn number during a hand draw is ambiguous on its face -- the counter
could increment after the draw. Checked in
sts2.dllrather than guessed:CombatManager.SwitchSidesincrementsPlayerCombatState.TurnNumberbefore theupcoming player side, and
SetupPlayerTurnitself branches onTurnNumber == 1for first-turn Innate handling immediately after
Hook.ModifyHandDraw. The valueis already the turn being drawn for.
Hook.ModifyHandDrawhas exactly one callsite, so one turn cannot yield two samples. Recorded in the runtime primer.
Denominator choice
Samples count activations rather than combats, matching the Pael's Eye precedent.
A long combat contributes each of its turn-3/6/9 activations; a combat too short
to activate contributes nothing instead of a zero that would drag the average
down. This deliberately differs from the adjacent zero-inclusive per-combat draw
row.
Schema
The two fields are additive, so historic run files still load via missing-field
defaults -- asserted on the existing pendulum fixture, which pre-dates them. New
pendulum-activation-turn-run.jsonfixture plus schema-loading assertions. Theyare observation-era: an upgraded run cannot reconstruct activation turns for
combats already fought, so the row reads 0.0 until Pendulum next activates.
No mod version bump.
Validation
Unit tests were not run, per the repo's user-owned verification rule. Deployed
and hot-reloaded (reload 8,
Core.Initialize complete, 425 classes patched,0 failed/skipped); the user confirmed the new tooltip row live. No restart was
needed --
Pendulum.ModifyHandDrawwas already a patched target, so no newHarmony target was introduced.