From 5684fb6ce1784b95bcb484b9345d163815037192 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 1 Mar 2024 19:44:35 -0600 Subject: [PATCH] enchant stripping bug --- src/engine/devcmd/cmds/InfoCmd.java | 2 +- src/engine/objects/CharacterItemManager.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index 4a26ad0d..8fd516a6 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -525,7 +525,7 @@ public class InfoCmd extends AbstractDevCmd { ConcurrentHashMap effects = item.getEffects(); for (String name : effects.keySet()) { Effect eff = effects.get(name); - output += eff.getEffectsBase().getIDString(); + output += eff.getEffectsBase().getIDString() + " Duration:" + eff.getDuration(); output += newline; // output += eff.getEffectToken() + (eff.bakedInStat() ? " (baked in)" : "") + newline; } diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 2759ce10..6d74bcd1 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -640,6 +640,7 @@ public class CharacterItemManager { dispatch = Dispatch.borrow(other, utwm); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.PRIMARY); stripTempEnchants(i); + this.updateInventory(); return true; } @@ -1056,6 +1057,7 @@ public class CharacterItemManager { calculateWeights(); stripTempEnchants(i); + this.updateInventory(); return true; } @@ -1201,6 +1203,7 @@ public class CharacterItemManager { calculateWeights(); stripTempEnchants(i); + this.updateInventory(); return true; } @@ -2456,6 +2459,7 @@ public class CharacterItemManager { calculateWeights(); stripTempEnchants(i); + this.updateInventory(); return true; }