Browse Source

0 skill weapons don't roll anymore

master
FatBoy-DOTC 1 year ago
parent
commit
f1d31948e8
  1. 10
      src/engine/objects/NPC.java

10
src/engine/objects/NPC.java

@ -1306,11 +1306,13 @@ public class NPC extends AbstractCharacter {
maxSkill = 110; maxSkill = 110;
break; break;
} }
ItemBase itemBase;
for (Integer itemID : fullItemList) for (Integer itemID : fullItemList) {
if (ItemBase.getItemBase(itemID).getPercentRequired() <= maxSkill) itemBase = ItemBase.getItemBase(itemID);
boolean exclude = itemBase.getPercentRequired() == 0 && itemBase.getType() == ItemType.WEAPON;
if (itemBase.getPercentRequired() <= maxSkill && !exclude)
filteredItemList.add(itemID); filteredItemList.add(itemID);
}
if (this.contract.getVendorID() == 102) { if (this.contract.getVendorID() == 102) {
for (int i = 0; i < this.getRank(); i++) { for (int i = 0; i < this.getRank(); i++) {

Loading…
Cancel
Save