From 3473b2c592bf3c248f475827e691d59b757e513b Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Tue, 10 Feb 2026 13:35:16 +0000 Subject: [PATCH] fix: add missing healing_done field to HUDStats - Add healing_done: Decimal field to track HP healed - Add to to_dict() for serialization - Fixes AttributeError in on_heal_event handler --- ui/hud_overlay_clean.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/hud_overlay_clean.py b/ui/hud_overlay_clean.py index ffd9ef2..4f5013b 100644 --- a/ui/hud_overlay_clean.py +++ b/ui/hud_overlay_clean.py @@ -105,6 +105,7 @@ class HUDStats: # Damage stats (optional) damage_dealt: Decimal = Decimal('0.0') damage_taken: Decimal = Decimal('0.0') + healing_done: Decimal = Decimal('0.0') # HP healed # Shrapnel (optional) shrapnel_total: Decimal = Decimal('0.0') @@ -153,6 +154,7 @@ class HUDStats: 'hofs_count': self.hofs_count, 'damage_dealt': str(self.damage_dealt), 'damage_taken': str(self.damage_taken), + 'healing_done': str(self.healing_done), 'shrapnel_total': str(self.shrapnel_total), 'loot_other': str(self.loot_other), 'highest_loot': str(self.highest_loot),