From f1d31948e86b904d00d1fddf01e87333c04d2780 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 19 Aug 2023 11:39:01 -0500 Subject: [PATCH] 0 skill weapons don't roll anymore --- src/engine/objects/NPC.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 5205196e..a407926e 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -1306,11 +1306,13 @@ public class NPC extends AbstractCharacter { maxSkill = 110; break; } - - for (Integer itemID : fullItemList) - if (ItemBase.getItemBase(itemID).getPercentRequired() <= maxSkill) + ItemBase itemBase; + for (Integer itemID : fullItemList) { + itemBase = ItemBase.getItemBase(itemID); + boolean exclude = itemBase.getPercentRequired() == 0 && itemBase.getType() == ItemType.WEAPON; + if (itemBase.getPercentRequired() <= maxSkill && !exclude) filteredItemList.add(itemID); - + } if (this.contract.getVendorID() == 102) { for (int i = 0; i < this.getRank(); i++) {