mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Resisting out of cocoon (#33096)
* Update living.dm * Update living.dm * Update living.dm * balance * Update nurse.dm * barry suggestion
This commit is contained in:
@@ -838,6 +838,14 @@ Thanks.
|
|||||||
qdel(package)
|
qdel(package)
|
||||||
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
|
||||||
return
|
return
|
||||||
|
else if(istype(src.loc, /obj/effect/spider/cocoon))
|
||||||
|
var/obj/effect/spider/cocoon/cocoon = src.loc
|
||||||
|
to_chat(L, "<span class='warning'>You attempt to untangle yourself, the webs are tight and will take some time.</span>")
|
||||||
|
if(do_after(src, src, 2 MINUTES))
|
||||||
|
L.visible_message("<span class='danger'>[L] successfully breaks out of [cocoon]!</span>",\
|
||||||
|
"<span class='notice'>You successfully break out!</span>")
|
||||||
|
forceMove(T)
|
||||||
|
qdel(cocoon)
|
||||||
|
|
||||||
//Detaching yourself from a tether
|
//Detaching yourself from a tether
|
||||||
if(L.tether)
|
if(L.tether)
|
||||||
|
|||||||
@@ -164,10 +164,9 @@
|
|||||||
if (M.locked_to)
|
if (M.locked_to)
|
||||||
M.locked_to.unlock_atom(M)
|
M.locked_to.unlock_atom(M)
|
||||||
suffix = "_mob"
|
suffix = "_mob"
|
||||||
if(M.getCloneLoss() < (1.25*M.maxHealth))
|
|
||||||
fed++
|
fed++
|
||||||
visible_message("<span class='warning'>\the [src] sticks a proboscis into \the [cocoon_target] and sucks a viscous substance out.</span>")
|
visible_message("<span class='warning'>\the [src] sticks a proboscis into \the [cocoon_target] and secretes a digestive enzyme.</span>")
|
||||||
M.adjustCloneLoss(30 * size)
|
M.adjustToxLoss(85)
|
||||||
M.forceMove(C)
|
M.forceMove(C)
|
||||||
C.pixel_x = M.pixel_x
|
C.pixel_x = M.pixel_x
|
||||||
C.pixel_y = M.pixel_y
|
C.pixel_y = M.pixel_y
|
||||||
|
|||||||
Reference in New Issue
Block a user