From 44cd464941ba9e560df0d55cbbd6d368f9b10691 Mon Sep 17 00:00:00 2001 From: Anewbe Date: Mon, 6 Mar 2017 21:25:54 -0600 Subject: [PATCH] Adds a check for custom items --- code/modules/customitems/item_spawning.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/customitems/item_spawning.dm b/code/modules/customitems/item_spawning.dm index 4e25a6be8f..54c3ee4e5c 100644 --- a/code/modules/customitems/item_spawning.dm +++ b/code/modules/customitems/item_spawning.dm @@ -194,12 +194,14 @@ // Check for requisite ckey and character name. if((lowertext(citem.assoc_key) != lowertext(M.ckey)) || (lowertext(citem.character_name) != lowertext(M.real_name))) + log_debug("Custom Item: [key_name(M)] Ckey or Char name does not match.") continue // Check for required access. var/obj/item/weapon/card/id/current_id = M.wear_id if(citem.req_access && citem.req_access > 0) if(!(istype(current_id) && (citem.req_access in current_id.access))) + log_debug("Custom Item: [key_name(M)] Does not have required access.") continue // Check for required job title. @@ -211,6 +213,7 @@ has_title = 1 break if(!has_title) + log_debug("Custom Item: [key_name(M)] Does not have required job.") continue // ID cards and PDAs are applied directly to the existing object rather than spawned fresh.