Browse Source

resource pricing fix

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
eedf96cc31
  1. 4
      src/engine/objects/Contract.java

4
src/engine/objects/Contract.java

@ -207,10 +207,10 @@ public class Contract extends AbstractGameObject {
if(this.getObjectUUID() == 900){ //resource merchant if(this.getObjectUUID() == 900){ //resource merchant
for(MobEquipment me : this.sellInventory){ for(MobEquipment me : this.sellInventory){
if(me.getItemBase().getType().equals(Enum.ItemType.RESOURCE)){ if(me.getItemBase().getType().equals(Enum.ItemType.RESOURCE)){
int amountResource = 1500000 / me.getItemBase().getBaseValue(); int amountResource = Warehouse.getSellStackSize(me.getItemBase().getUUID());
me.magicValue = amountResource * me.getItemBase().getBaseValue(); me.magicValue = amountResource * me.getItemBase().getBaseValue();
} else{ } else{
me.magicValue = 50000; me.magicValue = 100000;
} }
} }
} }

Loading…
Cancel
Save