forked from MagicBane/Server
Fleshing out constructor
This commit is contained in:
@@ -24,6 +24,7 @@ public class ItemTemplate {
|
||||
public String obj_name = "";
|
||||
public Vector3fImmutable obj_scale = new Vector3fImmutable();
|
||||
public int obj_render_object;
|
||||
public HashMap<String, Float> combat_attack_resist = new HashMap<>();
|
||||
|
||||
public ItemTemplate(JSONObject jsonObject) {
|
||||
|
||||
@@ -34,6 +35,8 @@ public class ItemTemplate {
|
||||
((Double) scaleData.get(2)).floatValue());
|
||||
|
||||
obj_render_object = ((Long) jsonObject.get("obj_render_object")).intValue();
|
||||
|
||||
combat_attack_resist = (HashMap<String, Float>) jsonObject.get("combat_attack_resist");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user