mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 08:31:57 +00:00
Update the codebase to 515. (#15553)
* Update the codebase to 515. * edit that * WHOOPS * maor * maybe works * libcall and shit * do that too * remove that * auxtools isnt updated so get rid of it * actually remove auxtools lol Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -106,4 +106,4 @@ var/list/panic_targets_data_loss = list(
|
||||
var/ctype = panic_targets[controller]
|
||||
Master.subsystems += new ctype
|
||||
|
||||
sortTim(Master.subsystems, /proc/cmp_subsystem_display)
|
||||
sortTim(Master.subsystems, GLOBAL_PROC_REF(cmp_subsystem_display))
|
||||
|
||||
@@ -157,7 +157,7 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
|
||||
initializing = TRUE
|
||||
|
||||
// Sort subsystems by init_order, so they initialize in the correct order.
|
||||
sortTim(subsystems, /proc/cmp_subsystem_init)
|
||||
sortTim(subsystems, GLOBAL_PROC_REF(cmp_subsystem_init))
|
||||
|
||||
var/start_timeofday = REALTIMEOFDAY
|
||||
// Initialize subsystems.
|
||||
@@ -181,7 +181,7 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
|
||||
SetRunLevel(RUNLEVEL_LOBBY)
|
||||
|
||||
// Sort subsystems by display setting for easy access.
|
||||
sortTim(subsystems, /proc/cmp_subsystem_display)
|
||||
sortTim(subsystems, GLOBAL_PROC_REF(cmp_subsystem_display))
|
||||
// Set world options.
|
||||
#ifndef UNIT_TEST
|
||||
world.sleep_offline = 1
|
||||
@@ -264,9 +264,9 @@ var/CURRENT_TICKLIMIT = TICK_LIMIT_RUNNING
|
||||
queue_tail = null
|
||||
//these sort by lower priorities first to reduce the number of loops needed to add subsequent SS's to the queue
|
||||
//(higher subsystems will be sooner in the queue, adding them later in the loop means we don't have to loop thru them next queue add)
|
||||
sortTim(tickersubsystems, /proc/cmp_subsystem_priority)
|
||||
sortTim(tickersubsystems, GLOBAL_PROC_REF(cmp_subsystem_priority))
|
||||
for(var/level in runlevel_sorted_subsystems)
|
||||
sortTim(level, /proc/cmp_subsystem_priority)
|
||||
sortTim(level, GLOBAL_PROC_REF(cmp_subsystem_priority))
|
||||
level += tickersubsystems
|
||||
|
||||
var/cached_runlevel = current_runlevel
|
||||
|
||||
@@ -225,7 +225,7 @@ var/datum/controller/subsystem/atlas/SSatlas
|
||||
|
||||
var/static/regex/mapregex = new(".+\\.dmm$")
|
||||
var/list/files = flist(directory)
|
||||
sortTim(files, /proc/cmp_text_asc)
|
||||
sortTim(files, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
var/mfile
|
||||
var/first_dmm = TRUE
|
||||
var/time
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
for (var/area/A in world)
|
||||
all_areas += A
|
||||
|
||||
sortTim(all_areas, /proc/cmp_name_asc)
|
||||
sortTim(all_areas, GLOBAL_PROC_REF(cmp_name_asc))
|
||||
|
||||
/datum/controller/subsystem/finalize/proc/select_ruin()
|
||||
//Get all the folders in dynamic maps and check if they contain a config.json
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
if(current_map.use_overmap)
|
||||
ghostteleportlocs[map_overmap.name] = map_overmap
|
||||
|
||||
sortTim(ghostteleportlocs, /proc/cmp_text_asc)
|
||||
sortTim(ghostteleportlocs, GLOBAL_PROC_REF(cmp_text_asc))
|
||||
|
||||
setupgenetics()
|
||||
|
||||
@@ -39,4 +39,4 @@
|
||||
/proc/sorted_add_area(area/A)
|
||||
all_areas += A
|
||||
|
||||
sortTim(all_areas, /proc/cmp_name_asc)
|
||||
sortTim(all_areas, GLOBAL_PROC_REF(cmp_name_asc))
|
||||
|
||||
@@ -318,7 +318,7 @@
|
||||
to_chat(H, SSatlas.current_sector.get_chat_description())
|
||||
|
||||
if("Arrivals Shuttle" in current_map.allowed_spawns && spawning_at == "Arrivals Shuttle")
|
||||
H.centcomm_despawn_timer = addtimer(CALLBACK(H, /mob/living/.proc/centcomm_timeout), 10 MINUTES, TIMER_STOPPABLE)
|
||||
H.centcomm_despawn_timer = addtimer(CALLBACK(H, TYPE_PROC_REF(/mob/living, centcomm_timeout)), 10 MINUTES, TIMER_STOPPABLE)
|
||||
to_chat(H,SPAN_NOTICE("You have ten minutes to reach the station before you will be forced there."))
|
||||
|
||||
var/datum/job/job = GetJob(rank)
|
||||
@@ -416,7 +416,7 @@
|
||||
BITSET(H.hud_updateflag, IMPLOYAL_HUD)
|
||||
BITSET(H.hud_updateflag, SPECIALROLE_HUD)
|
||||
|
||||
INVOKE_ASYNC(GLOBAL_PROC, .proc/show_location_blurb, H.client, 30)
|
||||
INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(show_location_blurb), H.client, 30)
|
||||
|
||||
if(spawning_at == "Arrivals Shuttle")
|
||||
to_chat(H, "<b>[current_map.command_spawn_message]</b>")
|
||||
@@ -869,7 +869,7 @@
|
||||
T.maptext = "<span style=\"[style]\">[copytext(text,1,i)] </span>"
|
||||
sleep(1)
|
||||
|
||||
addtimer(CALLBACK(GLOBAL_PROC, .proc/fade_location_blurb, C, T), duration)
|
||||
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(fade_location_blurb), C, T), duration)
|
||||
|
||||
/proc/fade_location_blurb(client/C, obj/T)
|
||||
animate(T, alpha = 0, time = 5)
|
||||
|
||||
@@ -109,7 +109,7 @@ var/datum/controller/subsystem/lighting/SSlighting
|
||||
log_ss("lighting", "NOv:[overlaycount] L:[processed_lights] C:[processed_corners] O:[processed_overlays]")
|
||||
|
||||
#ifdef USE_INTELLIGENT_LIGHTING_UPDATES
|
||||
SSticker.OnRoundstart(CALLBACK(src, .proc/handle_roundstart))
|
||||
SSticker.OnRoundstart(CALLBACK(src, PROC_REF(handle_roundstart)))
|
||||
#endif
|
||||
|
||||
..()
|
||||
|
||||
@@ -268,8 +268,8 @@ if(Datum.isprocessing) {\
|
||||
rcon_breaker_units += breaker
|
||||
rcon_breaker_units_by_tag[breaker.RCon_tag] = breaker
|
||||
|
||||
sortTim(rcon_smes_units, /proc/cmp_rcon_smes)
|
||||
sortTim(rcon_breaker_units, /proc/cmp_rcon_bbox)
|
||||
sortTim(rcon_smes_units, GLOBAL_PROC_REF(cmp_rcon_smes))
|
||||
sortTim(rcon_breaker_units, GLOBAL_PROC_REF(cmp_rcon_bbox))
|
||||
|
||||
#undef SSMACHINERY_PIPENETS
|
||||
#undef SSMACHINERY_MACHINERY
|
||||
|
||||
@@ -50,7 +50,7 @@ var/datum/controller/subsystem/mapping/SSmapping
|
||||
|
||||
var/list/banned_maps = list() + banned_exoplanet_dmms + banned_space_dmms + banned_away_site_dmms
|
||||
|
||||
for(var/item in sortList(subtypesof(/datum/map_template), /proc/cmp_ruincost_priority))
|
||||
for(var/item in sortList(subtypesof(/datum/map_template), GLOBAL_PROC_REF(cmp_ruincost_priority)))
|
||||
var/datum/map_template/map_template_type = item
|
||||
// screen out the abstract subtypes
|
||||
if(!initial(map_template_type.id))
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
. = new /mob/living/carbon/human/dummy/mannequin
|
||||
mannequins[ckey] = .
|
||||
|
||||
addtimer(CALLBACK(src, .proc/del_mannequin, ckey), 5 MINUTES, TIMER_UNIQUE | TIMER_OVERRIDE)
|
||||
addtimer(CALLBACK(src, PROC_REF(del_mannequin), ckey), 5 MINUTES, TIMER_UNIQUE | TIMER_OVERRIDE)
|
||||
|
||||
/datum/controller/subsystem/mobs/proc/del_mannequin(ckey)
|
||||
var/mannequin = mannequins[ckey]
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
if (config.news_use_forum_api)
|
||||
load_forum_news_config()
|
||||
|
||||
INVOKE_ASYNC(src, .proc/load_from_forums)
|
||||
INVOKE_ASYNC(src, PROC_REF(load_from_forums))
|
||||
|
||||
..()
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ var/datum/controller/subsystem/nightlight/SSnightlight
|
||||
suspend()
|
||||
deactivate(FALSE)
|
||||
if (time > 0)
|
||||
addtimer(CALLBACK(src, .proc/end_temp_disable), time, TIMER_UNIQUE | TIMER_OVERRIDE)
|
||||
addtimer(CALLBACK(src, PROC_REF(end_temp_disable)), time, TIMER_UNIQUE | TIMER_OVERRIDE)
|
||||
|
||||
/datum/controller/subsystem/nightlight/proc/end_temp_disable()
|
||||
if (disable_type == NL_TEMPORARY_DISABLE)
|
||||
|
||||
@@ -143,12 +143,12 @@
|
||||
|
||||
pregenerate_more_oranges_ears(NUMBER_OF_PREGENERATED_ORANGES_EARS)
|
||||
|
||||
RegisterSignal(SSdcs, COMSIG_GLOB_NEW_Z, .proc/propogate_spatial_grid_to_new_z)
|
||||
RegisterSignal(SSdcs, COMSIG_GLOB_EXPANDED_WORLD_BOUNDS, .proc/after_world_bounds_expanded)
|
||||
RegisterSignal(SSdcs, COMSIG_GLOB_NEW_Z, PROC_REF(propogate_spatial_grid_to_new_z))
|
||||
RegisterSignal(SSdcs, COMSIG_GLOB_EXPANDED_WORLD_BOUNDS, PROC_REF(after_world_bounds_expanded))
|
||||
|
||||
///add a movable to the pre init queue for whichever type is specified so that when the subsystem initializes they get added to the grid
|
||||
/datum/controller/subsystem/spatial_grid/proc/enter_pre_init_queue(atom/movable/waiting_movable, type)
|
||||
RegisterSignal(waiting_movable, COMSIG_PARENT_PREQDELETED, .proc/queued_item_deleted, override = TRUE)
|
||||
RegisterSignal(waiting_movable, COMSIG_PARENT_PREQDELETED, PROC_REF(queued_item_deleted), override = TRUE)
|
||||
//override because something can enter the queue for two different types but that is done through unrelated procs that shouldnt know about eachother
|
||||
waiting_to_add_by_type[type] += waiting_movable
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
simple_statistics[S.key] = S
|
||||
|
||||
sortTim(simple_statistics, /proc/cmp_name_asc, TRUE)
|
||||
sortTim(simple_statistics, GLOBAL_PROC_REF(cmp_name_asc), TRUE)
|
||||
|
||||
/datum/controller/subsystem/statistics/fire()
|
||||
// Handle AFK.
|
||||
|
||||
@@ -342,7 +342,7 @@ var/datum/controller/subsystem/ticker/SSticker
|
||||
for(var/dept in ready_job.departments)
|
||||
LAZYDISTINCTADD(ready_player_jobs[dept], prefs.real_name)
|
||||
LAZYSET(ready_player_jobs[dept], prefs.real_name, ready_job.title)
|
||||
sortTim(ready_player_jobs[dept], /proc/cmp_text_asc)
|
||||
sortTim(ready_player_jobs[dept], GLOBAL_PROC_REF(cmp_text_asc))
|
||||
. = TRUE
|
||||
|
||||
if(.)
|
||||
@@ -545,7 +545,7 @@ var/datum/controller/subsystem/ticker/SSticker
|
||||
round_start_time = world.time
|
||||
|
||||
callHook("roundstart")
|
||||
INVOKE_ASYNC(src, .proc/roundstart)
|
||||
INVOKE_ASYNC(src, PROC_REF(roundstart))
|
||||
|
||||
log_debug("SSticker: Running [LAZYLEN(roundstart_callbacks)] round-start callbacks.")
|
||||
run_callback_list(roundstart_callbacks)
|
||||
|
||||
@@ -274,7 +274,7 @@ var/datum/controller/subsystem/timer/SStimer
|
||||
return
|
||||
|
||||
// Sort all timers by time to run
|
||||
sortTim(alltimers, .proc/cmp_timer)
|
||||
sortTim(alltimers, GLOBAL_PROC_REF(cmp_timer))
|
||||
|
||||
// Get the earliest timer, and if the TTR is earlier than the current world.time,
|
||||
// then set the head offset appropriately to be the earliest time tracked by the
|
||||
|
||||
@@ -417,7 +417,7 @@
|
||||
D.plane = T.shadower.plane
|
||||
found_oo += D
|
||||
|
||||
sortTim(found_oo, /proc/cmp_planelayer)
|
||||
sortTim(found_oo, GLOBAL_PROC_REF(cmp_planelayer))
|
||||
|
||||
var/list/atoms_list_list = list()
|
||||
for (var/thing in found_oo)
|
||||
|
||||
Reference in New Issue
Block a user