From c54b0470fa731b3bf2f2f3de1a56c254e59a7402 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 16 Mar 2024 08:33:21 -0400 Subject: [PATCH] More itembase refactor --- src/engine/objects/MobEquipment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/MobEquipment.java b/src/engine/objects/MobEquipment.java index 8b39b4a7..5cdf9a21 100644 --- a/src/engine/objects/MobEquipment.java +++ b/src/engine/objects/MobEquipment.java @@ -89,7 +89,7 @@ public class MobEquipment extends AbstractGameObject { if (useSlot) writer.putInt(mobEquipment.slot.ordinal()); writer.putInt(0); // Pad - writer.putInt(mobEquipment.itemBase.getUUID()); + writer.putInt(mobEquipment.templateID); writer.putInt(mobEquipment.getObjectType().ordinal()); writer.putInt(mobEquipment.getObjectUUID()); @@ -156,11 +156,13 @@ public class MobEquipment extends AbstractGameObject { int cnt = 0; EffectsBase pre = null; EffectsBase suf = null; + if (mobEquipment.prefix != null) { pre = PowersManager.getEffectByIDString(mobEquipment.prefix.getIDString()); if (pre != null) cnt++; } + if (mobEquipment.suffix != null) { suf = PowersManager.getEffectByIDString(mobEquipment.suffix.getIDString()); if (suf != null)