From 32cebbc0014af79c2604c13e4f370e317e291a05 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Mon, 9 Feb 2026 19:28:27 +0000 Subject: [PATCH] debug: add detailed debug info to armor set equip popup - Shows set protection values (Impact, Cut, Stab, etc.) - Shows each piece's assigned total protection - Shows first equipped piece's actual protection value - Helps trace where protection is getting lost --- ui/loadout_manager.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/loadout_manager.py b/ui/loadout_manager.py index 481b692..4cd3fa9 100644 --- a/ui/loadout_manager.py +++ b/ui/loadout_manager.py @@ -1766,6 +1766,17 @@ class LoadoutManagerDialog(QDialog): if armor_set.set_bonus: msg += f"\n\n✨ Set Bonus: {armor_set.set_bonus}" + # DEBUG: Show protection values being assigned + msg += f"\n\n📊 Debug Info:\n" + msg += f"Set Protection: Impact={armor_set.total_protection.impact}, Cut={armor_set.total_protection.cut}, Stab={armor_set.total_protection.stab}\n" + msg += f"Each piece assigned: {armor_set.total_protection.get_total()} total protection\n" + + # Check first equipped piece + first_slot = list(self.slot_widgets.values())[0] + first_piece = first_slot.get_piece() + if first_piece: + msg += f"First piece ({first_piece.name}): prot={first_piece.protection.get_total()}" + QMessageBox.information(self, "Armor Set Equipped", msg) self._update_calculations()