From 1db965f92abc5a94c1cf27bf8119080fdf2dd88f Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Mon, 9 Feb 2026 14:39:50 +0000 Subject: [PATCH] fix(ui): update ring selection to use effects dict Fixed AttributeError in _on_ring_selected - NexusRing now uses effects dict instead of effect_type/effect_value fields. --- ui/loadout_manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/loadout_manager.py b/ui/loadout_manager.py index c7f2eb9..d11e794 100644 --- a/ui/loadout_manager.py +++ b/ui/loadout_manager.py @@ -1620,12 +1620,13 @@ class LoadoutManagerDialog(QDialog): def _on_ring_selected(self, ring: NexusRing): """Handle ring selection.""" + effects_str = ", ".join([f"{k}: {v}" for k, v in ring.effects.items()]) if ring.effects else "No effects" QMessageBox.information( self, "Ring Selected", f"Selected: {ring.name}\n" - f"Effect: {ring.effect_type} {ring.effect_value}\n" - f"Slot: Left/Right Ring" + f"Effects: {effects_str}\n" + f"Slot: {ring.slot}" ) def _on_clothing_selected(self, clothing: NexusClothing):