|
|
@ -1242,7 +1242,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
//get goldItem cost to sell
|
|
|
|
//get goldItem cost to sell
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cost = sell.getBaseValue(); |
|
|
|
cost = sell.template.item_value; |
|
|
|
|
|
|
|
|
|
|
|
//apply damaged value reduction
|
|
|
|
//apply damaged value reduction
|
|
|
|
float durabilityCurrent = (short) sell.durabilityCurrent; |
|
|
|
float durabilityCurrent = (short) sell.durabilityCurrent; |
|
|
@ -1468,7 +1468,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
//TODO test cost and subtract goldItem
|
|
|
|
//TODO test cost and subtract goldItem
|
|
|
|
|
|
|
|
|
|
|
|
//TODO CHnage this if we ever put NPc city npcs in buildings.
|
|
|
|
//TODO CHnage this if we ever put NPc city npcs in buildings.
|
|
|
|
int cost = buy.getBaseValue(); |
|
|
|
int cost = buy.template.item_value; |
|
|
|
|
|
|
|
|
|
|
|
if (buy.isID() || buy.isCustomValue()) |
|
|
|
if (buy.isID() || buy.isCustomValue()) |
|
|
|
cost = buy.getMagicValue(); |
|
|
|
cost = buy.getMagicValue(); |
|
|
|