Skip to content

Commit

Permalink
Fix id skins interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Nov 14, 2024
1 parent d75d7ce commit f460822
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modular_ss220/objects/code/id_skins/_id_skins_base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
if(skin_applied)
. += span_notice("Нажмите <b>Alt-Click</b> на карту, чтобы снять наклейку.")

/obj/item/card/id/AltClick(mob/user)
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || user.restrained())
/obj/item/card/id/AltClick(mob/living/carbon/user)
if(!iscarbon(user))
return

if(!Adjacent(user) || user.incapacitated())
to_chat(user, span_warning("У вас нет возможности снять наклейку!"))
return

Expand Down

0 comments on commit f460822

Please sign in to comment.