Browse Source

resource merchant to price resources correctly

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

4
src/engine/objects/Contract.java

@ -200,7 +200,11 @@ public class Contract extends AbstractGameObject { @@ -200,7 +200,11 @@ 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