From 8afa00f88510fe8fcfc8eef6b15dcced91927a64 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 4 Apr 2024 09:34:44 -0400 Subject: [PATCH] Parsing skill_granted_skills --- src/engine/objects/ItemTemplate.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index c7781948..7c079ec4 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -439,6 +439,12 @@ public class ItemTemplate { JSONArray skill_granted_array = (JSONArray) skill_granted.get("skill_granted_skills"); + for (Object oo : skill_granted_array) { + JSONArray skill_entry = (JSONArray) oo; + typeString = (String) skill_entry.get(0); + skill_level = ((Long) skill_entry.get(1)).intValue(); + skill_granted_skills.put(typeString, skill_level); + } } }