mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +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:
@@ -25,12 +25,11 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
))
|
||||
|
||||
|
||||
/mob/living/carbon/proc/handle_hallucinations()
|
||||
/mob/living/carbon/proc/handle_hallucinations(delta_time, times_fired)
|
||||
if(!hallucination)
|
||||
return
|
||||
|
||||
hallucination = max(hallucination - 1, 0)
|
||||
|
||||
hallucination = max(hallucination - (0.5 * delta_time), 0)
|
||||
if(world.time < next_hallucination)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user