[MIRROR] Subsystem For Overmap Shuttle's Star Movement Effects (#10897)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-16 14:30:40 +02:00
committed by GitHub
co-authored by Will
parent 311364da39
commit 614665210c
5 changed files with 74 additions and 19 deletions
+2 -2
View File
@@ -133,7 +133,7 @@
else if(still)
STOP_PROCESSING(SSprocessing, src)
for(var/zz in map_z)
toggle_move_stars(zz)
SSstarmover.toggle_move_stars(zz)
if(last_sound + sound_cooldown >= world.time)
return
//VOREStation Add Start
@@ -148,7 +148,7 @@
START_PROCESSING(SSprocessing, src)
glide_size = WORLD_ICON_SIZE/max(DS2TICKS(SSprocessing.wait), 1) //Down to whatever decimal
for(var/zz in map_z)
toggle_move_stars(zz, fore_dir)
SSstarmover.toggle_move_stars(zz, fore_dir)
if(last_sound + sound_cooldown >= world.time)
return
//VOREStation Add Start
-17
View File
@@ -89,20 +89,3 @@ GLOBAL_LIST_EMPTY(map_sectors)
..()
if(istype(O, /obj/effect/overmap/visitable/ship))
GLOB.overmap_event_handler.on_turf_exited(src, O, newloc)
//list used to track which zlevels are being 'moved' by the proc below
var/list/moving_levels = list()
//Proc to 'move' stars in spess
//yes it looks ugly, but it should only fire when state actually change.
//null direction stops movement
/proc/toggle_move_stars(zlevel, direction)
if(!zlevel)
return
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)
T.toggle_transit(direction)
CHECK_TICK