From 72faafedfecd1e705325f0d709d4d9b7c97b9851 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 17 May 2024 23:14:15 -0500 Subject: [PATCH] resource merchant --- src/engine/objects/Contract.java | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/engine/objects/Contract.java b/src/engine/objects/Contract.java index 627a9c2d..e18efab9 100644 --- a/src/engine/objects/Contract.java +++ b/src/engine/objects/Contract.java @@ -198,25 +198,10 @@ public class Contract extends AbstractGameObject { } public ArrayList getSellInventory() { - if(this.getObjectUUID() == 900){ - ArrayList 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){ for(MobEquipment me : this.sellInventory){ - if(me.getItemBase().getName().equals("Prospector")){ - me.magicValue = 50; - } else{ - me.magicValue = 1000; - } + me.magicValue = Warehouse.getCostForResource(me.getItemBase().getUUID()); } } return this.sellInventory;