From 36f12f9c97e1c6086c3e644395ea7a346866ae21 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Feb 2024 15:32:45 -0500 Subject: [PATCH] Weapon field parsing --- src/engine/objects/ItemTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 9ed93978..ca866857 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -167,7 +167,7 @@ public class ItemTemplate { JSONObject weapon_damage = (JSONObject) jsonObject.get("weapon_damage"); item_weapon_damage_type = Enum.DamageType.valueOf((String) weapon_damage.get("damage_type")); - item_weapon_damage_min = ((Long) weapon_damage.get("damage_mi")).intValue(); + item_weapon_damage_min = ((Long) weapon_damage.get("damage_min")).intValue(); item_weapon_damage_max = ((Long) weapon_damage.get("damage_max")).intValue(); }