Augments that deploy items can no longer be used when strapped to a bed or other lying-restraint.

This commit is contained in:
Mechoid
2020-01-19 14:24:46 -08:00
parent 929ba9c96b
commit 6cd803be7e
+7
View File
@@ -7,6 +7,7 @@
icon_state = "cell_bay"
robotic = ORGAN_ROBOT
parent_organ = BP_TORSO
organ_verbs = list(/mob/living/carbon/human/proc/augment_menu) // Verbs added by the organ when present in the body.
@@ -145,6 +146,12 @@
var/mob/living/carbon/human/M = src
if(buckled)
var/obj/Ob = buckled
if(Ob.buckle_lying)
to_chat(M, "<span class='notice'>You are unable to enable your augments when restrained.</span>")
return 0
if((slot == slot_l_hand && l_hand) || (slot == slot_r_hand && r_hand))
to_chat(M,"<span class='warning'>Your hand is full. Drop something first.</span>")
return 0