mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Overmap exoplanet generation, ported from Bay. (#12362)
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
continue
|
||||
//Check if we have a spawnpoint on the current map
|
||||
if(!G.select_spawnlocation(FALSE) && G.loc_type == GS_LOC_POS)
|
||||
log_debug("ghostroles","Spawner [G.type] got removed from selection because of missing spawnpoint")
|
||||
log_ss("ghostroles","Spawner [G.type] got removed from selection because of missing spawnpoint")
|
||||
continue
|
||||
spawners[G.short_name] = G
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
|
||||
click_catchers = create_click_catcher()
|
||||
|
||||
current_map.build_exoplanets()
|
||||
|
||||
..(timeofday)
|
||||
|
||||
/proc/sorted_add_area(area/A)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user