Browse Source

More parsing work

combat-2
MagicBot 9 months ago
parent
commit
bcf4aef5a0
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -209,7 +209,7 @@ public class ItemTemplate { @@ -209,7 +209,7 @@ public class ItemTemplate {
item_weapon_damage.put(sourceType, minMax);
}
JSONArray attack_anim_right = (JSONArray) jsonObject.get("weapon_attack_anim_right");
JSONArray attack_anim_right = (JSONArray) item_weapon.get("weapon_attack_anim_right");
if (attack_anim_right.isEmpty() == false)
for (Object o : weapon_damage) {
@ -219,7 +219,7 @@ public class ItemTemplate { @@ -219,7 +219,7 @@ public class ItemTemplate {
weapon_attack_anim_right.add(new int[]{animation, duration});
}
JSONArray attack_anim_left = (JSONArray) jsonObject.get("attack_anim_left");
JSONArray attack_anim_left = (JSONArray) item_weapon.get("attack_anim_left");
if (attack_anim_left.isEmpty() == false)
for (Object o : weapon_damage) {

Loading…
Cancel
Save