Replaces a weird loop with the spin() proc (#26182)

* Wacky things

* Whoopsie
This commit is contained in:
DGamerL
2024-07-12 16:54:13 +00:00
committed by GitHub
parent e8a8939bd6
commit 4a84520147
3 changed files with 3 additions and 10 deletions
@@ -250,9 +250,7 @@
item_to_add.forceMove(drop_location())
if(prob(25))
step_rand(item_to_add)
for(var/i in list(1,2,4,8,4,8,4,dir))
setDir(i)
sleep(1)
spin(7 DECISECONDS, 1)
return valid
@@ -53,7 +53,7 @@
eat_plants()
if(!pulledby)
for(var/direction in shuffle(list(1, 2, 4, 8, 5, 6, 9, 10)))
for(var/direction in shuffle(GLOB.alldirs))
var/step = get_step(src, direction)
if(step)
if(locate(/obj/structure/spacevine) in step || locate(/obj/structure/glowshroom) in step)
@@ -14,9 +14,4 @@
if(stat != CONSCIOUS || !paper.rolled)
return
user.visible_message("<span class='notice'>[user] baps [name] on the nose with the rolled up [O].</span>")
spawn(0)
for(var/i in list(1, 2, 4, 8, 4, 2, 1, 2))
setDir(i)
sleep(1)
INVOKE_ASYNC(src, PROC_REF(spin), 7 DECISECONDS, 1)