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 { @@ -525,7 +525,7 @@ public class InfoCmd extends AbstractDevCmd {
ConcurrentHashMap<String, Effect> 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;
}

4
src/engine/objects/CharacterItemManager.java

@ -640,6 +640,7 @@ public class CharacterItemManager { @@ -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 { @@ -1056,6 +1057,7 @@ public class CharacterItemManager {
calculateWeights();
stripTempEnchants(i);
this.updateInventory();
return true;
}
@ -1201,6 +1203,7 @@ public class CharacterItemManager { @@ -1201,6 +1203,7 @@ public class CharacterItemManager {
calculateWeights();
stripTempEnchants(i);
this.updateInventory();
return true;
}
@ -2456,6 +2459,7 @@ public class CharacterItemManager { @@ -2456,6 +2459,7 @@ public class CharacterItemManager {
calculateWeights();
stripTempEnchants(i);
this.updateInventory();
return true;
}

Loading…
Cancel
Save