forked from MagicBane/Server
More parsing work
This commit is contained in:
@@ -106,7 +106,7 @@ public class ItemTemplate {
|
|||||||
public int rune_rank;
|
public int rune_rank;
|
||||||
public int rune_pracs_per_level;
|
public int rune_pracs_per_level;
|
||||||
public float rune_exp_req_to_level;
|
public float rune_exp_req_to_level;
|
||||||
public String rune_sex;
|
public Enum.SexType rune_sex;
|
||||||
public int rune_class_icon;
|
public int rune_class_icon;
|
||||||
public float rune_health;
|
public float rune_health;
|
||||||
public int rune_mana;
|
public int rune_mana;
|
||||||
@@ -445,6 +445,11 @@ public class ItemTemplate {
|
|||||||
rune_type = (String) jsonObject.get("rune_type");
|
rune_type = (String) jsonObject.get("rune_type");
|
||||||
rune_sub_type = (String) jsonObject.get("rune_sub_type");
|
rune_sub_type = (String) jsonObject.get("rune_sub_type");
|
||||||
rune_is_standard_character_creation = ((Boolean) jsonObject.get("rune_is_standard_character_creation"));
|
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();
|
||||||
|
rune_pracs_per_level = ((Long) jsonObject.get("rune_pracs_per_level")).intValue();
|
||||||
|
rune_exp_req_to_level = ((Double) jsonObject.get("rune_exp_req_to_level")).floatValue();
|
||||||
|
rune_sex = Enum.SexType.valueOf((String) jsonObject.get("rune_sex"));
|
||||||
|
|
||||||
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");
|
JSONArray attr_adj_json = (JSONArray) jsonObject.get("rune_attr_adj");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user