From 0966b82d5f910ea9885db75a9d6b2f992bf4b3a8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 2 Apr 2024 15:24:52 -0400 Subject: [PATCH] rune_skill_grant parsed --- src/engine/objects/ItemTemplate.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index b436c95a..f432c110 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -103,7 +103,7 @@ public class ItemTemplate { public HashMap rune_attr_adj = new HashMap<>(); public HashMap rune_max_attr_adj = new HashMap<>(); - public HashMap rune_skill_grant = new HashMap<>(); + public HashMap rune_skill_grant = new HashMap<>(); public ItemTemplate(JSONObject jsonObject) { @@ -436,9 +436,8 @@ public class ItemTemplate { for (Object o : skill_grant_json) { JSONObject skill_granted = (JSONObject) o; String typeString = (String) skill_granted.get("skill_type"); - Enum.AttributeType attributeType = Enum.AttributeType.valueOf(typeString); int skill_level = ((Long) skill_granted.get("skill_value")).intValue(); - rune_skill_grant.put(attributeType, skill_level); + rune_skill_grant.put(typeString, skill_level); } }