Skip to content

Commit

Permalink
Быстрофикс 2 (BlueMoon-Labs#676)
Browse files Browse the repository at this point in the history
Выявлена и исправлена доп. ошибка.
  • Loading branch information
ICE-IS-NICE authored Jan 6, 2024
1 parent fba90d1 commit 60ab9c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions code/game/atoms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 4 additions & 3 deletions code/modules/mob/living/carbon/human/examine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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("<span class='info'>Это - <EM>[!obscure_name ? name : "Неизвестный"][collar_tagname]</EM>!")
if(skipface || get_visible_name() == "Unknown")
. += "Вы не можете разобрать, к какому виду относится находящееся перед вами существо."
Expand Down

0 comments on commit 60ab9c6

Please sign in to comment.