Process procs now properly utilize deltatime when implementing rates, timers and probabilities (#52981)

* Process procs now properly use deltatime when implementing rates, timers and probabilities

* Review fixes

* Geiger counters cleanup

Made hardsuit geiger code more similar to geiger counter code
Geiger counters are more responsive now

* Moved SS*_DT defines to subsystems.dm

* Rebase fix

* Redefined the SS*_DT defines to use the subsystem wait vars

* Implemented suggested changes by @AnturK

* Commented /datum/proc/process about the deltatime stuff

* Send delta_time as a process parameter instead of the defines

Also DTfied acid_processing

* Dtfied new acid component
This commit is contained in:
Donkie
2020-09-08 10:24:05 +02:00
committed by GitHub
parent 671c4666ed
commit 53b212ddf2
159 changed files with 808 additions and 719 deletions
+2 -2
View File
@@ -102,7 +102,7 @@
if(2000 to MAXIMUM_BURN_TIMER)
set_light(6)
/obj/structure/fireplace/process()
/obj/structure/fireplace/process(delta_time)
if(!lit)
return
if(world.time > flame_expiry_timer)
@@ -111,7 +111,7 @@
playsound(src, 'sound/effects/comfyfire.ogg',50,FALSE, FALSE, TRUE)
var/turf/T = get_turf(src)
T.hotspot_expose(700, 5)
T.hotspot_expose(700, 2.5 * delta_time)
update_icon()
adjust_light()
@@ -5,7 +5,7 @@
density = TRUE
anchored = TRUE
max_integrity = 200
var/timer = 240 //eventually the person will be freed
var/timer = 480 //eventually the person will be freed
var/mob/living/petrified_mob
/obj/structure/statue/petrified/New(loc, mob/living/L, statue_timer)
@@ -25,10 +25,10 @@
START_PROCESSING(SSobj, src)
..()
/obj/structure/statue/petrified/process()
/obj/structure/statue/petrified/process(delta_time)
if(!petrified_mob)
STOP_PROCESSING(SSobj, src)
timer--
timer -= delta_time
petrified_mob.Stun(40) //So they can't do anything while petrified
if(timer <= 0)
STOP_PROCESSING(SSobj, src)
+1 -1
View File
@@ -50,7 +50,7 @@
add_fingerprint(M)
if(on)
START_PROCESSING(SSmachines, src)
process()
process(SSMACHINES_DT)
soundloop.start()
else
soundloop.stop()
+1 -1
View File
@@ -419,7 +419,7 @@
if(!reclaiming)
reclaiming = TRUE
START_PROCESSING(SSfluids, src)
process()
process(SSFLUIDS_DT)
/obj/structure/sink/kitchen
name = "kitchen sink"