mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +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:
@@ -260,7 +260,7 @@
|
||||
set_light_flags(light_flags & ~LIGHT_ATTACHED)
|
||||
set_light_on(active)
|
||||
|
||||
/obj/item/mod/module/flashlight/on_process(delta_time)
|
||||
/obj/item/mod/module/flashlight/on_process(seconds_per_tick)
|
||||
active_power_cost = base_power * light_range
|
||||
return ..()
|
||||
|
||||
@@ -378,8 +378,8 @@
|
||||
if("temperature_setting")
|
||||
temperature_setting = clamp(value + T0C, min_temp, max_temp)
|
||||
|
||||
/obj/item/mod/module/thermal_regulator/on_active_process(delta_time)
|
||||
mod.wearer.adjust_bodytemperature(get_temp_change_amount((temperature_setting - mod.wearer.bodytemperature), 0.08 * delta_time))
|
||||
/obj/item/mod/module/thermal_regulator/on_active_process(seconds_per_tick)
|
||||
mod.wearer.adjust_bodytemperature(get_temp_change_amount((temperature_setting - mod.wearer.bodytemperature), 0.08 * seconds_per_tick))
|
||||
|
||||
///DNA Lock - Prevents people without the set DNA from activating the suit.
|
||||
/obj/item/mod/module/dna_lock
|
||||
|
||||
Reference in New Issue
Block a user