Browse Source

resource merchant to sell items correctly

lakebane-master
FatBoy-DOTC 7 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 { @@ -198,21 +198,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;
}else {
me.magicValue = Warehouse.getCostForResource(me.getItemBase().getUUID()) * Warehouse.getSellStackSize(me.getItemBase().getUUID());
}
for (MobEquipment me : this.sellInventory) {
me.magicValue = (Warehouse.getSellStackSize(me.getItemBase().getUUID()) * Warehouse.getCostForResource(me.getItemBase().getUUID()));
}
}
if(this.getObjectUUID() == 1202)
for(MobEquipment me : this.sellInventory){
me.magicValue = ItemBase.getPriceCeilingForRune(me.getItemBase().getUUID());
}
return this.sellInventory;
}

Loading…
Cancel
Save