mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-23 21:26:30 +01:00
Augments that deploy items can no longer be used when strapped to a bed or other lying-restraint.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user