Browse Source

enchant stripping bug

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
5684fb6ce1
  1. 2
      src/engine/devcmd/cmds/InfoCmd.java
  2. 4
      src/engine/objects/CharacterItemManager.java

2
src/engine/devcmd/cmds/InfoCmd.java

@ -525,7 +525,7 @@ public class InfoCmd extends AbstractDevCmd {
ConcurrentHashMap<String, Effect> effects = item.getEffects(); ConcurrentHashMap<String, Effect> effects = item.getEffects();
for (String name : effects.keySet()) { for (String name : effects.keySet()) {
Effect eff = effects.get(name); Effect eff = effects.get(name);
output += eff.getEffectsBase().getIDString(); output += eff.getEffectsBase().getIDString() + " Duration:" + eff.getDuration();
output += newline; output += newline;
// output += eff.getEffectToken() + (eff.bakedInStat() ? " (baked in)" : "") + newline; // output += eff.getEffectToken() + (eff.bakedInStat() ? " (baked in)" : "") + newline;
} }

4
src/engine/objects/CharacterItemManager.java

@ -640,6 +640,7 @@ public class CharacterItemManager {
dispatch = Dispatch.borrow(other, utwm); dispatch = Dispatch.borrow(other, utwm);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.PRIMARY); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.PRIMARY);
stripTempEnchants(i); stripTempEnchants(i);
this.updateInventory();
return true; return true;
} }
@ -1056,6 +1057,7 @@ public class CharacterItemManager {
calculateWeights(); calculateWeights();
stripTempEnchants(i); stripTempEnchants(i);
this.updateInventory();
return true; return true;
} }
@ -1201,6 +1203,7 @@ public class CharacterItemManager {
calculateWeights(); calculateWeights();
stripTempEnchants(i); stripTempEnchants(i);
this.updateInventory();
return true; return true;
} }
@ -2456,6 +2459,7 @@ public class CharacterItemManager {
calculateWeights(); calculateWeights();
stripTempEnchants(i); stripTempEnchants(i);
this.updateInventory();
return true; return true;
} }

Loading…
Cancel
Save