mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-11 07:58:57 +01:00
Remove Global Iterators (#2842)
Removes the global iterators, which mechs use heavily, and replaces it with standard process() calls from SSfast_process and SSprocessing.
This commit is contained in:
@@ -1821,21 +1821,19 @@ var/list/global/random_stock_large = list(
|
||||
exosuit.cell.charge = 0
|
||||
|
||||
|
||||
//Handle power or damage warnings
|
||||
if (exosuit.pr_manage_warnings)
|
||||
exosuit.pr_manage_warnings.process(exosuit)//Trigger them first, if they'll happen
|
||||
exosuit.process_warnings()//Trigger them first, if they'll happen
|
||||
|
||||
if (exosuit.power_alert_status)
|
||||
exosuit.pr_manage_warnings.last_power_warning = -99999999
|
||||
//Make it go into infrequent warning state instantly
|
||||
exosuit.pr_manage_warnings.power_warning_delay = 99999999
|
||||
//and set the delay between warnings to a functionally infinite value
|
||||
//so that it will shut up
|
||||
if (exosuit.power_alert_status)
|
||||
exosuit.last_power_warning = -99999999
|
||||
//Make it go into infrequent warning state instantly
|
||||
exosuit.power_warning_delay = 99999999
|
||||
//and set the delay between warnings to a functionally infinite value
|
||||
//so that it will shut up
|
||||
|
||||
if (exosuit.damage_alert_status)
|
||||
exosuit.pr_manage_warnings.last_damage_warning = -99999999
|
||||
exosuit.pr_manage_warnings.damage_warning_delay = 99999999
|
||||
if (exosuit.damage_alert_status)
|
||||
exosuit.last_damage_warning = -99999999
|
||||
exosuit.damage_warning_delay = 99999999
|
||||
|
||||
exosuit.pr_manage_warnings.process(exosuit)
|
||||
exosuit.process_warnings()
|
||||
else
|
||||
log_debug("ERROR: Random cargo spawn failed for [stock]")
|
||||
|
||||
Reference in New Issue
Block a user