Files
Aurora.3/code/controllers/subsystems/initialization/misc_early.dm
Werner 7404418903 Adds SShttp (#18105)
* Adds SShttp

Adds a HTTP Subsystem with a integrated Retry-Queue for Status-Code 429 and 503

Changes the discord subsystems send message function to the new http subsystem

The previous http_ request functions remain but have been renamed to old to signify that they should not be used for new implementations

* Fixes lint error

* DMDoc Pass

* marks build_options as private

* SHOULD_NOT_SLEEP where its relevant

* update_channels is not a private proc, as it can be called by the API

* Remove comments

* Make fluffy happy

* Makes fluffy even happier

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
2024-01-06 21:19:45 +00:00

49 lines
1.2 KiB
Plaintext

// This is one of the first subsystems initialized by the MC.
// Stuff that should be loaded before everything else that isn't significant enough to get its own SS goes here.
SUBSYSTEM_DEF(misc_early)
name = "Early Miscellaneous Init"
init_order = SS_INIT_MISC_FIRST
flags = SS_NO_FIRE | SS_NO_DISPLAY
/datum/controller/subsystem/misc_early/Initialize(timeofday)
// Setup the global HUD.
global_hud = new
global_huds = list(
global_hud.druggy,
global_hud.blurry,
global_hud.vimpaired,
global_hud.darkMask,
global_hud.nvg,
global_hud.thermal,
global_hud.meson,
global_hud.science,
)
// Populate global list of tips by category
populate_tip_list()
// Create robolimbs for chargen.
populate_robolimb_list()
// Set up antags.
// Spawn locations are set after map init!
populate_antag_type_list()
// Get BOREALIS to warn staff about a lazy admin forgetting visibility to 0
// before anyone has a chance to change it!
if (SSdiscord)
SSdiscord.alert_server_visibility()
// Setup ore.
for(var/oretype in subtypesof(/ore))
var/ore/OD = new oretype()
GLOB.ore_data[OD.name] = OD
// Setup cargo spawn lists.
setup_cargo_spawn_lists()
click_catchers = create_click_catcher()
return SS_INIT_SUCCESS