|
|
@ -198,25 +198,10 @@ public class Contract extends AbstractGameObject { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ArrayList<MobEquipment> getSellInventory() { |
|
|
|
public ArrayList<MobEquipment> getSellInventory() { |
|
|
|
if(this.getObjectUUID() == 900){ |
|
|
|
|
|
|
|
ArrayList<MobEquipment> returnList = new ArrayList<>(); |
|
|
|
|
|
|
|
for (int resourceID : Warehouse.getMaxResources().keySet()) { |
|
|
|
|
|
|
|
//MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID),1,false);
|
|
|
|
|
|
|
|
//resource.magicValue = Warehouse.getCostForResource(resourceID);
|
|
|
|
|
|
|
|
ItemBase ib = ItemBase.getItemBase(resourceID); |
|
|
|
|
|
|
|
MobEquipment resource = new MobEquipment(ib, 0,0); |
|
|
|
|
|
|
|
resource.magicValue = Warehouse.getCostForResource(resourceID); |
|
|
|
|
|
|
|
returnList.add(resource); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return returnList; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(this.getObjectUUID() == 900){ |
|
|
|
if(this.getObjectUUID() == 900){ |
|
|
|
for(MobEquipment me : this.sellInventory){ |
|
|
|
for(MobEquipment me : this.sellInventory){ |
|
|
|
if(me.getItemBase().getName().equals("Prospector")){ |
|
|
|
me.magicValue = Warehouse.getCostForResource(me.getItemBase().getUUID()); |
|
|
|
me.magicValue = 50; |
|
|
|
|
|
|
|
} else{ |
|
|
|
|
|
|
|
me.magicValue = 1000; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return this.sellInventory; |
|
|
|
return this.sellInventory; |
|
|
|