mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Renames delta time to be a more obvious name (#74654)
This tracks the seconds per tick of a subsystem, however note that it is not completely accurate, as subsystems can be delayed, however it's useful to have this number as a multiplier or ratio, so that if in future someone changes the subsystem wait time code correctly adjusts how fast it applies effects regexes used git grep --files-with-matches --name-only 'DT_PROB' | xargs -l sed -i 's/DT_PROB/SPT_PROB/g' git grep --files-with-matches --name-only 'delta_time' | xargs -l sed -i 's/delta_time/seconds_per_tick/g'
This commit is contained in:
@@ -92,8 +92,8 @@
|
||||
egg = null
|
||||
return ..()
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role/spider/process(delta_time)
|
||||
amount_grown += rand(0, 1) * delta_time
|
||||
/obj/effect/mob_spawn/ghost_role/spider/process(seconds_per_tick)
|
||||
amount_grown += rand(0, 1) * seconds_per_tick
|
||||
if(amount_grown >= 100 && !ready)
|
||||
ready = TRUE
|
||||
notify_ghosts("[src] is ready to hatch!", null, enter_link = "<a href=?src=[REF(src)];activate=1>(Click to play)</a>", source = src, action = NOTIFY_ORBIT, ignore_key = POLL_IGNORE_SPIDER)
|
||||
|
||||
Reference in New Issue
Block a user