mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Prevents the removal of objects from yourself while disabled. (#20446)
* Prevents removal of objects while disabled * Better handling
This commit is contained in:
@@ -248,7 +248,10 @@ If you're feeling frisky, examine yourself and click the underlined item to pull
|
||||
/atom/movable/screen/alert/embeddedobject/Click()
|
||||
if(iscarbon(usr))
|
||||
var/mob/living/carbon/C = usr
|
||||
return C.try_remove_embedded_object(C)
|
||||
if (C.incapacitated())
|
||||
to_chat(C, span_warning("You can't do that while disabled!"))
|
||||
else
|
||||
return C.try_remove_embedded_object(C)
|
||||
|
||||
/atom/movable/screen/alert/weightless
|
||||
name = "Weightless"
|
||||
|
||||
Reference in New Issue
Block a user