Show per-turn combat damage dealt and taken on the top-bar room icon #336

Merged
nelsong6 merged 3 commits from claude/encounter-stats-hover-7ff121 into main 2026-10-02 22:28:07 -07:00
nelsong6 commented 2026-10-02 22:28:02 -07:00 (Migrated from github.com)

Hovering the top-bar room icon now appends a Combat damage page to the game's room tooltip: one row per round with HP damage Dealt and Taken, plus a Total row.

  • Dealt: unblocked HP removed from enemy-side creatures by the tracked player, their pets (Osty), or dealer-less ticks (poison). Blocked and overkill amounts excluded.
  • Taken: unblocked HP the tracked player lost to any damage, self-damage included.
  • Fed from the shared DamageReceivedEntry observer, so combat-ending killing blows (synthesized via Hook.AfterDamageGiven) are included.
  • Buckets by the entry's RoundNumber (player side + enemy side = one row).
  • Shows live during combat and stays on the reward screen until the floor changes.
  • Right-click pins it like the other top-bar counters (lock badge, copy image). The pin target is NTopBarRoomIcon; the game's ordinary tooltip owner is its inner Icon TextureRect.
  • Display-only, never written to the run file. Survives Core hot reload (mid-combat included) via an AppDomain-slot ConditionalWeakTable keyed by the live IRunState.

No new Harmony targets. Tests and live behavioral verification were not run (user-owned).

Hovering the top-bar room icon now appends a **Combat damage** page to the game's room tooltip: one row per round with HP damage **Dealt** and **Taken**, plus a **Total** row. - **Dealt**: unblocked HP removed from enemy-side creatures by the tracked player, their pets (Osty), or dealer-less ticks (poison). Blocked and overkill amounts excluded. - **Taken**: unblocked HP the tracked player lost to any damage, self-damage included. - Fed from the shared `DamageReceivedEntry` observer, so combat-ending killing blows (synthesized via `Hook.AfterDamageGiven`) are included. - Buckets by the entry's `RoundNumber` (player side + enemy side = one row). - Shows live during combat and stays on the reward screen until the floor changes. - Right-click pins it like the other top-bar counters (lock badge, copy image). The pin target is `NTopBarRoomIcon`; the game's ordinary tooltip owner is its inner `Icon` TextureRect. - Display-only, never written to the run file. Survives Core hot reload (mid-combat included) via an AppDomain-slot `ConditionalWeakTable` keyed by the live `IRunState`. No new Harmony targets. Tests and live behavioral verification were not run (user-owned).
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!336
No description provided.