uniform disc dropper times

This commit is contained in:
2024-07-04 19:14:00 -05:00
parent 9bd03c7d43
commit b30f04046d
5 changed files with 25 additions and 6 deletions
+1 -3
View File
@@ -1411,6 +1411,7 @@ public class ClientMessagePump implements NetMsgHandler {
bargain = 0;
break;
case 900:
cost = (int)(Warehouse.getCostForResource(ib.getUUID()) * Warehouse.getSellStackSize(ib.getUUID()) * 0.5f);
bargain = 0;
break;
}
@@ -1419,9 +1420,6 @@ public class ClientMessagePump implements NetMsgHandler {
profit -= 1.0f;
if (profit < 1)
profit = 1;
if(npc.getContractID() == 900){
cost = (int)(Warehouse.getCostForResource(ib.getUUID()) * Warehouse.getSellStackSize(ib.getUUID()) * 0.5f);
}
cost *= profit;
if (gold.getNumOfItems() - cost < 0) {
//dont' have enough goldItem exit!