mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Replaces a weird loop with the spin() proc (#26182)
* Wacky things * Whoopsie
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user