Browse Source

resource merchant to sell items correctly

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

14
src/engine/objects/Contract.java

@ -198,21 +198,11 @@ public class Contract extends AbstractGameObject {
} }
public ArrayList<MobEquipment> getSellInventory() { public ArrayList<MobEquipment> getSellInventory() {
if(this.getObjectUUID() == 900){ if(this.getObjectUUID() == 900){
for(MobEquipment me : this.sellInventory){ for (MobEquipment me : this.sellInventory) {
if(me.getItemBase().getUUID() == 1705032){ me.magicValue = (Warehouse.getSellStackSize(me.getItemBase().getUUID()) * Warehouse.getCostForResource(me.getItemBase().getUUID()));
me.magicValue = 1000000;
}else {
me.magicValue = Warehouse.getCostForResource(me.getItemBase().getUUID()) * Warehouse.getSellStackSize(me.getItemBase().getUUID());
}
} }
} }
if(this.getObjectUUID() == 1202)
for(MobEquipment me : this.sellInventory){
me.magicValue = ItemBase.getPriceCeilingForRune(me.getItemBase().getUUID());
}
return this.sellInventory; return this.sellInventory;
} }

Loading…
Cancel
Save