From 31ead88886597eb432644b1b2e37b811ffabe5e5 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Sun, 8 Feb 2026 23:51:02 +0000 Subject: [PATCH] fix(hud): reset Shrapnel counter on non-Shrapnel loot - Non-Shrapnel loot = 1 kill AND reset Shrapnel counter - Prevents overcounting when mob drops Shrapnel + Oil - Shrapnel counted as 1 kill per 2 pieces --- ui/main_window.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/main_window.py b/ui/main_window.py index fb1c03a..3dcef62 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -962,10 +962,13 @@ class MainWindow(QMainWindow): return # Kill tracking heuristic: - # - Non-Shrapnel loot = definite kill - # - Shrapnel: count as kill every 2 Shrapnel (since mobs drop 1-2 Shrapnel) + # - Non-Shrapnel loot = definite kill (reset Shrapnel counter) + # - Shrapnel: count as kill every 2 Shrapnel if item_name != 'Shrapnel': + # Real loot = 1 kill, and reset Shrapnel counter + # (The Shrapnel we collected belongs to this kill) self.hud.update_stats({'kills_add': 1}) + self._shrapnel_count = 0 else: # Track Shrapnel count for this session if not hasattr(self, '_shrapnel_count'):