|
|
@ -160,6 +160,9 @@ public class Item extends AbstractWorldObject { |
|
|
|
this.dateToUpgrade = rs.getLong("item_dateToUpgrade"); |
|
|
|
this.dateToUpgrade = rs.getLong("item_dateToUpgrade"); |
|
|
|
this.value = rs.getInt("item_value"); |
|
|
|
this.value = rs.getInt("item_value"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.value == 0) |
|
|
|
|
|
|
|
this.value = this.template.item_value; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void _serializeForClientMsg(Item item, ByteBufferWriter writer) |
|
|
|
public static void _serializeForClientMsg(Item item, ByteBufferWriter writer) |
|
|
@ -245,7 +248,7 @@ public class Item extends AbstractWorldObject { |
|
|
|
} else |
|
|
|
} else |
|
|
|
writer.putInt(item.numberOfItems); // Amount of gold
|
|
|
|
writer.putInt(item.numberOfItems); // Amount of gold
|
|
|
|
} else |
|
|
|
} else |
|
|
|
writer.putInt(item.template.item_value); |
|
|
|
writer.putInt(item.value); |
|
|
|
|
|
|
|
|
|
|
|
writer.putInt(item.getValue()); |
|
|
|
writer.putInt(item.getValue()); |
|
|
|
|
|
|
|
|
|
|
|