Fleshing out constructor

This commit is contained in:
2024-02-18 12:15:13 -05:00
parent ad52546e0c
commit 6685fc9b02
+3
View File
@@ -24,6 +24,7 @@ public class ItemTemplate {
public String obj_name = ""; public String obj_name = "";
public Vector3fImmutable obj_scale = new Vector3fImmutable(); public Vector3fImmutable obj_scale = new Vector3fImmutable();
public int obj_render_object; public int obj_render_object;
public HashMap<String, Float> combat_attack_resist = new HashMap<>();
public ItemTemplate(JSONObject jsonObject) { public ItemTemplate(JSONObject jsonObject) {
@@ -34,6 +35,8 @@ public class ItemTemplate {
((Double) scaleData.get(2)).floatValue()); ((Double) scaleData.get(2)).floatValue());
obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue(); obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue();
combat_attack_resist = (HashMap<String, Float>) jsonObject.get("combat_attack_resist");
} }