Browse Source

Exclude Cloth for now

combat-2
MagicBot 8 months ago
parent
commit
406c864b17
  1. 10
      src/engine/objects/ItemTemplate.java

10
src/engine/objects/ItemTemplate.java

@ -166,8 +166,10 @@ public class ItemTemplate { @@ -166,8 +166,10 @@ public class ItemTemplate {
Object skill_used = jsonObject.get("item_skill_used");
if (skill_used instanceof String)
item_skill_used = (String) skill_used;
if (skill_used instanceof String) {
if (skill_used.equals("Cloth") == false)
item_skill_used = (String) skill_used;
}
Object mastery_used = jsonObject.get("item_skill_mastery_used");
@ -265,7 +267,9 @@ public class ItemTemplate { @@ -265,7 +267,9 @@ public class ItemTemplate {
JSONObject skill_req = (JSONObject) o;
String skill_type = (String) skill_req.get("skill_type");
int skill_level = ((Long) skill_req.get("skill_level")).intValue();
item_skill_required.put(skill_type, skill_level);
if (skill_type.equals("Cloth") == false)
item_skill_required.put(skill_type, skill_level);
}
JSONObject race_required = (JSONObject) jsonObject.get("item_race_req");

Loading…
Cancel
Save