enchant stripping bug

This commit is contained in:
2024-03-01 19:44:35 -06:00
parent feb23e63fe
commit 5684fb6ce1
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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;
}
@@ -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;
}