/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
+5 -5
View File
@@ -7,8 +7,8 @@
quality = MINOR_NEGATIVE
text_gain_indication = "<span class='danger'>You feel nervous.</span>"
/datum/mutation/human/nervousness/on_life()
if(prob(10))
/datum/mutation/human/nervousness/on_life(delta_time, times_fired)
if(DT_PROB(5, delta_time))
owner.stuttering = max(10, owner.stuttering)
@@ -152,15 +152,15 @@
text_gain_indication = "<span class='notice'>You feel pretty good, honeydoll.</span>"
text_lose_indication = "<span class='notice'>You feel a little less conversation would be great.</span>"
/datum/mutation/human/elvis/on_life()
/datum/mutation/human/elvis/on_life(delta_time, times_fired)
switch(pick(1,2))
if(1)
if(prob(15))
if(DT_PROB(7.5, delta_time))
var/list/dancetypes = list("swinging", "fancy", "stylish", "20'th century", "jivin'", "rock and roller", "cool", "salacious", "bashing", "smashing")
var/dancemoves = pick(dancetypes)
owner.visible_message("<b>[owner]</b> busts out some [dancemoves] moves!")
if(2)
if(prob(15))
if(DT_PROB(7.5, delta_time))
owner.visible_message("<b>[owner]</b> [pick("jiggles their hips", "rotates their hips", "gyrates their hips", "taps their foot", "dances to an imaginary song", "jiggles their legs", "snaps their fingers")]!")
/datum/mutation/human/elvis/on_acquiring(mob/living/carbon/human/owner)