mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
Cuffs now block arm implant use (#15825)
* no more implant interaction with cuffs * delete pascal case
This commit is contained in:
@@ -62,8 +62,13 @@
|
||||
Retract()
|
||||
..()
|
||||
|
||||
/obj/item/organ/internal/cyberimp/arm/proc/check_cuffs()
|
||||
if(owner.handcuffed)
|
||||
to_chat(owner, "<span class='warning'>The handcuffs interfere with [src]!</span>")
|
||||
return TRUE
|
||||
|
||||
/obj/item/organ/internal/cyberimp/arm/proc/Retract()
|
||||
if(!holder || (holder in src))
|
||||
if(!holder || (holder in src) || check_cuffs())
|
||||
return
|
||||
|
||||
owner.visible_message("<span class='notice'>[owner] retracts [holder] back into [owner.p_their()] [parent_organ == "r_arm" ? "right" : "left"] arm.</span>",
|
||||
@@ -80,10 +85,9 @@
|
||||
playsound(get_turf(owner), 'sound/mecha/mechmove03.ogg', 50, 1)
|
||||
|
||||
/obj/item/organ/internal/cyberimp/arm/proc/Extend(obj/item/item)
|
||||
if(!(item in src))
|
||||
if(!(item in src) || check_cuffs())
|
||||
return
|
||||
|
||||
|
||||
holder = item
|
||||
|
||||
holder.flags |= NODROP
|
||||
|
||||
Reference in New Issue
Block a user