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:
adacovsk
2022-08-27 10:43:39 -04:00
committed by GitHub
parent f090729519
commit a4d9081602
2 changed files with 11 additions and 4 deletions

View File

@@ -838,6 +838,14 @@ Thanks.
qdel(package)
playsound(src.loc, 'sound/items/poster_ripped.ogg', 100, 1)
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
if(L.tether)

View File

@@ -164,10 +164,9 @@
if (M.locked_to)
M.locked_to.unlock_atom(M)
suffix = "_mob"
if(M.getCloneLoss() < (1.25*M.maxHealth))
fed++
visible_message("<span class='warning'>\the [src] sticks a proboscis into \the [cocoon_target] and sucks a viscous substance out.</span>")
M.adjustCloneLoss(30 * size)
fed++
visible_message("<span class='warning'>\the [src] sticks a proboscis into \the [cocoon_target] and secretes a digestive enzyme.</span>")
M.adjustToxLoss(85)
M.forceMove(C)
C.pixel_x = M.pixel_x
C.pixel_y = M.pixel_y