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
This commit is contained in:
parent
343142162f
commit
32cebbc001
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue