mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Make transit look nicer with transit dust
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user