[P1] Align relic patches with the game's real trigger gates (verify against decompile) #256
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#256
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Priority: P1. From the 2026-07-02 audit. All findings here are UNVERIFIED (verification cap) — each fix MUST cite the decompiled game gate before it is accepted. This is a standing "observed outcome, not intended modifier; mirror the game's real gate" cleanup.
Many relic patches re-implement the game's trigger gate incorrectly and record for triggers that never happened:
!IsPlayerinstead of theShouldOwnerDeathTriggerFatalpredicate → inflates minion/segment kills and phantom healing (BookRepairKnifeAfterDiedToDoomPatch.cs:35).CardRewardsAffectedincrements per option, and even on unchanged pools (PrismaticGemStatsPatch.cs:55) → guard on!ReferenceEquals(options, __result).RoundNumber == 1 && IsAliveinstead ofTurnNumber <= 1 && HittableEnemies, double-counting on extra turns.+3rather than observed draws (RunTracker.csdraw path).CardPlacedOnTopPatch.cs:22).GlamEnchantPlayCountPatch.cs:15).For each: read the decompiled relic/method, mirror its real gate, and count actual applications rather than a modifier's return value. Add or update the per-relic test with the gate condition pinned.
Process guardrail: the issue template for relic-stat fixes should require a decompile citation before merge, since this whole family stems from re-implementing game gates from the card text instead of the code.
Uncapped audit pass — additional confirmed relic-gate items + the ADR angle:
CardPlacedOnTopPatch.cs:22patches only the single-card overload, so PhotonCut/Glimmer top-placements are never counted (#57, HIGH) — retarget the innermostIEnumerable<CardModel>Add overload.GlamEnchantPlayCountPatch.cs:15fires on every hover/description render, inflatingTimesReplayExtraPlanned(#66, HIGH) — recover insideHookModifyCardPlayCountPatch.PlayerGainEnergyPatch.cs:34double-attributes Gremlin Horn energy+draws to both relic and the resolving card (#17, HIGH) — resolve via the AttributionWindow registry (#250).Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.