interlock protean hideing and resting (#16704)

This commit is contained in:
Kashargul
2024-12-16 10:03:07 +10:00
committed by GitHub
parent 3f058f7346
commit 17da70b62f
@@ -337,6 +337,9 @@
healing = null
/mob/living/simple_mob/protean_blob/lay_down()
if(hiding)
to_chat(src, span_warning("You can't rest while hiding."))
return
var/obj/item/rig/rig = src.get_rig()
if(rig)
rig.force_rest(src)
@@ -348,6 +351,10 @@
set desc = "Disperses your mass into a thin veil, making a trap to snatch prey with, or simply hide."
set category = "Abilities.Protean"
if(resting)
to_chat(src, span_warning("You can't hide while resting."))
return
if(!hiding)
cut_overlays()
icon = 'icons/mob/species/protean/protean.dmi'