Browse Source

Logging missing base names

combat-2
MagicBot 9 months ago
parent
commit
ea97eb56a6
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -155,6 +155,10 @@ public class ItemTemplate { @@ -155,6 +155,10 @@ public class ItemTemplate {
item_wt = ((Long) jsonObject.get("item_wt")).intValue();
item_passive_defense_mod = ((Double) jsonObject.get("item_passive_defense_mod")).floatValue();
item_base_name = (String) jsonObject.get("item_base_name");
if (item_base_name == null)
Logger.error(this.obj_name + " missing base name");
item_dsc = (String) jsonObject.get("item_dsc");
item_render_object_female = ((Long) jsonObject.get("item_render_object_female")).intValue();
item_health_full = ((Double) jsonObject.get("item_health_full")).floatValue();

Loading…
Cancel
Save