|
|
@ -89,7 +89,7 @@ public class MobEquipment extends AbstractGameObject { |
|
|
|
if (useSlot) |
|
|
|
if (useSlot) |
|
|
|
writer.putInt(mobEquipment.slot.ordinal()); |
|
|
|
writer.putInt(mobEquipment.slot.ordinal()); |
|
|
|
writer.putInt(0); // Pad
|
|
|
|
writer.putInt(0); // Pad
|
|
|
|
writer.putInt(mobEquipment.itemBase.getUUID()); |
|
|
|
writer.putInt(mobEquipment.templateID); |
|
|
|
writer.putInt(mobEquipment.getObjectType().ordinal()); |
|
|
|
writer.putInt(mobEquipment.getObjectType().ordinal()); |
|
|
|
writer.putInt(mobEquipment.getObjectUUID()); |
|
|
|
writer.putInt(mobEquipment.getObjectUUID()); |
|
|
|
|
|
|
|
|
|
|
@ -156,11 +156,13 @@ public class MobEquipment extends AbstractGameObject { |
|
|
|
int cnt = 0; |
|
|
|
int cnt = 0; |
|
|
|
EffectsBase pre = null; |
|
|
|
EffectsBase pre = null; |
|
|
|
EffectsBase suf = null; |
|
|
|
EffectsBase suf = null; |
|
|
|
|
|
|
|
|
|
|
|
if (mobEquipment.prefix != null) { |
|
|
|
if (mobEquipment.prefix != null) { |
|
|
|
pre = PowersManager.getEffectByIDString(mobEquipment.prefix.getIDString()); |
|
|
|
pre = PowersManager.getEffectByIDString(mobEquipment.prefix.getIDString()); |
|
|
|
if (pre != null) |
|
|
|
if (pre != null) |
|
|
|
cnt++; |
|
|
|
cnt++; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mobEquipment.suffix != null) { |
|
|
|
if (mobEquipment.suffix != null) { |
|
|
|
suf = PowersManager.getEffectByIDString(mobEquipment.suffix.getIDString()); |
|
|
|
suf = PowersManager.getEffectByIDString(mobEquipment.suffix.getIDString()); |
|
|
|
if (suf != null) |
|
|
|
if (suf != null) |
|
|
|