From ea97eb56a69e985217d6b670c05a740b737bf05d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 28 Feb 2024 17:30:41 -0500 Subject: [PATCH] Logging missing base names --- src/engine/objects/ItemTemplate.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index fde75522..36ea3b8b 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -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();