Overmap exoplanet generation, ported from Bay. (#12362)

This commit is contained in:
Matt Atlas
2022-01-18 02:16:48 +01:00
committed by GitHub
parent 918d43972e
commit 5bcf84cb23
84 changed files with 2321 additions and 4654 deletions
@@ -26,7 +26,7 @@ var/datum/controller/subsystem/processing/SSprocessing
var/datum/thing = current_run[current_run.len]
current_run.len--
if(!QDELETED(thing))
if (thing.process() == PROCESS_KILL)
if (thing.process(wait, times_fired) == PROCESS_KILL)
stop_processing(thing)
else
processing -= thing
@@ -22,6 +22,7 @@ var/datum/controller/subsystem/processing/shuttle/SSshuttle
var/list/landmarks_still_needed = list() //Stores landmark_tags that need to be assigned to the sector (landmark_tag = sector) when registered.
var/list/shuttles_to_initialize = list() //A queue for shuttles to initialize at the appropriate time.
var/list/sectors_to_initialize //Used to find all sector objects at the appropriate time.
var/list/initialized_sectors = list()
var/block_queue = TRUE
var/tmp/list/working_shuttles
@@ -116,6 +117,8 @@ var/datum/controller/subsystem/processing/shuttle/SSshuttle
given_sector.add_landmark(landmark, landmark.shuttle_restricted)
landmarks_awaiting_sector -= landmark
initialized_sectors |= given_sector
/datum/controller/subsystem/processing/shuttle/proc/try_add_landmark_tag(landmark_tag, obj/effect/overmap/visitable/given_sector)
var/obj/effect/shuttle_landmark/landmark = get_landmark(landmark_tag)
if(!landmark)