From 3587dc2d750c3c8296efc560569e276e4a6c0271 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 9 Sep 2024 21:09:12 -0500 Subject: [PATCH] builders sell things at proper ranks --- src/engine/objects/NPC.java | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 926eea25..558a7fed 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1429,7 +1429,29 @@ public class NPC extends AbstractCharacter { public ArrayList getSellInventoryBuilder() { ArrayList smallList = new ArrayList<>(); - int maxValue = this.getRank() * 2 * 100000; + int maxValue = 0; + switch(this.getRank()){ + case 1: + maxValue = 300000; + break; + case 2: + maxValue = 450000; + break; + case 3: + maxValue = 550000; + break; + case 4: + maxValue = 650000; + break; + case 5: + maxValue = 1000000; + break; + case 6: + case 7: + maxValue = 999999999; + break; + + } for(MobEquipment me : this.contract.getSellInventory()){ if(me.getItemBase().getBaseValue() <= maxValue) smallList.add(me);