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 00:54:01 -05:00
committed by GitHub
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()
@@ -192,8 +192,10 @@
return
if(!. && isliving(A))
sleep(2 DECISECONDS)
new /obj/effect/temp_visual/ratvar/floor(src)
addtimer(CALLBACK(src, PROC_REF(spawn_visual)), 0.2 SECONDS, TIMER_DELETE_ME)
/turf/simulated/floor/clockwork/proc/spawn_visual()
new /obj/effect/temp_visual/ratvar/floor(src)
/turf/simulated/floor/clockwork/Destroy()
if(uses_overlay && realappearence)
+4 -2
View File
@@ -246,8 +246,10 @@
return
if(!. && isliving(A))
sleep(2 DECISECONDS)
new /obj/effect/temp_visual/cult/turf/open/floor(src)
addtimer(CALLBACK(src, PROC_REF(spawn_visual)), 0.2 SECONDS, TIMER_DELETE_ME)
/turf/simulated/floor/engine/cult/proc/spawn_visual()
new /obj/effect/temp_visual/cult/turf/open/floor(src)
/turf/simulated/floor/engine/cult/narsie_act()
return