From 60ab9c64186ab4f56041a345284b67ac0f2f0672 Mon Sep 17 00:00:00 2001 From: ICE-IS-NICE <73897677+ICE-IS-NICE@users.noreply.github.com> Date: Sat, 6 Jan 2024 16:36:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D1=8B=D1=81=D1=82=D1=80=D0=BE=D1=84?= =?UTF-8?q?=D0=B8=D0=BA=D1=81=202=20(#676)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Выявлена и исправлена доп. ошибка. --- code/game/atoms.dm | 6 ++++-- code/modules/mob/living/carbon/human/examine.dm | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 5f0b926f0f73..254670967e1b 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -1585,8 +1585,10 @@ if(ishuman(src)) var/mob/living/carbon/human/H = src - var/obj/item/clothing/neck/petcollar/collar = H.wear_neck - auxiliary_name = (collar && collar.tagname) ? "\[[collar.tagname]\]" : "" + if(istype(H.wear_neck, /obj/item/clothing/neck/petcollar)) + var/obj/item/clothing/neck/petcollar/collar = H.wear_neck + if(collar.tagname) + auxiliary_name = "\[[collar.tagname]\]" if ((isliving(user) || isovermind(user) || isaicamera(user)) && (user.client.prefs.screentip_pref != SCREENTIP_PREFERENCE_NO_CONTEXT)) var/obj/item/held_item = user.get_active_held_item() diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index a442dbaddbb2..18e59008833c 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -18,10 +18,11 @@ var/mob/living/L = user if(HAS_TRAIT(L, TRAIT_PROSOPAGNOSIA) || HAS_TRAIT(L, TRAIT_INVISIBLE_MAN)) obscure_name = TRUE - var/obj/item/clothing/neck/petcollar/collar = wear_neck var/collar_tagname = "" - if(collar && collar.tagname) - collar_tagname = " \[[collar.tagname]\]" + if(istype(wear_neck, /obj/item/clothing/neck/petcollar)) + var/obj/item/clothing/neck/petcollar/collar = wear_neck + if(collar.tagname) + collar_tagname = " \[[collar.tagname]\]" . = list("Это - [!obscure_name ? name : "Неизвестный"][collar_tagname]!") if(skipface || get_visible_name() == "Unknown") . += "Вы не можете разобрать, к какому виду относится находящееся перед вами существо."