Count Mercury Hourglass activations per trigger, not per combat #322

Merged
nelsong6 merged 1 commit from claude/mercury-hourless-activation-metrics-869c45 into main 2026-08-12 20:53:45 -07:00
nelsong6 commented 2026-08-12 20:53:40 -07:00 (Migrated from github.com)

Mercury Hourglass's activation row was really a combat count — ArmMercuryHourglassAttribution clamped Activations to 1 for each pending combat, so its tooltip hint ("the number of combats in which this relic activated") disagreed with the shared activation vocabulary every other relic uses.

Changes

  • Arm increments a raw activation on every owner turn-start trigger.
  • New persisted MercuryHourglassCombats: a zero-inclusive held-combat denominator counted once per combat from the shared held-combat baseline pass, matching the Screaming Flagon / Forgotten Soul pattern.
  • Tooltip now reads: activations (raw triggers), the damage rows, avg damage per combat, and avg activations per combat.
  • Schema fixture mercury-hourglass-relic-run.json + SchemaLoadingTests assertions + fixture README entry.
  • Corrected the stale counting rule in docs/sts2-runtime-primer.md.

Notes

  • Additive field, so old runs load fine — but they carry activations as a combat count and mercury_hourglass_combats: 0, so both new averages read 0 until the relic is held through a fresh combat.
  • No new Harmony targets; hot reload confirmed (432 classes patched, 0 failed), no game restart required.
Mercury Hourglass's activation row was really a combat count — `ArmMercuryHourglassAttribution` clamped `Activations` to 1 for each pending combat, so its tooltip hint ("the number of combats in which this relic activated") disagreed with the shared activation vocabulary every other relic uses. ## Changes - Arm increments a raw activation on every owner turn-start trigger. - New persisted `MercuryHourglassCombats`: a zero-inclusive held-combat denominator counted once per combat from the shared held-combat baseline pass, matching the Screaming Flagon / Forgotten Soul pattern. - Tooltip now reads: activations (raw triggers), the damage rows, **avg damage per combat**, and **avg activations per combat**. - Schema fixture `mercury-hourglass-relic-run.json` + `SchemaLoadingTests` assertions + fixture README entry. - Corrected the stale counting rule in `docs/sts2-runtime-primer.md`. ## Notes - Additive field, so old runs load fine — but they carry `activations` as a combat count and `mercury_hourglass_combats: 0`, so both new averages read 0 until the relic is held through a fresh combat. - No new Harmony targets; hot reload confirmed (432 classes patched, 0 failed), no game restart required.
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!322
No description provided.