From 6cd803be7e038ee2b0bdad4295d8b26b7f660d71 Mon Sep 17 00:00:00 2001 From: Mechoid Date: Sun, 19 Jan 2020 14:24:46 -0800 Subject: [PATCH] Augments that deploy items can no longer be used when strapped to a bed or other lying-restraint. --- code/modules/organs/internal/augment.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/organs/internal/augment.dm b/code/modules/organs/internal/augment.dm index 0c168d1679..820450525a 100644 --- a/code/modules/organs/internal/augment.dm +++ b/code/modules/organs/internal/augment.dm @@ -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, "You are unable to enable your augments when restrained.") + return 0 + if((slot == slot_l_hand && l_hand) || (slot == slot_r_hand && r_hand)) to_chat(M,"Your hand is full. Drop something first.") return 0