From 6335af416cfc8cc8a953bdd379ae45f4d520701e Mon Sep 17 00:00:00 2001 From: Cekis Date: Sun, 29 Jan 2017 03:33:59 +0000 Subject: [PATCH] Added logging for medicine where the template name could not be found when examining the medicine. --- .../compiled/game/script/item/comestible/medicine.java | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/item/comestible/medicine.java diff --git a/sku.0/sys.server/compiled/game/script/item/comestible/medicine.java b/sku.0/sys.server/compiled/game/script/item/comestible/medicine.java old mode 100644 new mode 100755 index 71fb64ffd..c03dbbc65 --- a/sku.0/sys.server/compiled/game/script/item/comestible/medicine.java +++ b/sku.0/sys.server/compiled/game/script/item/comestible/medicine.java @@ -286,6 +286,10 @@ public class medicine extends script.base_script else if (item == menu_info_types.EXAMINE) { String template = getTemplateName(self); + if(template == null){ + LOG("medicine","Unable to get template name from item (" + item + ") with object id (" + self + ") and name (" + getName(self) + ") while examining."); + return SCRIPT_CONTINUE; + } String id = template.substring(template.lastIndexOf("/") + 1, template.lastIndexOf(".")); String title = "@food_name:" + id; String prompt = "Select USE from the radial menu options to apply the following attribute modifiers to your target.";