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-11 21:31:07 -07:00
committed by GitHub
parent ffe0ed2f1d
commit 4c48966ff8
468 changed files with 3080 additions and 3080 deletions
+2 -2
View File
@@ -63,10 +63,10 @@
timing = TRUE
update_appearance()
/obj/item/assembly/timer/process(delta_time)
/obj/item/assembly/timer/process(seconds_per_tick)
if(!timing)
return
time -= delta_time
time -= seconds_per_tick
if(time <= 0)
timing = FALSE
timer_end()