Renames delta time to be a more obvious name (#74654)

This tracks the seconds per tick of a subsystem, however note that it is
not completely accurate, as subsystems can be delayed, however it's
useful to have this number as a multiplier or ratio, so that if in
future someone changes the subsystem wait time code correctly adjusts
how fast it applies effects

regexes used

git grep --files-with-matches --name-only 'DT_PROB' | xargs -l sed -i
's/DT_PROB/SPT_PROB/g'
git grep --files-with-matches --name-only 'delta_time' | xargs -l sed -i
's/delta_time/seconds_per_tick/g'
This commit is contained in:
oranges
2023-04-12 16:31:07 +12:00
committed by GitHub
parent ffe0ed2f1d
commit 4c48966ff8
468 changed files with 3080 additions and 3080 deletions
@@ -34,7 +34,7 @@
try_eject(forced = TRUE)
return ..()
/datum/computer_file/program/ai_restorer/process_tick(delta_time)
/datum/computer_file/program/ai_restorer/process_tick(seconds_per_tick)
. = ..()
if(!restoring) //Put the check here so we don't check for an ai all the time
return
@@ -26,7 +26,7 @@
QDEL_NULL(alert_control)
return ..()
/datum/computer_file/program/alarm_monitor/process_tick(delta_time)
/datum/computer_file/program/alarm_monitor/process_tick(seconds_per_tick)
..()
if(has_alert)
@@ -16,7 +16,7 @@
var/error = ""
var/executed = 0
/datum/computer_file/program/ntnet_dos/process_tick(delta_time)
/datum/computer_file/program/ntnet_dos/process_tick(seconds_per_tick)
dos_speed = 0
switch(ntnet_status)
if(1)
@@ -40,7 +40,7 @@
borgo.logevent("File request by [username]: /var/logs/syslog")
return TRUE
/datum/computer_file/program/borg_monitor/process_tick(delta_time)
/datum/computer_file/program/borg_monitor/process_tick(seconds_per_tick)
if(!DL_source)
DL_progress = -1
return
@@ -81,7 +81,7 @@
download_completion = FALSE
ui_header = "downloader_finished.gif"
/datum/computer_file/program/ntnetdownload/process_tick(delta_time)
/datum/computer_file/program/ntnetdownload/process_tick(seconds_per_tick)
if(!downloaded_file)
return
if(download_completion >= downloaded_file.size)
@@ -176,7 +176,7 @@
COOLDOWN_START(src, ping_cooldown, PING_COOLDOWN_TIME)
return TRUE
/datum/computer_file/program/chatclient/process_tick(delta_time)
/datum/computer_file/program/chatclient/process_tick(seconds_per_tick)
. = ..()
var/datum/ntnet_conversation/channel = SSmodular_computers.get_chat_channel_by_id(active_channel)
if(program_state != PROGRAM_STATE_KILLED)
@@ -31,7 +31,7 @@
history["demand"] = list()
/datum/computer_file/program/power_monitor/process_tick(delta_time)
/datum/computer_file/program/power_monitor/process_tick(seconds_per_tick)
if(!get_powernet())
search()
else
@@ -196,7 +196,7 @@
computer.setDir(get_dir(here_turf, target_turf))
//We can use process_tick to restart fast processing, since the computer will be running this constantly either way.
/datum/computer_file/program/radar/process_tick(delta_time)
/datum/computer_file/program/radar/process_tick(seconds_per_tick)
if(computer.active_program == src)
START_PROCESSING(SSfastprocess, src)
@@ -106,7 +106,7 @@
for(var/obj/machinery/power/supermatter_crystal/S in supermatters)
. = max(., S.get_status())
/datum/computer_file/program/supermatter_monitor/process_tick(delta_time)
/datum/computer_file/program/supermatter_monitor/process_tick(seconds_per_tick)
..()
var/new_status = get_status()
if(last_status != new_status)