|
|
@ -1067,7 +1067,8 @@ public class NPC extends AbstractCharacter { |
|
|
|
ItemTemplate itemTemplate; |
|
|
|
ItemTemplate itemTemplate; |
|
|
|
for (Integer itemID : fullItemList) { |
|
|
|
for (Integer itemID : fullItemList) { |
|
|
|
itemTemplate = ItemTemplate.templates.get(itemID); |
|
|
|
itemTemplate = ItemTemplate.templates.get(itemID); |
|
|
|
boolean exclude = (int)itemTemplate.item_skill_required.values().toArray()[0] == 0 && ItemTemplate.templates.get(itemID).item_type == ItemType.WEAPON; |
|
|
|
int[] skillsRequired = (int[]) itemTemplate.item_skill_required.values().toArray()[0]; |
|
|
|
|
|
|
|
boolean exclude = skillsRequired[0] == 0 && ItemTemplate.templates.get(itemID).item_type == ItemType.WEAPON; |
|
|
|
if ((int)itemTemplate.item_skill_required.values().toArray()[0] <= maxSkill && !exclude) |
|
|
|
if ((int)itemTemplate.item_skill_required.values().toArray()[0] <= maxSkill && !exclude) |
|
|
|
filteredItemList.add(itemID); |
|
|
|
filteredItemList.add(itemID); |
|
|
|
} |
|
|
|
} |
|
|
|