mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
/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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user