Make transit look nicer with transit dust

This commit is contained in:
Aronai Sieyes
2020-03-10 23:11:48 -04:00
committed by Leshana
parent 823502121d
commit 0e2346ce8c
5 changed files with 59 additions and 37 deletions

View File

@@ -70,27 +70,12 @@ proc/toggle_move_stars(zlevel, direction)
if(!zlevel)
return
var/gen_dir = null
if(direction & (NORTH|SOUTH))
gen_dir += "ns"
else if(direction & (EAST|WEST))
gen_dir += "ew"
if(!direction)
gen_dir = null
if (moving_levels["[zlevel]"] != gen_dir)
moving_levels["[zlevel]"] = gen_dir
if (moving_levels["[zlevel]"] != direction)
moving_levels["[zlevel]"] = direction
var/list/spaceturfs = block(locate(1, 1, zlevel), locate(world.maxx, world.maxy, zlevel))
for(var/turf/space/T in spaceturfs)
if(!gen_dir)
T.icon_state = initial(T.icon_state)
else
T.icon_state = "speedspace_[gen_dir]_[rand(1,15)]"
for(var/atom/movable/AM in T)
if (AM.simulated && !AM.anchored)
AM.throw_at(get_step(T,reverse_direction(direction)), 5, 1)
CHECK_TICK
T.toggle_transit(direction)
CHECK_TICK
/*
//list used to cache empty zlevels to avoid nedless map bloat