|
|
@ -111,11 +111,16 @@ public class MobEquipment extends AbstractGameObject { |
|
|
|
if(mobEquipment.itemBase.getType().equals(Enum.ItemType.POTION)){ |
|
|
|
if(mobEquipment.itemBase.getType().equals(Enum.ItemType.POTION)){ |
|
|
|
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); |
|
|
|
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); |
|
|
|
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); |
|
|
|
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
if(mobEquipment.itemBase.getName().equals("Prospector")){ |
|
|
|
|
|
|
|
writer.putInt(50); |
|
|
|
|
|
|
|
writer.putInt(50); |
|
|
|
}else { |
|
|
|
}else { |
|
|
|
writer.putInt(mobEquipment.magicValue); |
|
|
|
writer.putInt(mobEquipment.magicValue); |
|
|
|
writer.putInt(mobEquipment.magicValue); |
|
|
|
writer.putInt(mobEquipment.magicValue); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void serializeForClientMsg(MobEquipment mobEquipment, ByteBufferWriter writer) throws SerializationException { |
|
|
|
public static void serializeForClientMsg(MobEquipment mobEquipment, ByteBufferWriter writer) throws SerializationException { |
|
|
|
_serializeForClientMsg(mobEquipment, writer, true); |
|
|
|
_serializeForClientMsg(mobEquipment, writer, true); |
|
|
|