More parsing work

This commit is contained in:
2024-04-04 10:23:21 -04:00
parent 09d28b964a
commit d39790ab4c
+6 -1
View File
@@ -443,7 +443,12 @@ public class ItemTemplate {
if (item_type.equals(Enum.ItemType.RUNE)) {
rune_type = (String) jsonObject.get("rune_type");
rune_sub_type = (String) jsonObject.get("rune_sub_type");
Object subType = jsonObject.get("rune_sub_type");
if (subType instanceof String)
rune_sub_type = (String) subType;
rune_is_standard_character_creation = ((Boolean) jsonObject.get("rune_is_standard_character_creation"));
rune_creation_cost = ((Long) jsonObject.get("rune_creation_cost")).intValue();
rune_rank = ((Long) jsonObject.get("rune_rank")).intValue();