Removes sleep() call from clockwork and floor turfs (#25541)

* turns sleeps into timer

* revenant death animation converted to animate()

* Update code/game/turfs/simulated/floor/plating.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com>

---------

Signed-off-by: chuga-git <98280110+chuga-git@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
This commit is contained in:
chuga-git
2024-05-23 05:54:01 +00:00
committed by GitHub
co-authored by 1080pCat
parent 9296564ab6
commit 6baa75a5bf
3 changed files with 9 additions and 7 deletions
@@ -223,9 +223,7 @@
playsound(src, 'sound/effects/screech.ogg', 100, 1)
visible_message("<span class='warning'>[src] lets out a waning screech as violet mist swirls around its dissolving body!</span>")
icon_state = "revenant_draining"
for(var/i = alpha, i > 0, i -= 10)
sleep(0.1)
alpha = i
animate(src, alpha = 0, time = 3 SECONDS)
visible_message("<span class='danger'>[src]'s body breaks apart into a fine pile of blue dust.</span>")
new /obj/item/ectoplasm/revenant(get_turf(src))
ghostize()