From 6685fc9b02afca2544b0cb5d1545601a17e4b080 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Feb 2024 12:15:13 -0500 Subject: [PATCH] Fleshing out constructor --- src/engine/objects/ItemTemplate.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 1a319e56..1e41d3c7 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -24,6 +24,7 @@ public class ItemTemplate { public String obj_name = ""; public Vector3fImmutable obj_scale = new Vector3fImmutable(); public int obj_render_object; + public HashMap combat_attack_resist = new HashMap<>(); public ItemTemplate(JSONObject jsonObject) { @@ -34,6 +35,8 @@ public class ItemTemplate { ((Double) scaleData.get(2)).floatValue()); obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue(); + + combat_attack_resist = (HashMap) jsonObject.get("combat_attack_resist"); }