/mob/living/proc/Life(delta_time) (#55534)

- Makes `/mob/living/proc/Life` and most related procs use `delta_time`
- Procs that had snowflaked timing systems, such as breathing, addiction, and advanced diseases were left unchanged.
This commit is contained in:
TemporalOroboros
2021-02-19 10:24:20 -05:00
committed by GitHub
parent 690d26004d
commit e2e7ccdbdc
198 changed files with 2965 additions and 2837 deletions
+2 -1
View File
@@ -32,11 +32,12 @@ SUBSYSTEM_DEF(mobs)
//cache for sanic speed (lists are references anyways)
var/list/currentrun = src.currentrun
var/times_fired = src.times_fired
var/delta_time = wait / (1 SECONDS) // TODO: Make this actually responsive to stuff like pausing and resuming
while(currentrun.len)
var/mob/living/L = currentrun[currentrun.len]
currentrun.len--
if(L)
L.Life(times_fired)
L.Life(delta_time, times_fired)
else
GLOB.mob_living_list.Remove(L)
if (MC_TICK_CHECK)