Browse Source

resource merchant to price resources correctly

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

4
src/engine/objects/Contract.java

@ -200,9 +200,13 @@ public class Contract extends AbstractGameObject { @@ -200,9 +200,13 @@ public class Contract extends AbstractGameObject {
public ArrayList<MobEquipment> getSellInventory() {
if(this.getObjectUUID() == 900){
for (MobEquipment me : this.sellInventory) {
if(me.getItemBase().getUUID() == 1705032) {
me.magicValue = 1000000; //elan stones
}else{
me.magicValue = (Warehouse.getSellStackSize(me.getItemBase().getUUID()) * Warehouse.getCostForResource(me.getItemBase().getUUID()));
}
}
}
return this.sellInventory;
}

Loading…
Cancel
Save