Merge pull request #6637 from Mechoid/AugmentsRespectBeds

Augments Respect Beds, Robotic
This commit is contained in:
Atermonera
2020-01-25 19:12:39 -08:00
committed by VirgoBot
parent da6268d52b
commit 560a24ee83

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 cannot use 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