diff --git a/code/_onclick/hud/action.dm b/code/_onclick/hud/action.dm index d4f476f1ee4..9789fb3d0c9 100644 --- a/code/_onclick/hud/action.dm +++ b/code/_onclick/hud/action.dm @@ -82,9 +82,6 @@ /datum/action/proc/Deactivate() return -/datum/action/process() - return - /datum/action/proc/CheckRemoval(mob/living/user) // 1 if action is no longer valid for this mob and should be removed return 0 diff --git a/code/_onclick/hud/rigmech.dm b/code/_onclick/hud/rigmech.dm index 2922beb4158..31d3dbe43b1 100644 --- a/code/_onclick/hud/rigmech.dm +++ b/code/_onclick/hud/rigmech.dm @@ -28,7 +28,7 @@ main_hud.remove_minihud(src) // Update the hud -/datum/mini_hud/process() +/datum/mini_hud/process(delta_time) return PROCESS_KILL // You shouldn't be here! // Return a list of screen objects we use @@ -69,7 +69,7 @@ owner_rig = null return ..() -/datum/mini_hud/rig/process() +/datum/mini_hud/rig/process(delta_time) if(!owner_rig) qdel(src) return @@ -119,7 +119,7 @@ owner_mech = null return ..() -/datum/mini_hud/mech/process() +/datum/mini_hud/mech/process(delta_time) if(!owner_mech) qdel(src) return diff --git a/code/datums/beam.dm b/code/datums/beam.dm index 24f5e6c91f4..2428a924f52 100644 --- a/code/datums/beam.dm +++ b/code/datums/beam.dm @@ -160,7 +160,7 @@ ..() on_contact(A) -/obj/effect/ebeam/reactive/process() +/obj/effect/ebeam/reactive/process(delta_time) for(var/A in loc) on_contact(A) diff --git a/code/datums/components/chasm.dm b/code/datums/components/chasm.dm index 8bba40e8c78..1669541872b 100644 --- a/code/datums/components/chasm.dm +++ b/code/datums/components/chasm.dm @@ -32,7 +32,7 @@ START_PROCESSING(SSobj, src) drop_stuff(AM) -/datum/component/chasm/process() +/datum/component/chasm/process(delta_time) if (!drop_stuff()) STOP_PROCESSING(SSobj, src) diff --git a/code/datums/components/lockon_aiming.dm b/code/datums/components/lockon_aiming.dm index 916508e7ee4..35dc8654bd6 100644 --- a/code/datums/components/lockon_aiming.dm +++ b/code/datums/components/lockon_aiming.dm @@ -116,7 +116,7 @@ return LAZYREMOVE(immune_weakrefs, A.weak_reference) -/datum/component/lockon_aiming/process() +/datum/component/lockon_aiming/process(delta_time) if(update_disabled) return if(!last_location) diff --git a/code/datums/components/mood.dm b/code/datums/components/mood.dm index 0fb241b1f7e..ca2ab5aae21 100644 --- a/code/datums/components/mood.dm +++ b/code/datums/components/mood.dm @@ -172,7 +172,7 @@ break ///Called on SSmood process -/datum/component/mood/process() +/datum/component/mood/process(delta_time) switch(mood_level) if(1) setSanity(sanity-0.3, SANITY_INSANE) diff --git a/code/datums/components/nanites.dm b/code/datums/components/nanites.dm index 2c1a48af0b8..e63d0c9ad1b 100644 --- a/code/datums/components/nanites.dm +++ b/code/datums/components/nanites.dm @@ -95,7 +95,7 @@ else adjust_nanites(null, arguments[1]) //just add to the nanite volume -/datum/component/nanites/process() +/datum/component/nanites/process(delta_time) adjust_nanites(null, regen_rate) for(var/X in programs) var/datum/nanite_program/NP = X diff --git a/code/datums/components/plumbing/_plumbing.dm b/code/datums/components/plumbing/_plumbing.dm index 9d4a16ac920..16152d72b01 100644 --- a/code/datums/components/plumbing/_plumbing.dm +++ b/code/datums/components/plumbing/_plumbing.dm @@ -34,7 +34,7 @@ if(use_overlays) create_overlays() -/datum/component/plumbing/process() +/datum/component/plumbing/process(delta_time) if(!demand_connects || !reagents) STOP_PROCESSING(SSfluids, src) return diff --git a/code/datums/components/radioactive.dm b/code/datums/components/radioactive.dm index 0a54a56aa89..11375767ea4 100644 --- a/code/datums/components/radioactive.dm +++ b/code/datums/components/radioactive.dm @@ -18,7 +18,7 @@ hl3_release_date = _half_life can_contaminate = _can_contaminate - if(istype(parent, /atom)) + if(istype(parent, /atom)) RegisterSignal(parent, COMSIG_PARENT_EXAMINE, .proc/rad_examine) if(istype(parent, /obj/item)) RegisterSignal(parent, COMSIG_ITEM_ATTACK, .proc/rad_attack) @@ -35,7 +35,7 @@ STOP_PROCESSING(SSradiation, src) return ..() -/datum/component/radioactive/process() +/datum/component/radioactive/process(delta_time) if(!prob(50)) return radiation_pulse(parent, strength, RAD_DISTANCE_COEFFICIENT*2, FALSE, can_contaminate) @@ -83,4 +83,4 @@ #undef RAD_AMOUNT_LOW #undef RAD_AMOUNT_MEDIUM #undef RAD_AMOUNT_HIGH -#undef RAD_AMOUNT_EXTREME \ No newline at end of file +#undef RAD_AMOUNT_EXTREME diff --git a/code/datums/components/rot.dm b/code/datums/components/rot.dm index 18629a725fe..0f92ddf1e33 100644 --- a/code/datums/components/rot.dm +++ b/code/datums/components/rot.dm @@ -10,7 +10,7 @@ START_PROCESSING(SSprocessing, src) -/datum/component/rot/process() +/datum/component/rot/process(delta_time) var/atom/A = parent var/turf/open/T = get_turf(A) @@ -32,7 +32,7 @@ return COMPONENT_INCOMPATIBLE . = ..() -/datum/component/rot/corpse/process() +/datum/component/rot/corpse/process(delta_time) var/mob/living/carbon/C = parent if(C.stat != DEAD) qdel(src) diff --git a/code/datums/components/spawner.dm b/code/datums/components/spawner.dm index 8f5ca86cec5..a89000626f0 100644 --- a/code/datums/components/spawner.dm +++ b/code/datums/components/spawner.dm @@ -24,7 +24,7 @@ RegisterSignal(parent, list(COMSIG_PARENT_QDELETING), .proc/stop_spawning) START_PROCESSING(SSprocessing, src) -/datum/component/spawner/process() +/datum/component/spawner/process(delta_time) try_spawn_mob() diff --git a/code/datums/components/wet_floor.dm b/code/datums/components/wet_floor.dm index 3aa3bfdb6b9..b5845ffa306 100644 --- a/code/datums/components/wet_floor.dm +++ b/code/datums/components/wet_floor.dm @@ -109,7 +109,7 @@ for(var/i in time_left_list) . = max(., time_left_list[i]) -/datum/component/wet_floor/process() +/datum/component/wet_floor/process(delta_time) var/turf/open/T = parent var/diff = world.time - last_process var/decrease = 0 diff --git a/code/datums/elements/digitalcamo.dm b/code/datums/elements/digitalcamo.dm index ebb51ec8a55..7c7f7070c44 100644 --- a/code/datums/elements/digitalcamo.dm +++ b/code/datums/elements/digitalcamo.dm @@ -29,7 +29,7 @@ /datum/element/digitalcamo/proc/can_track(datum/source) return COMPONENT_CANT_TRACK -/datum/element/digitalcamo/process() +/datum/element/digitalcamo/process(delta_time) for(var/mob/living/silicon/ai/AI in GLOB.player_list) for(var/mob in attached_mobs) AI.client.images |= attached_mobs[mob] diff --git a/code/datums/elements/earhealing.dm b/code/datums/elements/earhealing.dm index 1a01f3ae56b..bfe7a1cc3c7 100644 --- a/code/datums/elements/earhealing.dm +++ b/code/datums/elements/earhealing.dm @@ -23,7 +23,7 @@ else user_by_item -= source -/datum/element/earhealing/process() +/datum/element/earhealing/process(delta_time) for(var/i in user_by_item) var/mob/living/carbon/user = user_by_item[i] if(HAS_TRAIT(user, TRAIT_DEAF)) diff --git a/code/datums/position_point_vector.dm b/code/datums/position_point_vector.dm index f55b3e3ffc9..8063d633612 100644 --- a/code/datums/position_point_vector.dm +++ b/code/datums/position_point_vector.dm @@ -216,7 +216,7 @@ last_move = world.time START_PROCESSING(SSprojectiles, src) -/datum/point/vector/processed/process() +/datum/point/vector/processed/process(delta_time) if(paused) last_move += world.time - last_process last_process = world.time diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index f801544e095..d28b20ea1a5 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -323,7 +323,7 @@ return 1 /* -/obj/machinery/computer/scan_consolenew/process() //not really used right now +/obj/machinery/computer/scan_consolenew/process(delta_time) //not really used right now if(stat & (NOPOWER|BROKEN)) return if (!( src.status )) //remove this diff --git a/code/game/gamemodes/changeling/powers/armblade.dm b/code/game/gamemodes/changeling/powers/armblade.dm index f047d396f5c..7e548295c4a 100644 --- a/code/game/gamemodes/changeling/powers/armblade.dm +++ b/code/game/gamemodes/changeling/powers/armblade.dm @@ -93,7 +93,7 @@ viewers(user) << "[user] is impaling [T.himself] with the [src.name]! It looks like [T.he] [T.is] trying to commit suicide." return(BRUTELOSS) -/obj/item/melee/changeling/process() //Stolen from ninja swords. +/obj/item/melee/changeling/process(delta_time) //Stolen from ninja swords. if(!creator || loc != creator || !creator.item_is_in_hands(src)) // Tidy up a bit. if(istype(loc,/mob/living)) diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm index 8f550fbb05d..a348a9359dc 100644 --- a/code/game/gamemodes/cult/cult_structures.dm +++ b/code/game/gamemodes/cult/cult_structures.dm @@ -103,7 +103,7 @@ last_activation = world.time return 0 -/obj/structure/cult/pylon/process() +/obj/structure/cult/pylon/process(delta_time) if(!isbroken && (last_activation < world.time + activation_cooldown) && pylon_unique()) flick("[initial(icon_state)]-surge",src) diff --git a/code/game/gamemodes/cult/narsie.dm b/code/game/gamemodes/cult/narsie.dm index fe5c2234f1b..55bd5cc2ae1 100644 --- a/code/game/gamemodes/cult/narsie.dm +++ b/code/game/gamemodes/cult/narsie.dm @@ -58,7 +58,7 @@ var/global/list/narsie_list = list() SSemergencyshuttle.call_evac() SSemergencyshuttle.launch_time = 0 // Cannot recall -/obj/singularity/narsie/process() +/obj/singularity/narsie/process(delta_time) eat() if (!target || prob(5)) diff --git a/code/game/gamemodes/endgame/supermatter_cascade/blob.dm b/code/game/gamemodes/endgame/supermatter_cascade/blob.dm index e315047e59a..731122b0460 100644 --- a/code/game/gamemodes/endgame/supermatter_cascade/blob.dm +++ b/code/game/gamemodes/endgame/supermatter_cascade/blob.dm @@ -23,7 +23,7 @@ STOP_PROCESSING(SSturfs, src) return ..() -/turf/unsimulated/wall/supermatter/process() +/turf/unsimulated/wall/supermatter/process(delta_time) // Only check infrequently. if(next_check>world.time) return diff --git a/code/game/gamemodes/endgame/supermatter_cascade/portal.dm b/code/game/gamemodes/endgame/supermatter_cascade/portal.dm index 63548a339ca..ded0f137435 100644 --- a/code/game/gamemodes/endgame/supermatter_cascade/portal.dm +++ b/code/game/gamemodes/endgame/supermatter_cascade/portal.dm @@ -21,7 +21,7 @@ /obj/singularity/narsie/large/exit/update_icon() overlays = 0 -/obj/singularity/narsie/large/exit/process() +/obj/singularity/narsie/large/exit/process(delta_time) for(var/mob/M in player_list) if(M.client) M.see_rift(src) diff --git a/code/game/gamemodes/epidemic/epidemic.dm b/code/game/gamemodes/epidemic/epidemic.dm index 8bfc4bced43..b71c2543715 100644 --- a/code/game/gamemodes/epidemic/epidemic.dm +++ b/code/game/gamemodes/epidemic/epidemic.dm @@ -118,7 +118,7 @@ ..() -/datum/game_mode/epidemic/process() +/datum/game_mode/epidemic/process(delta_time) if(stage == 1 && cruiser_seconds() < 60 * 30) announce_to_kill_crew() stage = 2 diff --git a/code/game/gamemodes/game_mode_latespawn.dm b/code/game/gamemodes/game_mode_latespawn.dm index 5b042983fe0..67580077aaf 100644 --- a/code/game/gamemodes/game_mode_latespawn.dm +++ b/code/game/gamemodes/game_mode_latespawn.dm @@ -11,9 +11,9 @@ usable_templates |= A return usable_templates -///process() +///process(delta_time) ///Called by the gameSSticker -/datum/game_mode/process() +/datum/game_mode/process(delta_time) // Slow this down a bit so latejoiners have a chance of being antags. process_count++ if(process_count >= 10) diff --git a/code/game/gamemodes/meteor/meteor.dm b/code/game/gamemodes/meteor/meteor.dm index bb16f23ab00..23fa99a7567 100644 --- a/code/game/gamemodes/meteor/meteor.dm +++ b/code/game/gamemodes/meteor/meteor.dm @@ -14,7 +14,7 @@ defer_powernet_rebuild = 2//Might help with the lag ..() -/datum/game_mode/meteor/process() +/datum/game_mode/meteor/process(delta_time) if(world.time >= next_wave) next_wave = world.time + meteor_wave_delay spawn() spawn_meteors(6, meteors_normal) @@ -46,4 +46,4 @@ ..() return 1 -#undef METEOR_DELAY \ No newline at end of file +#undef METEOR_DELAY diff --git a/code/game/gamemodes/technomancer/core_obj.dm b/code/game/gamemodes/technomancer/core_obj.dm index bbf45aa4ac3..1483d7ff798 100644 --- a/code/game/gamemodes/technomancer/core_obj.dm +++ b/code/game/gamemodes/technomancer/core_obj.dm @@ -80,7 +80,7 @@ energy = min(energy + amount, max_energy) return 1 -/obj/item/technomancer_core/process() +/obj/item/technomancer_core/process(delta_time) var/old_energy = energy regenerate() pay_dues() diff --git a/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm b/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm index 9d78afe0b2c..68e15146e3c 100644 --- a/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm +++ b/code/game/gamemodes/technomancer/devices/gloves_of_regen.dm @@ -45,7 +45,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/clothing/gloves/regen/process() +/obj/item/clothing/gloves/regen/process(delta_time) if(!wearer || wearer.isSynthetic() || wearer.stat == DEAD || wearer.nutrition <= 10) return // Robots and dead people don't have a metabolism. @@ -63,4 +63,4 @@ wearer.nutrition = max(wearer.nutrition - 10, 0) if(wearer.getCloneLoss()) wearer.adjustCloneLoss(-0.1) - wearer.nutrition = max(wearer.nutrition - 20, 0) \ No newline at end of file + wearer.nutrition = max(wearer.nutrition - 20, 0) diff --git a/code/game/gamemodes/technomancer/spells/aspect_aura.dm b/code/game/gamemodes/technomancer/spells/aspect_aura.dm index 5290eb9ef6a..a18000b81d2 100644 --- a/code/game/gamemodes/technomancer/spells/aspect_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aspect_aura.dm @@ -50,7 +50,7 @@ STOP_PROCESSING(SSobj, src) ..() -/obj/item/spell/aura/process() +/obj/item/spell/aura/process(delta_time) return /obj/item/spell/aura/fire @@ -61,7 +61,7 @@ aspect = ASPECT_FIRE glow_color = "#FF6A00" -/obj/item/spell/aura/fire/process() +/obj/item/spell/aura/fire/process(delta_time) if(!pay_energy(100)) qdel(src) var/list/nearby_mobs = range(4,owner) @@ -83,7 +83,7 @@ aspect = ASPECT_FROST glow_color = "#FF6A00" -/obj/item/spell/aura/frost/process() +/obj/item/spell/aura/frost/process(delta_time) if(!pay_energy(100)) qdel(src) var/list/nearby_mobs = range(4,owner) @@ -109,7 +109,7 @@ var/regen_tick = 0 var/heal_allies_only = 1 -/obj/item/spell/aura/biomed/process() +/obj/item/spell/aura/biomed/process(delta_time) if(!pay_energy(75)) qdel(src) regen_tick++ @@ -132,4 +132,4 @@ /obj/item/spell/aura/biomed/on_use_cast(mob/living/user) heal_allies_only = !heal_allies_only - user << "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you." \ No newline at end of file + user << "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you." diff --git a/code/game/gamemodes/technomancer/spells/aura/aura.dm b/code/game/gamemodes/technomancer/spells/aura/aura.dm index bfb6de3d9ae..6a632f9e742 100644 --- a/code/game/gamemodes/technomancer/spells/aura/aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/aura.dm @@ -17,5 +17,5 @@ log_and_message_admins("has stopped maintaining [src].") return ..() -/obj/item/spell/aura/process() +/obj/item/spell/aura/process(delta_time) return diff --git a/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm b/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm index 29127fc99b1..761fa7a2435 100644 --- a/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/biomed_aura.dm @@ -17,7 +17,7 @@ var/regen_tick = 0 var/heal_allies_only = 1 -/obj/item/spell/aura/biomed/process() +/obj/item/spell/aura/biomed/process(delta_time) if(!pay_energy(75)) qdel(src) regen_tick++ diff --git a/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm b/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm index bd21a3e7bcb..9d0ea99b57a 100644 --- a/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/fire_aura.dm @@ -17,7 +17,7 @@ aspect = ASPECT_FIRE glow_color = "#FF6A00" -/obj/item/spell/aura/fire/process() +/obj/item/spell/aura/fire/process(delta_time) if(!pay_energy(100)) qdel(src) var/list/nearby_things = range(round(calculate_spell_power(4)),owner) diff --git a/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm b/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm index 1761205e0a8..03bc013e6fc 100644 --- a/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/frost_aura.dm @@ -17,7 +17,7 @@ aspect = ASPECT_FROST glow_color = "#00B3FF" -/obj/item/spell/aura/frost/process() +/obj/item/spell/aura/frost/process(delta_time) if(!pay_energy(100)) qdel(src) var/list/nearby_mobs = range(round(calculate_spell_power(4)),owner) diff --git a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm index 71029ef4081..1896cc69ba9 100644 --- a/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/shock_aura.dm @@ -16,7 +16,7 @@ aspect = ASPECT_SHOCK glow_color = "#0000FF" //TODO -/obj/item/spell/aura/shock/process() +/obj/item/spell/aura/shock/process(delta_time) if(!pay_energy(500)) qdel(src) var/list/nearby_mobs = range(calculate_spell_power(4),owner) @@ -41,4 +41,4 @@ L.electrocute_act(power, src, 0.75, BP_TORSO) - adjust_instability(3) \ No newline at end of file + adjust_instability(3) diff --git a/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm b/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm index 1414e562130..70fca4645a7 100644 --- a/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm +++ b/code/game/gamemodes/technomancer/spells/aura/unstable_aura.dm @@ -17,7 +17,7 @@ aspect = ASPECT_UNSTABLE glow_color = "#CC00CC" -/obj/item/spell/aura/unstable/process() +/obj/item/spell/aura/unstable/process(delta_time) if(!pay_energy(200)) qdel(src) var/list/nearby_mobs = range(calculate_spell_power(14),owner) @@ -42,4 +42,4 @@ to_chat(L, "You feel almost like you're melting from the inside!") - adjust_instability(2) \ No newline at end of file + adjust_instability(2) diff --git a/code/game/gamemodes/technomancer/spells/energy_siphon.dm b/code/game/gamemodes/technomancer/spells/energy_siphon.dm index 271375e3707..75f49e44942 100644 --- a/code/game/gamemodes/technomancer/spells/energy_siphon.dm +++ b/code/game/gamemodes/technomancer/spells/energy_siphon.dm @@ -29,7 +29,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/spell/energy_siphon/process() +/obj/item/spell/energy_siphon/process(delta_time) if(!siphoning) return if(!pay_energy(100)) @@ -202,4 +202,4 @@ #undef SIPHON_CELL_TO_ENERGY #undef SIPHON_FBP_TO_ENERGY -#undef SIPHON_CORE_TO_ENERGY \ No newline at end of file +#undef SIPHON_CORE_TO_ENERGY diff --git a/code/game/gamemodes/technomancer/spells/flame_tongue.dm b/code/game/gamemodes/technomancer/spells/flame_tongue.dm index f1b45aa3784..cb1af7d3925 100644 --- a/code/game/gamemodes/technomancer/spells/flame_tongue.dm +++ b/code/game/gamemodes/technomancer/spells/flame_tongue.dm @@ -29,7 +29,7 @@ name = "flame" eye_safety_modifier = 3 -/obj/item/weldingtool/spell/process() +/obj/item/weldingtool/spell/process(delta_time) return //Needed to make the spell welder have infinite fuel. Don't worry, it uses energy instead. diff --git a/code/game/gamemodes/technomancer/spells/phase_shift.dm b/code/game/gamemodes/technomancer/spells/phase_shift.dm index ef1a8e10524..4a313cd5afb 100644 --- a/code/game/gamemodes/technomancer/spells/phase_shift.dm +++ b/code/game/gamemodes/technomancer/spells/phase_shift.dm @@ -39,7 +39,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/effect/phase_shift/process() +/obj/effect/phase_shift/process(delta_time) for(var/mob/living/L in contents) L.adjust_instability(2) diff --git a/code/game/gamemodes/technomancer/spells/radiance.dm b/code/game/gamemodes/technomancer/spells/radiance.dm index a84521cf82d..f9d7186f82f 100644 --- a/code/game/gamemodes/technomancer/spells/radiance.dm +++ b/code/game/gamemodes/technomancer/spells/radiance.dm @@ -27,7 +27,7 @@ log_and_message_admins("has stopped maintaining [src].") return ..() -/obj/item/spell/radiance/process() +/obj/item/spell/radiance/process(delta_time) var/turf/T = get_turf(src) var/datum/gas_mixture/removed = null var/datum/gas_mixture/env = null diff --git a/code/game/machinery/Beacon.dm b/code/game/machinery/Beacon.dm index dd9eb6e13fc..e324d5842e2 100644 --- a/code/game/machinery/Beacon.dm +++ b/code/game/machinery/Beacon.dm @@ -38,7 +38,7 @@ else icon_state = "[state]" -/obj/machinery/bluespace_beacon/process() +/obj/machinery/bluespace_beacon/process(delta_time) if(!Beacon) var/turf/T = src.loc Beacon = new /obj/item/radio/beacon @@ -48,4 +48,4 @@ if(Beacon.loc != src.loc) Beacon.loc = src.loc - updateicon() \ No newline at end of file + updateicon() diff --git a/code/game/machinery/OpTable.dm b/code/game/machinery/OpTable.dm index 9cac740a730..736cd1f15f4 100644 --- a/code/game/machinery/OpTable.dm +++ b/code/game/machinery/OpTable.dm @@ -73,7 +73,7 @@ icon_state = "table2-idle" return 0 -/obj/machinery/optable/process() +/obj/machinery/optable/process(delta_time) check_victim() /obj/machinery/optable/proc/take_victim(mob/living/carbon/C, mob/living/carbon/user as mob) diff --git a/code/game/machinery/Sleeper.dm b/code/game/machinery/Sleeper.dm index 8060564ff36..fbae4514c16 100644 --- a/code/game/machinery/Sleeper.dm +++ b/code/game/machinery/Sleeper.dm @@ -249,7 +249,7 @@ . = ..() update_icon() -/obj/machinery/sleeper/process() +/obj/machinery/sleeper/process(delta_time) if(stat & (NOPOWER|BROKEN)) return if(occupant) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index ef170120d8c..f7ae7e473ba 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -156,7 +156,7 @@ Class Procs: qdel(A) return ..() -/obj/machinery/process()//If you dont use process or power why are you here +/obj/machinery/process(delta_time)//If you dont use process or power why are you here if(!(use_power || idle_power_usage || active_power_usage)) return PROCESS_KILL diff --git a/code/game/machinery/airconditioner_vr.dm b/code/game/machinery/airconditioner_vr.dm index 0791ac8649c..6d98c9a469b 100644 --- a/code/game/machinery/airconditioner_vr.dm +++ b/code/game/machinery/airconditioner_vr.dm @@ -67,7 +67,7 @@ change_mode(MODE_IDLE) update_icon() -/obj/machinery/power/thermoregulator/process() +/obj/machinery/power/thermoregulator/process(delta_time) if(!on) return if(!powernet) diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 4b396714dfb..95899a6794d 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -143,7 +143,7 @@ if(!master_is_operating()) elect_master() -/obj/machinery/alarm/process() +/obj/machinery/alarm/process(delta_time) if((stat & (NOPOWER|BROKEN)) || shorted) return @@ -893,7 +893,7 @@ FIRE ALARM alarm() return -/obj/machinery/firealarm/process()//Note: this processing was mostly phased out due to other code, and only runs when needed +/obj/machinery/firealarm/process(delta_time)//Note: this processing was mostly phased out due to other code, and only runs when needed if(stat & (NOPOWER|BROKEN)) return diff --git a/code/game/machinery/atmo_control.dm b/code/game/machinery/atmo_control.dm index e7217c98b43..85fba33ded6 100644 --- a/code/game/machinery/atmo_control.dm +++ b/code/game/machinery/atmo_control.dm @@ -25,7 +25,7 @@ /obj/machinery/air_sensor/update_icon() icon_state = "gsensor[on]" -/obj/machinery/air_sensor/process() +/obj/machinery/air_sensor/process(delta_time) if(on) var/datum/signal/signal = new signal.transmission_method = 1 //radio signal @@ -365,7 +365,7 @@ obj/machinery/computer/general_air_control/Destroy() var/on_temperature = 1200 circuit = /obj/item/circuitboard/air_management/injector_control -/obj/machinery/computer/general_air_control/fuel_injection/process() +/obj/machinery/computer/general_air_control/fuel_injection/process(delta_time) if(automation) if(!radio_connection) return 0 diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index 87e6e200147..153b67b351a 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -180,7 +180,7 @@ update_flag else return 1 -/obj/machinery/portable_atmospherics/canister/process() +/obj/machinery/portable_atmospherics/canister/process(delta_time) if (destroyed) return diff --git a/code/game/machinery/atmoalter/meter.dm b/code/game/machinery/atmoalter/meter.dm index 83cbad68cc8..8cbee1e691b 100644 --- a/code/game/machinery/atmoalter/meter.dm +++ b/code/game/machinery/atmoalter/meter.dm @@ -31,7 +31,7 @@ P = locate(/obj/machinery/atmospherics/pipe) in loc return P -/obj/machinery/meter/process() +/obj/machinery/meter/process(delta_time) if(!target) icon_state = "meterX" return 0 diff --git a/code/game/machinery/atmoalter/portable_atmospherics.dm b/code/game/machinery/atmoalter/portable_atmospherics.dm index 01a388e0252..b7f4591896e 100644 --- a/code/game/machinery/atmoalter/portable_atmospherics.dm +++ b/code/game/machinery/atmoalter/portable_atmospherics.dm @@ -34,7 +34,7 @@ connect(port) update_icon() -/obj/machinery/portable_atmospherics/process() +/obj/machinery/portable_atmospherics/process(delta_time) if(!connected_port) //only react when pipe_network will ont it do it for you //Allow for reactions air_contents.react() diff --git a/code/game/machinery/atmoalter/pump.dm b/code/game/machinery/atmoalter/pump.dm index 44601ef11f9..944aa3880c9 100644 --- a/code/game/machinery/atmoalter/pump.dm +++ b/code/game/machinery/atmoalter/pump.dm @@ -60,7 +60,7 @@ ..(severity) -/obj/machinery/portable_atmospherics/powered/pump/process() +/obj/machinery/portable_atmospherics/powered/pump/process(delta_time) ..() var/power_draw = -1 diff --git a/code/game/machinery/atmoalter/pump_vr.dm b/code/game/machinery/atmoalter/pump_vr.dm index b242e1774ab..94274b66dd0 100644 --- a/code/game/machinery/atmoalter/pump_vr.dm +++ b/code/game/machinery/atmoalter/pump_vr.dm @@ -39,7 +39,7 @@ if (old_stat != stat) update_icon() -/obj/machinery/portable_atmospherics/powered/pump/huge/process() +/obj/machinery/portable_atmospherics/powered/pump/huge/process(delta_time) if(!anchored || (stat & (NOPOWER|BROKEN))) on = 0 last_flow_rate = 0 diff --git a/code/game/machinery/atmoalter/scrubber.dm b/code/game/machinery/atmoalter/scrubber.dm index 77280967ab7..ca5b7775e8c 100644 --- a/code/game/machinery/atmoalter/scrubber.dm +++ b/code/game/machinery/atmoalter/scrubber.dm @@ -58,7 +58,7 @@ return -/obj/machinery/portable_atmospherics/powered/scrubber/process() +/obj/machinery/portable_atmospherics/powered/scrubber/process(delta_time) ..() var/power_draw = -1 @@ -192,7 +192,7 @@ if (old_stat != stat) update_icon() -/obj/machinery/portable_atmospherics/powered/scrubber/huge/process() +/obj/machinery/portable_atmospherics/powered/scrubber/huge/process(delta_time) if(!anchored || (stat & (NOPOWER|BROKEN))) on = 0 last_flow_rate = 0 diff --git a/code/game/machinery/atmoalter/zvent.dm b/code/game/machinery/atmoalter/zvent.dm index 7df54a0bb8e..0857757e7c9 100644 --- a/code/game/machinery/atmoalter/zvent.dm +++ b/code/game/machinery/atmoalter/zvent.dm @@ -9,7 +9,7 @@ var/on = 0 var/volume_rate = 800 -/obj/machinery/zvent/process() +/obj/machinery/zvent/process(delta_time) //all this object does, is make its turf share air with the ones above and below it, if they have a vent too. if (istype(loc,/turf/simulated)) //if we're not on a valid turf, forget it diff --git a/code/game/machinery/bomb_tester_vr.dm b/code/game/machinery/bomb_tester_vr.dm index 60ef87816d1..b8cb7454e50 100644 --- a/code/game/machinery/bomb_tester_vr.dm +++ b/code/game/machinery/bomb_tester_vr.dm @@ -54,7 +54,7 @@ simulation_finish(1) return ..() -/obj/machinery/bomb_tester/process() +/obj/machinery/bomb_tester/process(delta_time) ..() if(test_canister && !Adjacent(test_canister)) test_canister = null diff --git a/code/game/machinery/camera/camera.dm b/code/game/machinery/camera/camera.dm index e12b246b930..315c17d48eb 100644 --- a/code/game/machinery/camera/camera.dm +++ b/code/game/machinery/camera/camera.dm @@ -95,7 +95,7 @@ wires = null return ..() -/obj/machinery/camera/process() +/obj/machinery/camera/process(delta_time) if((stat & EMPED) && world.time >= affected_by_emp_until) stat &= ~EMPED cancelCameraAlarm() diff --git a/code/game/machinery/cell_charger.dm b/code/game/machinery/cell_charger.dm index 959af4ecb99..14d5b75bed7 100644 --- a/code/game/machinery/cell_charger.dm +++ b/code/game/machinery/cell_charger.dm @@ -116,7 +116,7 @@ ..(severity) -/obj/machinery/cell_charger/process() +/obj/machinery/cell_charger/process(delta_time) //world << "ccpt [charging] [stat]" if((stat & (BROKEN|NOPOWER)) || !anchored) update_use_power(USE_POWER_OFF) @@ -156,4 +156,4 @@ playsound(user, 'sound/machines/click.ogg', 50, 1) var/obj/machinery/cell_charger/C = new(user.loc) C.add_fingerprint(user) - qdel(src) \ No newline at end of file + qdel(src) diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm index b6ed2d46b41..8f4c1578e9b 100644 --- a/code/game/machinery/cloning.dm +++ b/code/game/machinery/cloning.dm @@ -175,7 +175,7 @@ return 1 //Grow clones to maturity then kick them out. FREELOADERS -/obj/machinery/clonepod/process() +/obj/machinery/clonepod/process(delta_time) if(stat & NOPOWER) //Autoeject if power is lost if(occupant) locked = 0 diff --git a/code/game/machinery/computer/aifixer.dm b/code/game/machinery/computer/aifixer.dm index 4424db2f09e..39a5d712c55 100644 --- a/code/game/machinery/computer/aifixer.dm +++ b/code/game/machinery/computer/aifixer.dm @@ -91,7 +91,7 @@ onclose(user, "computer") return -/obj/machinery/computer/aifixer/process() +/obj/machinery/computer/aifixer/process(delta_time) if(..()) src.updateDialog() return diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm index 3e9593da811..e0e8517529d 100644 --- a/code/game/machinery/computer/camera.dm +++ b/code/game/machinery/computer/camera.dm @@ -149,7 +149,7 @@ if(can_access_camera(jump_to)) switch_to_camera(user,jump_to) -/obj/machinery/computer/security/process() +/obj/machinery/computer/security/process(delta_time) if(cache_id != camera_repository.camera_cache_id) cache_id = camera_repository.camera_cache_id SSnanoui.update_uis(src) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 57b85a6c2b4..3cbcd9ee81c 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -43,7 +43,7 @@ ATC = GLOB.lore_atc crew_announcement.newscast = 1 -/obj/machinery/computer/communications/process() +/obj/machinery/computer/communications/process(delta_time) if(..()) if(state != STATE_STATUSDISPLAY) src.updateDialog() diff --git a/code/game/machinery/computer/computer.dm b/code/game/machinery/computer/computer.dm index ea9e4999ec0..a9f906de090 100644 --- a/code/game/machinery/computer/computer.dm +++ b/code/game/machinery/computer/computer.dm @@ -23,7 +23,7 @@ power_change() update_icon() -/obj/machinery/computer/process() +/obj/machinery/computer/process(delta_time) if(stat & (NOPOWER|BROKEN)) return 0 return 1 diff --git a/code/game/machinery/computer/guestpass.dm b/code/game/machinery/computer/guestpass.dm index 03bd9efdbf2..c51940e22cd 100755 --- a/code/game/machinery/computer/guestpass.dm +++ b/code/game/machinery/computer/guestpass.dm @@ -63,7 +63,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/card/id/guest/process() +/obj/item/card/id/guest/process(delta_time) if(expired == 0 && world.time >= expiration_time) visible_message("\The [src] flashes a few times before turning red.") icon_state = "guest_invalid" diff --git a/code/game/machinery/computer/pod.dm b/code/game/machinery/computer/pod.dm index 44b373c3941..9b442120ea0 100644 --- a/code/game/machinery/computer/pod.dm +++ b/code/game/machinery/computer/pod.dm @@ -137,7 +137,7 @@ return -/obj/machinery/computer/pod/process() +/obj/machinery/computer/pod/process(delta_time) if(!..()) return if(timing) diff --git a/code/game/machinery/computer3/computer.dm b/code/game/machinery/computer3/computer.dm index f0c0b7573bc..f98b9e88c8b 100644 --- a/code/game/machinery/computer3/computer.dm +++ b/code/game/machinery/computer3/computer.dm @@ -285,7 +285,7 @@ else stat &= ~NOPOWER -/obj/machinery/computer3/process() +/obj/machinery/computer3/process(delta_time) auto_use_power() power_change() update_icon() diff --git a/code/game/machinery/computer3/computers/HolodeckControl.dm b/code/game/machinery/computer3/computers/HolodeckControl.dm index 4f839940807..09ee16fef75 100644 --- a/code/game/machinery/computer3/computers/HolodeckControl.dm +++ b/code/game/machinery/computer3/computers/HolodeckControl.dm @@ -120,7 +120,7 @@ /datum/file/program/holodeck/Reset() emergencyShutdown() -/datum/file/program/holodeck/process() +/datum/file/program/holodeck/process(delta_time) if(active) if(!checkInteg(linkedholodeck)) damaged = 1 diff --git a/code/game/machinery/computer3/computers/prisoner.dm b/code/game/machinery/computer3/computers/prisoner.dm index 450874205f1..2f4ef5a865c 100644 --- a/code/game/machinery/computer3/computers/prisoner.dm +++ b/code/game/machinery/computer3/computers/prisoner.dm @@ -64,7 +64,7 @@ popup.open() return -/datum/file/program/prisoner/process() +/datum/file/program/prisoner/process(delta_time) if(!..()) interact() return diff --git a/code/game/machinery/computer3/program.dm b/code/game/machinery/computer3/program.dm index 5b3cf5b22eb..48359b63810 100644 --- a/code/game/machinery/computer3/program.dm +++ b/code/game/machinery/computer3/program.dm @@ -117,7 +117,7 @@ Programs are a file that can be executed /* The computer object will transfer process() calls to the program. */ -/datum/file/program/process() +/datum/file/program/process(delta_time) if(refresh && computer && !computer.stat) computer.updateDialog() update_icon() diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index cd9627624aa..3ead16060cc 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -53,7 +53,7 @@ beaker = null . = ..() -/obj/machinery/atmospherics/unary/cryo_cell/process() +/obj/machinery/atmospherics/unary/cryo_cell/process(delta_time) ..() if(!node) return diff --git a/code/game/machinery/cryopod.dm b/code/game/machinery/cryopod.dm index 68267613d53..8507c183647 100644 --- a/code/game/machinery/cryopod.dm +++ b/code/game/machinery/cryopod.dm @@ -341,7 +341,7 @@ return 1 //Lifted from Unity stasis.dm and refactored. ~Zuhayr -/obj/machinery/cryopod/process() +/obj/machinery/cryopod/process(delta_time) if(occupant) //Allow a ten minute gap between entering the pod and actually despawning. if(world.time - time_entered < time_till_despawn) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 42cabf8161f..d3878afad1b 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -439,7 +439,7 @@ var/last_event = 0 var/rad_power = 7.5 -/obj/machinery/door/airlock/process() +/obj/machinery/door/airlock/process(delta_time) // Deliberate no call to parent. if(main_power_lost_until > 0 && world.time >= main_power_lost_until) regainMainPower() @@ -453,7 +453,7 @@ if (..() == PROCESS_KILL && !(main_power_lost_until > 0 || backup_power_lost_until > 0 || electrified_until > 0)) . = PROCESS_KILL -/obj/machinery/door/airlock/uranium/process() +/obj/machinery/door/airlock/uranium/process(delta_time) if(world.time > last_event+20) if(prob(50)) SSradiation.radiate(src, rad_power) diff --git a/code/game/machinery/doors/airlock_control.dm b/code/game/machinery/doors/airlock_control.dm index cf884ab9bbf..36799b80884 100644 --- a/code/game/machinery/doors/airlock_control.dm +++ b/code/game/machinery/doors/airlock_control.dm @@ -8,7 +8,7 @@ obj/machinery/door/airlock var/datum/radio_frequency/radio_connection var/cur_command = null //the command the door is currently attempting to complete -obj/machinery/door/airlock/process() +obj/machinery/door/airlock/process(delta_time) if (..() == PROCESS_KILL && !cur_command) . = PROCESS_KILL if (arePowerSystemsOn()) @@ -183,7 +183,7 @@ obj/machinery/airlock_sensor/attack_hand(mob/user) radio_connection.post_signal(src, signal, range = AIRLOCK_CONTROL_RANGE, radio_filter = RADIO_AIRLOCK) flick("airlock_sensor_cycle", src) -obj/machinery/airlock_sensor/process() +obj/machinery/airlock_sensor/process(delta_time) if(on) var/datum/gas_mixture/air_sample = return_air() var/pressure = round(air_sample.return_pressure(),0.1) diff --git a/code/game/machinery/doors/brigdoors.dm b/code/game/machinery/doors/brigdoors.dm index a143f6a91d5..400e38e553d 100644 --- a/code/game/machinery/doors/brigdoors.dm +++ b/code/game/machinery/doors/brigdoors.dm @@ -62,7 +62,7 @@ //Main door timer loop, if it's timing and time is >0 reduce time by 1. // if it's less than 0, open door, reset timer // update the door_timer window and the icon -/obj/machinery/door_timer/process() +/obj/machinery/door_timer/process(delta_time) if(stat & (NOPOWER|BROKEN)) return if(src.timing) diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 14f3a8bed0a..7e680f9b2ac 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -79,7 +79,7 @@ update_nearby_tiles() . = ..() -/obj/machinery/door/process() +/obj/machinery/door/process(delta_time) if(close_door_at && world.time >= close_door_at) if(autoclose) close_door_at = next_close_time() diff --git a/code/game/machinery/doors/firedoor.dm b/code/game/machinery/doors/firedoor.dm index e5a11a7123e..e6f11cb0bf1 100644 --- a/code/game/machinery/doors/firedoor.dm +++ b/code/game/machinery/doors/firedoor.dm @@ -345,7 +345,7 @@ return ..() // CHECK PRESSURE -/obj/machinery/door/firedoor/process() +/obj/machinery/door/firedoor/process(delta_time) ..() if(density && next_process_time <= world.time) diff --git a/code/game/machinery/embedded_controller/airlock_docking_controller.dm b/code/game/machinery/embedded_controller/airlock_docking_controller.dm index ddb8a00ee25..8e227b1fe4b 100644 --- a/code/game/machinery/embedded_controller/airlock_docking_controller.dm +++ b/code/game/machinery/embedded_controller/airlock_docking_controller.dm @@ -104,7 +104,7 @@ . = ..(command) . = airlock_program.receive_user_command(command) || . // Pass along to subprograms; bypass shortcircuit -/datum/computer/file/embedded_program/docking/airlock/process() +/datum/computer/file/embedded_program/docking/airlock/process(delta_time) airlock_program?.process() ..() diff --git a/code/game/machinery/embedded_controller/airlock_program.dm b/code/game/machinery/embedded_controller/airlock_program.dm index d848e1d372b..e9f9d6f2e60 100644 --- a/code/game/machinery/embedded_controller/airlock_program.dm +++ b/code/game/machinery/embedded_controller/airlock_program.dm @@ -175,7 +175,7 @@ -/datum/computer/file/embedded_program/airlock/process() +/datum/computer/file/embedded_program/airlock/process(delta_time) if(!state) // Idle if(target_state) switch(target_state) diff --git a/code/game/machinery/embedded_controller/docking_program.dm b/code/game/machinery/embedded_controller/docking_program.dm index 524d075d0ee..56f7618e035 100644 --- a/code/game/machinery/embedded_controller/docking_program.dm +++ b/code/game/machinery/embedded_controller/docking_program.dm @@ -150,7 +150,7 @@ if (receive_tag == tag_target) reset() -/datum/computer/file/embedded_program/docking/process() +/datum/computer/file/embedded_program/docking/process(delta_time) switch(dock_state) if (STATE_DOCKING) // Waiting for our docking port to be ready for docking if (ready_for_docking()) diff --git a/code/game/machinery/embedded_controller/docking_program_multi.dm b/code/game/machinery/embedded_controller/docking_program_multi.dm index a4ad7d2985a..4f3ccf40ea1 100644 --- a/code/game/machinery/embedded_controller/docking_program_multi.dm +++ b/code/game/machinery/embedded_controller/docking_program_multi.dm @@ -178,7 +178,7 @@ if ("finish_undocking") docking_enabled = 0 -/datum/computer/file/embedded_program/airlock/multi_docking/process() +/datum/computer/file/embedded_program/airlock/multi_docking/process(delta_time) ..() if (docking_enabled && !response_sent) diff --git a/code/game/machinery/embedded_controller/embedded_controller_base.dm b/code/game/machinery/embedded_controller/embedded_controller_base.dm index a624389afaf..b3bba31f46a 100644 --- a/code/game/machinery/embedded_controller/embedded_controller_base.dm +++ b/code/game/machinery/embedded_controller/embedded_controller_base.dm @@ -37,7 +37,7 @@ //if(program) // return program.receive_user_command(href_list["command"]) -/obj/machinery/embedded_controller/process() +/obj/machinery/embedded_controller/process(delta_time) if(program) program.process() diff --git a/code/game/machinery/exonet_node.dm b/code/game/machinery/exonet_node.dm index f0a63f6d454..ca4f6fba581 100644 --- a/code/game/machinery/exonet_node.dm +++ b/code/game/machinery/exonet_node.dm @@ -81,7 +81,7 @@ // Proc: process() // Parameters: None // Description: Calls the procs below every tick. -/obj/machinery/exonet_node/process() +/obj/machinery/exonet_node/process(delta_time) update_power() // Proc: attackby() diff --git a/code/game/machinery/floodlight.dm b/code/game/machinery/floodlight.dm index fac6f7b3157..e36ccb1043c 100644 --- a/code/game/machinery/floodlight.dm +++ b/code/game/machinery/floodlight.dm @@ -18,7 +18,7 @@ overlays.Cut() icon_state = "flood[open ? "o" : ""][open && cell ? "b" : ""]0[on]" -/obj/machinery/floodlight/process() +/obj/machinery/floodlight/process(delta_time) if(!on) return diff --git a/code/game/machinery/floor_light.dm b/code/game/machinery/floor_light.dm index 9faec15e185..130b5c50d0c 100644 --- a/code/game/machinery/floor_light.dm +++ b/code/game/machinery/floor_light.dm @@ -93,7 +93,7 @@ var/list/floor_light_cache = list() update_brightness() return -/obj/machinery/floor_light/process() +/obj/machinery/floor_light/process(delta_time) ..() var/need_update if((!anchored || broken()) && on) diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm index 0a093ccc46e..19b3f08715f 100644 --- a/code/game/machinery/hologram.dm +++ b/code/game/machinery/hologram.dm @@ -150,7 +150,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/ icon_state = "holopad0" return 1 -/obj/machinery/hologram/holopad/process() +/obj/machinery/hologram/holopad/process(delta_time) for (var/mob/living/silicon/ai/master in masters) var/active_ai = (master && !master.stat && master.client && master.eyeobj)//If there is an AI attached, it's not incapacitated, it has a client, and the client eye is centered on the projector. if((stat & NOPOWER) || !active_ai) diff --git a/code/game/machinery/igniter.dm b/code/game/machinery/igniter.dm index 32f95a1ef14..55dce2d0140 100644 --- a/code/game/machinery/igniter.dm +++ b/code/game/machinery/igniter.dm @@ -23,7 +23,7 @@ icon_state = text("igniter[]", on) return -/obj/machinery/igniter/process() //ugh why is this even in process()? +/obj/machinery/igniter/process(delta_time) //ugh why is this even in process()? if(on && !(stat & NOPOWER)) var/turf/location = src.loc if(isturf(location)) diff --git a/code/game/machinery/iv_drip.dm b/code/game/machinery/iv_drip.dm index adee409ae9b..db5c38da8f3 100644 --- a/code/game/machinery/iv_drip.dm +++ b/code/game/machinery/iv_drip.dm @@ -81,7 +81,7 @@ return ..() -/obj/machinery/iv_drip/process() +/obj/machinery/iv_drip/process(delta_time) set background = 1 if(attached) diff --git a/code/game/machinery/jukebox.dm b/code/game/machinery/jukebox.dm index 3fe70969577..cd1ea36e07b 100644 --- a/code/game/machinery/jukebox.dm +++ b/code/game/machinery/jukebox.dm @@ -89,7 +89,7 @@ else if(!LAZYLEN(tracks)) //We don't even have default tracks stat |= BROKEN // No tracks configured this round! -/obj/machinery/media/jukebox/process() +/obj/machinery/media/jukebox/process(delta_time) if(!playing) return if(inoperable()) diff --git a/code/game/machinery/magnet.dm b/code/game/machinery/magnet.dm index 2d68032271d..02b3756b865 100644 --- a/code/game/machinery/magnet.dm +++ b/code/game/machinery/magnet.dm @@ -120,7 +120,7 @@ spawn() magnetic_process() -/obj/machinery/magnetic_module/process() +/obj/machinery/magnetic_module/process(delta_time) if(stat & NOPOWER) on = 0 @@ -227,7 +227,7 @@ filter_path() // renders rpath -/obj/machinery/magnetic_controller/process() +/obj/machinery/magnetic_controller/process(delta_time) if(magnets.len == 0 && autolink) for(var/obj/machinery/magnetic_module/M in machines) if(M.freq == frequency && M.code == code) diff --git a/code/game/machinery/nuclear_bomb.dm b/code/game/machinery/nuclear_bomb.dm index 7177c3711bb..e22be6830d9 100644 --- a/code/game/machinery/nuclear_bomb.dm +++ b/code/game/machinery/nuclear_bomb.dm @@ -43,7 +43,7 @@ var/bomb_set safety_wire = pick(w) w -= safety_wire -/obj/machinery/nuclearbomb/process() +/obj/machinery/nuclearbomb/process(delta_time) if(timing) bomb_set = 1 //So long as there is one nuke timing, it means one nuke is armed. timeleft-- diff --git a/code/game/machinery/oxygen_pump.dm b/code/game/machinery/oxygen_pump.dm index eedaf69ba2c..79ff2b5a597 100644 --- a/code/game/machinery/oxygen_pump.dm +++ b/code/game/machinery/oxygen_pump.dm @@ -154,7 +154,7 @@ to_chat(user, "It is missing a tank!") -/obj/machinery/oxygen_pump/process() +/obj/machinery/oxygen_pump/process(delta_time) if(breather) if(!can_apply_to_target(breather)) if(tank) @@ -253,7 +253,7 @@ var/last_area = null -/obj/machinery/oxygen_pump/mobile/process() +/obj/machinery/oxygen_pump/mobile/process(delta_time) ..() var/turf/T = get_turf(src) @@ -277,7 +277,7 @@ name = "portable patient stabilizer" desc = "A portable oxygen pump with a retractable mask used for stabilizing patients in the field." -/obj/machinery/oxygen_pump/mobile/stabilizer/process() +/obj/machinery/oxygen_pump/mobile/stabilizer/process(delta_time) if(breather) if(!can_apply_to_target(breather)) if(tank) diff --git a/code/game/machinery/partslathe_vr.dm b/code/game/machinery/partslathe_vr.dm index e7d1d0be206..910d8ac2a91 100644 --- a/code/game/machinery/partslathe_vr.dm +++ b/code/game/machinery/partslathe_vr.dm @@ -141,7 +141,7 @@ to_chat(user, "\The [src] cannot hold more [S.name].") return 1 -/obj/machinery/partslathe/process() +/obj/machinery/partslathe/process(delta_time) ..() if(stat) update_icon() diff --git a/code/game/machinery/pda_multicaster.dm b/code/game/machinery/pda_multicaster.dm index 6e9b05ed0d4..32b60f2cba8 100644 --- a/code/game/machinery/pda_multicaster.dm +++ b/code/game/machinery/pda_multicaster.dm @@ -88,7 +88,7 @@ idle_power_usage = 0 update_icon() -/obj/machinery/pda_multicaster/process() +/obj/machinery/pda_multicaster/process(delta_time) update_power() /obj/machinery/pda_multicaster/emp_act(severity) diff --git a/code/game/machinery/portable_turret.dm b/code/game/machinery/portable_turret.dm index 411070742a4..d3f4dfb34e5 100644 --- a/code/game/machinery/portable_turret.dm +++ b/code/game/machinery/portable_turret.dm @@ -685,7 +685,7 @@ spark_system.start() //creates some sparks because they look cool update_icon() -/obj/machinery/porta_turret/process() +/obj/machinery/porta_turret/process(delta_time) //the main machinery process if(stat & (NOPOWER|BROKEN)) diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm index 8e3e94f6171..f27bb0a1543 100644 --- a/code/game/machinery/recharger.dm +++ b/code/game/machinery/recharger.dm @@ -126,7 +126,7 @@ charging = null update_icon() -/obj/machinery/recharger/process() +/obj/machinery/recharger/process(delta_time) if(stat & (NOPOWER|BROKEN) || !anchored) update_use_power(USE_POWER_OFF) icon_state = icon_state_idle diff --git a/code/game/machinery/rechargestation.dm b/code/game/machinery/rechargestation.dm index fb26eaf221c..0261c2b919f 100644 --- a/code/game/machinery/rechargestation.dm +++ b/code/game/machinery/rechargestation.dm @@ -40,7 +40,7 @@ /obj/machinery/recharge_station/proc/has_cell_power() return cell && cell.percent() > 0 -/obj/machinery/recharge_station/process() +/obj/machinery/recharge_station/process(delta_time) if(stat & (BROKEN)) return if(!cell) // Shouldn't be possible, but sanity check diff --git a/code/game/machinery/records_scanner.dm b/code/game/machinery/records_scanner.dm index 5ecba2518b4..f1021256f40 100644 --- a/code/game/machinery/records_scanner.dm +++ b/code/game/machinery/records_scanner.dm @@ -22,7 +22,7 @@ obj/machinery/scanner/New() if(!outputdir) outputdir = 8 -/obj/machinery/scanner/process() +/obj/machinery/scanner/process(delta_time) if(stat & NOPOWER) return use_power(50) diff --git a/code/game/machinery/spaceheater.dm b/code/game/machinery/spaceheater.dm index 6fbf2cb6d79..d20df992c86 100644 --- a/code/game/machinery/spaceheater.dm +++ b/code/game/machinery/spaceheater.dm @@ -157,7 +157,7 @@ usr.unset_machine() return -/obj/machinery/space_heater/process() +/obj/machinery/space_heater/process(delta_time) if(on) if(cell && cell.charge) var/datum/gas_mixture/env = loc.return_air() diff --git a/code/game/machinery/status_display.dm b/code/game/machinery/status_display.dm index fd4b16d1e5d..c3a155876b2 100644 --- a/code/game/machinery/status_display.dm +++ b/code/game/machinery/status_display.dm @@ -70,7 +70,7 @@ radio_controller.add_object(src, frequency) // Timed process -/obj/machinery/status_display/process() +/obj/machinery/status_display/process(delta_time) if(stat & NOPOWER) remove_display() return diff --git a/code/game/machinery/status_display_ai.dm b/code/game/machinery/status_display_ai.dm index 4865341854f..976c00e5db9 100644 --- a/code/game/machinery/status_display_ai.dm +++ b/code/game/machinery/status_display_ai.dm @@ -84,7 +84,7 @@ var/list/ai_status_emotions = list( var/emote = input("Please, select a status!", "AI Status", null, null) in ai_emotions emotion = emote -/obj/machinery/ai_status_display/process() +/obj/machinery/ai_status_display/process(delta_time) return /obj/machinery/ai_status_display/proc/update() diff --git a/code/game/machinery/suit_storage_unit.dm b/code/game/machinery/suit_storage_unit.dm index b723135da2d..5d6e80b9dc2 100644 --- a/code/game/machinery/suit_storage_unit.dm +++ b/code/game/machinery/suit_storage_unit.dm @@ -908,7 +908,7 @@ updateUsrDialog() return -/obj/machinery/suit_cycler/process() +/obj/machinery/suit_cycler/process(delta_time) if(electrified > 0) electrified-- diff --git a/code/game/machinery/supplybeacon.dm b/code/game/machinery/supplybeacon.dm index 9760843fa02..71cb802825f 100644 --- a/code/game/machinery/supplybeacon.dm +++ b/code/game/machinery/supplybeacon.dm @@ -99,7 +99,7 @@ deactivate() ..() -/obj/machinery/power/supply_beacon/process() +/obj/machinery/power/supply_beacon/process(delta_time) if(expended) return PROCESS_KILL if(!use_power) diff --git a/code/game/machinery/syndicatebeacon.dm b/code/game/machinery/syndicatebeacon.dm index 3808e0dd6d4..5acc5c6fddf 100644 --- a/code/game/machinery/syndicatebeacon.dm +++ b/code/game/machinery/syndicatebeacon.dm @@ -147,7 +147,7 @@ ..() //stealth direct power usage -/obj/machinery/power/singularity_beacon/process() +/obj/machinery/power/singularity_beacon/process(delta_time) if(!active) return PROCESS_KILL else diff --git a/code/game/machinery/telecomms/telecomunications.dm b/code/game/machinery/telecomms/telecomunications.dm index 9d13bb46ae6..0cc12bea176 100644 --- a/code/game/machinery/telecomms/telecomunications.dm +++ b/code/game/machinery/telecomms/telecomunications.dm @@ -164,7 +164,7 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list() else on = 0 -/obj/machinery/telecomms/process() +/obj/machinery/telecomms/process(delta_time) update_power() // Check heat and generate some @@ -336,7 +336,7 @@ var/global/list/obj/machinery/telecomms/telecomms_list = list() component_parts += new /obj/item/stack/cable_coil(src, 2) RefreshParts() -/obj/machinery/telecomms/hub/process() +/obj/machinery/telecomms/hub/process(delta_time) . = ..() telecomms_map.Cut() diff --git a/code/game/machinery/transportpod.dm b/code/game/machinery/transportpod.dm index 0b499096fea..cb462d5797c 100644 --- a/code/game/machinery/transportpod.dm +++ b/code/game/machinery/transportpod.dm @@ -17,7 +17,7 @@ var/limit_x = 3 var/limit_y = 3 -/obj/machinery/transportpod/process() +/obj/machinery/transportpod/process(delta_time) if(occupant) if(in_transit) var/locNum = rand(0, 7) //pick a random location @@ -107,4 +107,4 @@ var/turf/T = get_turf(current_cell) if(!current_cell) continue - T.ChangeTurf(/turf/unsimulated/floor/shuttle_ceiling) \ No newline at end of file + T.ChangeTurf(/turf/unsimulated/floor/shuttle_ceiling) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 4161c1a60f7..317deb774be 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -570,7 +570,7 @@ SSnanoui.update_uis(src) -/obj/machinery/vending/process() +/obj/machinery/vending/process(delta_time) if(stat & (BROKEN|NOPOWER)) return diff --git a/code/game/machinery/virtual_reality/ar_console.dm b/code/game/machinery/virtual_reality/ar_console.dm index 829eeaf86fc..b782a7463d9 100644 --- a/code/game/machinery/virtual_reality/ar_console.dm +++ b/code/game/machinery/virtual_reality/ar_console.dm @@ -21,7 +21,7 @@ if(possible_species && possible_species.len) produce_species = pick(possible_species) -/obj/machinery/vr_sleeper/alien/process() +/obj/machinery/vr_sleeper/alien/process(delta_time) if(stat & (BROKEN)) if(occupant) go_out() diff --git a/code/game/machinery/virtual_reality/vr_console.dm b/code/game/machinery/virtual_reality/vr_console.dm index 6c220f9b0e8..b221c2e4382 100644 --- a/code/game/machinery/virtual_reality/vr_console.dm +++ b/code/game/machinery/virtual_reality/vr_console.dm @@ -40,7 +40,7 @@ . = ..() go_out() -/obj/machinery/vr_sleeper/process() +/obj/machinery/vr_sleeper/process(delta_time) if(stat & (NOPOWER|BROKEN)) if(occupant) go_out() diff --git a/code/game/machinery/vr_console.dm b/code/game/machinery/vr_console.dm index cd80b30a239..58f289d69b6 100644 --- a/code/game/machinery/vr_console.dm +++ b/code/game/machinery/vr_console.dm @@ -27,7 +27,7 @@ . = ..() update_icon() -/obj/machinery/vr_sleeper/process() +/obj/machinery/vr_sleeper/process(delta_time) if(stat & (NOPOWER|BROKEN)) return diff --git a/code/game/mecha/equipment/tools/medical_tools.dm b/code/game/mecha/equipment/tools/medical_tools.dm index c5a53f81d0b..08a2133b4a4 100644 --- a/code/game/mecha/equipment/tools/medical_tools.dm +++ b/code/game/mecha/equipment/tools/medical_tools.dm @@ -637,7 +637,7 @@ to_chat(chassis.occupant, "\The [chassis] shudders as something jams!") log_message("[src.name] has malfunctioned. Maintenance required.") -/obj/item/mecha_parts/mecha_equipment/crisis_drone/process() // Will continually try to find the nearest person above the threshold that is a valid target, and try to heal them. +/obj/item/mecha_parts/mecha_equipment/crisis_drone/process(delta_time) // Will continually try to find the nearest person above the threshold that is a valid target, and try to heal them. if(chassis && enabled && chassis.has_charge(energy_drain) && (chassis.occupant || enable_special)) var/mob/living/Targ = Target var/TargDamage = 0 diff --git a/code/game/mecha/mech_bay.dm b/code/game/mecha/mech_bay.dm index d33d71063d8..9c4ee60f2ee 100644 --- a/code/game/mecha/mech_bay.dm +++ b/code/game/mecha/mech_bay.dm @@ -45,7 +45,7 @@ if(istype(P, /obj/item/stock_parts/manipulator)) repair += P.rating * 2 -/obj/machinery/mech_recharger/process() +/obj/machinery/mech_recharger/process(delta_time) ..() if(!charging) return @@ -93,4 +93,4 @@ if(!charging) return - charging = null \ No newline at end of file + charging = null diff --git a/code/game/mecha/mech_fabricator.dm b/code/game/mecha/mech_fabricator.dm index 71654cab89f..666a765cd1e 100644 --- a/code/game/mecha/mech_fabricator.dm +++ b/code/game/mecha/mech_fabricator.dm @@ -43,7 +43,7 @@ update_categories() . = ..() -/obj/machinery/mecha_part_fabricator/process() +/obj/machinery/mecha_part_fabricator/process(delta_time) ..() if(stat) return diff --git a/code/game/mecha/mech_prosthetics.dm b/code/game/mecha/mech_prosthetics.dm index eadb24a61bc..4c8804058a7 100644 --- a/code/game/mecha/mech_prosthetics.dm +++ b/code/game/mecha/mech_prosthetics.dm @@ -47,7 +47,7 @@ manufacturer = basic_robolimb.company update_categories() -/obj/machinery/pros_fabricator/process() +/obj/machinery/pros_fabricator/process(delta_time) ..() if(stat) return diff --git a/code/game/objects/effects/alien/aliens.dm b/code/game/objects/effects/alien/aliens.dm index a65876c3685..a93117b80ad 100644 --- a/code/game/objects/effects/alien/aliens.dm +++ b/code/game/objects/effects/alien/aliens.dm @@ -254,7 +254,7 @@ return -/obj/effect/alien/weeds/process() +/obj/effect/alien/weeds/process(delta_time) set background = 1 var/turf/U = get_turf(src) /* diff --git a/code/game/objects/effects/chem/foam.dm b/code/game/objects/effects/chem/foam.dm index dc2809fc28d..c820bff3907 100644 --- a/code/game/objects/effects/chem/foam.dm +++ b/code/game/objects/effects/chem/foam.dm @@ -42,7 +42,7 @@ for(var/obj/O in T) reagents.touch_obj(O) -/obj/effect/effect/foam/process() +/obj/effect/effect/foam/process(delta_time) if(--amount < 0) return diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index 37b71bff503..17920065a88 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -275,7 +275,7 @@ steam.start() -- spawns the effect for(var/mob/living/L in range(1, src)) affect(L) -/obj/effect/effect/smoke/elemental/process() +/obj/effect/effect/smoke/elemental/process(delta_time) for(var/mob/living/L in range(1, src)) affect(L) diff --git a/code/game/objects/effects/map_effects/radiation_emitter.dm b/code/game/objects/effects/map_effects/radiation_emitter.dm index 89a8d194f53..e2828519d05 100644 --- a/code/game/objects/effects/map_effects/radiation_emitter.dm +++ b/code/game/objects/effects/map_effects/radiation_emitter.dm @@ -12,8 +12,8 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/effect/map_effect/radiation_emitter/process() +/obj/effect/map_effect/radiation_emitter/process(delta_time) SSradiation.radiate(src, radiation_power) /obj/effect/map_effect/radiation_emitter/strong - radiation_power = 100 \ No newline at end of file + radiation_power = 100 diff --git a/code/game/objects/effects/spiders.dm b/code/game/objects/effects/spiders.dm index 95ad17413d3..a5ebadf2e6c 100644 --- a/code/game/objects/effects/spiders.dm +++ b/code/game/objects/effects/spiders.dm @@ -101,7 +101,7 @@ return ..() -/obj/effect/spider/eggcluster/process() +/obj/effect/spider/eggcluster/process(delta_time) amount_grown += rand(0,2) if(amount_grown >= 100) var/num = rand(spiders_min, spiders_max) @@ -170,7 +170,7 @@ if(health <= 0) die() -/obj/effect/spider/spiderling/process() +/obj/effect/spider/spiderling/process(delta_time) if(travelling_in_vent) if(istype(src.loc, /turf)) travelling_in_vent = 0 diff --git a/code/game/objects/items/devices/ai_detector.dm b/code/game/objects/items/devices/ai_detector.dm index 0ab23f34e7d..b0e145eadbb 100644 --- a/code/game/objects/items/devices/ai_detector.dm +++ b/code/game/objects/items/devices/ai_detector.dm @@ -24,7 +24,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/multitool/ai_detector/process() +/obj/item/multitool/ai_detector/process(delta_time) var/old_detect_state = detect_state var/new_detect_state = detect_ai() detect_state = new_detect_state @@ -118,4 +118,4 @@ #undef PROXIMITY_NEAR #undef PROXIMITY_ON_SCREEN #undef PROXIMITY_TRACKING -#undef PROXIMITY_TRACKING_FAIL \ No newline at end of file +#undef PROXIMITY_TRACKING_FAIL diff --git a/code/game/objects/items/devices/communicator/communicator.dm b/code/game/objects/items/devices/communicator/communicator.dm index 41756cd8d13..384b642ac0e 100644 --- a/code/game/objects/items/devices/communicator/communicator.dm +++ b/code/game/objects/items/devices/communicator/communicator.dm @@ -194,7 +194,7 @@ var/global/list/obj/item/communicator/all_communicators = list() // Proc: process() // Parameters: None // Description: Ticks the update_ticks variable, and checks to see if it needs to disconnect communicators every five ticks.. -/obj/item/communicator/process() +/obj/item/communicator/process(delta_time) update_ticks++ if(update_ticks % 5) if(!node) diff --git a/code/game/objects/items/devices/defib.dm b/code/game/objects/items/devices/defib.dm index 0417fdd78b9..7d7c0fdd3fb 100644 --- a/code/game/objects/items/devices/defib.dm +++ b/code/game/objects/items/devices/defib.dm @@ -610,7 +610,7 @@ SSradiation.radiate(src, charge_amt/12) //just a little bit of radiation. It's the price you pay for being powered by magic I guess return 1 -/obj/item/shockpaddles/standalone/process() +/obj/item/shockpaddles/standalone/process(delta_time) if(fail_counter > 0) SSradiation.radiate(src, fail_counter--) else diff --git a/code/game/objects/items/devices/flashlight.dm b/code/game/objects/items/devices/flashlight.dm index 8e2fb090267..e4c2c56ee01 100644 --- a/code/game/objects/items/devices/flashlight.dm +++ b/code/game/objects/items/devices/flashlight.dm @@ -52,7 +52,7 @@ to_chat(user, "You set the brightness level on \the [src] to [brightness_level].") update_icon() -/obj/item/flashlight/process() +/obj/item/flashlight/process(delta_time) if(!on || !cell) return PROCESS_KILL @@ -340,7 +340,7 @@ fuel = rand(800, 1000) // Sorry for changing this so much but I keep under-estimating how long X number of ticks last in seconds. ..() -/obj/item/flashlight/flare/process() +/obj/item/flashlight/flare/process(delta_time) var/turf/pos = get_turf(src) if(pos) pos.hotspot_expose(produce_heat, 5) @@ -400,7 +400,7 @@ fuel = rand(1600, 2000) ..() -/obj/item/flashlight/glowstick/process() +/obj/item/flashlight/glowstick/process(delta_time) fuel = max(fuel - 1, 0) if(!fuel || !on) turn_off() diff --git a/code/game/objects/items/devices/geiger.dm b/code/game/objects/items/devices/geiger.dm index 0e91f4fa0de..2741ef8480e 100644 --- a/code/game/objects/items/devices/geiger.dm +++ b/code/game/objects/items/devices/geiger.dm @@ -22,7 +22,7 @@ QDEL_NULL(soundloop) return ..() -/obj/item/geiger/process() +/obj/item/geiger/process(delta_time) get_radiation() /obj/item/geiger/proc/get_radiation() diff --git a/code/game/objects/items/devices/laserpointer.dm b/code/game/objects/items/devices/laserpointer.dm index 6afcee6130c..f71c11f22e8 100644 --- a/code/game/objects/items/devices/laserpointer.dm +++ b/code/game/objects/items/devices/laserpointer.dm @@ -211,11 +211,11 @@ spawn(cooldown) icon_state = "pointer" -/obj/item/laser_pointer/process() +/obj/item/laser_pointer/process(delta_time) if(prob(20 - recharge_locked*5)) energy += 1 if(energy >= max_energy) energy = max_energy recharging = 0 recharge_locked = 0 - ..() \ No newline at end of file + ..() diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index e08b394592f..e375fb21d31 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -119,7 +119,7 @@ return 1 -/obj/item/powersink/process() +/obj/item/powersink/process(delta_time) drained_this_tick = 0 power_drained -= min(dissipation_rate, power_drained) if(power_drained > max_power * 0.95) diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm index 9eb2512ee52..37b32e31703 100644 --- a/code/game/objects/items/devices/radio/intercom.dm +++ b/code/game/objects/items/devices/radio/intercom.dm @@ -177,7 +177,7 @@ return canhear_range -/obj/item/radio/intercom/process() +/obj/item/radio/intercom/process(delta_time) if(((world.timeofday - last_tick) > 30) || ((world.timeofday - last_tick) < 0)) last_tick = world.timeofday diff --git a/code/game/objects/items/devices/radio/jammer.dm b/code/game/objects/items/devices/radio/jammer.dm index 0d203cbbb84..757954b0352 100644 --- a/code/game/objects/items/devices/radio/jammer.dm +++ b/code/game/objects/items/devices/radio/jammer.dm @@ -58,7 +58,7 @@ var/global/list/active_radio_jammers = list() on = TRUE update_icon() -/obj/item/radio_jammer/process() +/obj/item/radio_jammer/process(delta_time) if(!power_source || !power_source.check_charge(tick_cost)) var/mob/living/notify if(isliving(loc)) diff --git a/code/game/objects/items/devices/suit_cooling.dm b/code/game/objects/items/devices/suit_cooling.dm index d86b6b68e7d..fdf14dd8d1a 100644 --- a/code/game/objects/items/devices/suit_cooling.dm +++ b/code/game/objects/items/devices/suit_cooling.dm @@ -36,7 +36,7 @@ QDEL_NULL(cell) return ..() -/obj/item/suit_cooling_unit/process() +/obj/item/suit_cooling_unit/process(delta_time) if (!on || !cell) return PROCESS_KILL diff --git a/code/game/objects/items/devices/t_scanner.dm b/code/game/objects/items/devices/t_scanner.dm index 41a96d0b136..79f5cc1adb7 100644 --- a/code/game/objects/items/devices/t_scanner.dm +++ b/code/game/objects/items/devices/t_scanner.dm @@ -37,7 +37,7 @@ update_icon() //If reset is set, then assume the client has none of our overlays, otherwise we only send new overlays. -/obj/item/t_scanner/process() +/obj/item/t_scanner/process(delta_time) if(!on) return //handle clients changing diff --git a/code/game/objects/items/devices/uplink.dm b/code/game/objects/items/devices/uplink.dm index 888f0ddcc9d..19fc2ac8bc1 100644 --- a/code/game/objects/items/devices/uplink.dm +++ b/code/game/objects/items/devices/uplink.dm @@ -66,7 +66,7 @@ nanoui_data = list() update_nano_data() -/obj/item/uplink/hidden/process() +/obj/item/uplink/hidden/process(delta_time) if(world.time > next_offer_time) discount_item = default_uplink_selection.get_random_item(INFINITY) discount_amount = pick(90;0.9, 80;0.8, 70;0.7, 60;0.6, 50;0.5, 40;0.4, 30;0.3, 20;0.2, 10;0.1) diff --git a/code/game/objects/items/poi_items.dm b/code/game/objects/items/poi_items.dm index 86c31e7646c..d1091f0555c 100644 --- a/code/game/objects/items/poi_items.dm +++ b/code/game/objects/items/poi_items.dm @@ -12,7 +12,7 @@ START_PROCESSING(SSobj, src) return ..() -/obj/item/poi/pascalb/process() +/obj/item/poi/pascalb/process(delta_time) SSradiation.radiate(src, 5) /obj/item/poi/pascalb/Destroy() @@ -40,7 +40,7 @@ START_PROCESSING(SSobj, src) return ..() -/obj/item/poi/brokenoldreactor/process() +/obj/item/poi/brokenoldreactor/process(delta_time) SSradiation.radiate(src, 25) /obj/item/poi/brokenoldreactor/Destroy() diff --git a/code/game/objects/items/weapons/candle.dm b/code/game/objects/items/weapons/candle.dm index 733fb513fa9..b6bb3ebf9c5 100644 --- a/code/game/objects/items/weapons/candle.dm +++ b/code/game/objects/items/weapons/candle.dm @@ -51,7 +51,7 @@ set_light(CANDLE_LUM) START_PROCESSING(SSobj, src) -/obj/item/flame/candle/process() +/obj/item/flame/candle/process(delta_time) if(!lit) return wax-- diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm index b10b6d656a1..ea5fc412462 100644 --- a/code/game/objects/items/weapons/cigs_lighters.dm +++ b/code/game/objects/items/weapons/cigs_lighters.dm @@ -37,7 +37,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM drop_sound = 'sound/items/drop/food.ogg' pickup_sound = 'sound/items/pickup/food.ogg' -/obj/item/flame/match/process() +/obj/item/flame/match/process(delta_time) if(isliving(loc)) var/mob/living/M = loc M.IgniteMob() @@ -112,7 +112,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM else // else just remove some of the reagents reagents.remove_any(REM) -/obj/item/clothing/mask/smokable/process() +/obj/item/clothing/mask/smokable/process(delta_time) var/turf/location = get_turf(src) smoke(1) if(smoketime < 1) @@ -579,7 +579,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM else ..() -/obj/item/flame/lighter/process() +/obj/item/flame/lighter/process(delta_time) var/turf/location = get_turf(src) if(location) location.hotspot_expose(700, 5) diff --git a/code/game/objects/items/weapons/flamethrower.dm b/code/game/objects/items/weapons/flamethrower.dm index 1e1e554e508..3fbdee125d3 100644 --- a/code/game/objects/items/weapons/flamethrower.dm +++ b/code/game/objects/items/weapons/flamethrower.dm @@ -31,7 +31,7 @@ QDEL_NULL(ptank) . = ..() -/obj/item/flamethrower/process() +/obj/item/flamethrower/process(delta_time) if(!lit) STOP_PROCESSING(SSobj, src) return null diff --git a/code/game/objects/items/weapons/grenades/supermatter.dm b/code/game/objects/items/weapons/grenades/supermatter.dm index d122ae0f54d..e47c5a31486 100644 --- a/code/game/objects/items/weapons/grenades/supermatter.dm +++ b/code/game/objects/items/weapons/grenades/supermatter.dm @@ -23,7 +23,7 @@ if(implode_at) overlays += image(icon = 'icons/rust.dmi', icon_state = "emfield_s1") -/obj/item/grenade/supermatter/process() +/obj/item/grenade/supermatter/process(delta_time) if(!isturf(loc)) if(ismob(loc)) var/mob/M = loc @@ -33,4 +33,4 @@ supermatter_pull(src, world.view, STAGE_THREE) if(world.time > implode_at) explosion(loc, 1, 3, 5, 4) - qdel(src) \ No newline at end of file + qdel(src) diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm index 1d42cc6addc..01d0200bd78 100644 --- a/code/game/objects/items/weapons/implants/implant.dm +++ b/code/game/objects/items/weapons/implants/implant.dm @@ -117,7 +117,7 @@ GLOBAL_LIST_BOILERPLATE(all_tracking_implants, /obj/item/implant/tracking) STOP_PROCESSING(SSobj, src) return ..() -/obj/item/implant/tracking/process() +/obj/item/implant/tracking/process(delta_time) var/implant_location = src.loc if(ismob(implant_location)) var/mob/living/L = implant_location @@ -505,7 +505,7 @@ the implant may become unstable and either pre-maturely inject the subject or si Integrity: Implant will occasionally be degraded by the body's immune system and thus will occasionally malfunction."} return dat -/obj/item/implant/death_alarm/process() +/obj/item/implant/death_alarm/process(delta_time) if (!implanted) return var/mob/M = imp_in diff --git a/code/game/objects/items/weapons/implants/implantreagent_vr.dm b/code/game/objects/items/weapons/implants/implantreagent_vr.dm index 0710867ab24..7c15d322050 100644 --- a/code/game/objects/items/weapons/implants/implantreagent_vr.dm +++ b/code/game/objects/items/weapons/implants/implantreagent_vr.dm @@ -36,7 +36,7 @@ assigned_proc = new assigned_proc(source, verb_name, verb_desc) return 1 -/obj/item/implant/reagent_generator/process() +/obj/item/implant/reagent_generator/process(delta_time) var/before_gen if(imp_in && generated_reagents) before_gen = reagents.total_volume diff --git a/code/game/objects/items/weapons/implants/neuralbasic.dm b/code/game/objects/items/weapons/implants/neuralbasic.dm index 2b4ae558322..9a2fb232857 100644 --- a/code/game/objects/items/weapons/implants/neuralbasic.dm +++ b/code/game/objects/items/weapons/implants/neuralbasic.dm @@ -27,7 +27,7 @@ my_brain = null return ..() -/obj/item/implant/neural/process() +/obj/item/implant/neural/process(delta_time) if(my_brain && part) if(my_brain.loc != part.loc) to_chat(my_brain.owner, "You feel a pressure in your mind as something is ripped away.") diff --git a/code/game/objects/items/weapons/material/chainsaw.dm b/code/game/objects/items/weapons/material/chainsaw.dm index 450812b1424..968f498d6e6 100644 --- a/code/game/objects/items/weapons/material/chainsaw.dm +++ b/code/game/objects/items/weapons/material/chainsaw.dm @@ -91,7 +91,7 @@ obj/item/chainsaw/proc/turnOn(mob/user as mob) else to_chat(user, "Don't move while you're refilling the chainsaw.") -/obj/item/chainsaw/process() +/obj/item/chainsaw/process(delta_time) if(!on) return diff --git a/code/game/objects/items/weapons/material/material_weapons.dm b/code/game/objects/items/weapons/material/material_weapons.dm index 1f4bedce9ef..ccd0714208e 100644 --- a/code/game/objects/items/weapons/material/material_weapons.dm +++ b/code/game/objects/items/weapons/material/material_weapons.dm @@ -160,7 +160,7 @@ /* Commenting this out pending rebalancing of radiation based on small objects. -/obj/item/material/process() +/obj/item/material/process(delta_time) if(!material.radioactivity) return for(var/mob/living/L in range(1,src)) diff --git a/code/game/objects/items/weapons/melee/energy.dm b/code/game/objects/items/weapons/melee/energy.dm index 77fef2b9bad..bb1f96ffc8b 100644 --- a/code/game/objects/items/weapons/melee/energy.dm +++ b/code/game/objects/items/weapons/melee/energy.dm @@ -524,7 +524,7 @@ /obj/item/melee/energy/blade/dropped() spawn(1) if(src) qdel(src) -/obj/item/melee/energy/blade/process() +/obj/item/melee/energy/blade/process(delta_time) if(!creator || loc != creator || !creator.item_is_in_hands(src)) // Tidy up a bit. if(istype(loc,/mob/living)) diff --git a/code/game/objects/items/weapons/mop_deploy.dm b/code/game/objects/items/weapons/mop_deploy.dm index e4528c5355e..6181b5dac1f 100644 --- a/code/game/objects/items/weapons/mop_deploy.dm +++ b/code/game/objects/items/weapons/mop_deploy.dm @@ -58,7 +58,7 @@ /obj/item/mop_deploy/dropped() spawn(1) if(!QDELETED(src)) qdel(src) -/obj/item/mop_deploy/process() +/obj/item/mop_deploy/process(delta_time) if(!creator || loc != creator || !creator.item_is_in_hands(src)) // Tidy up a bit. if(istype(loc,/mob/living)) @@ -71,4 +71,4 @@ host.pinned -= src host.embedded -= src host.drop_from_inventory(src) - spawn(1) if(!QDELETED(src)) qdel(src) \ No newline at end of file + spawn(1) if(!QDELETED(src)) qdel(src) diff --git a/code/game/objects/items/weapons/nullrod.dm b/code/game/objects/items/weapons/nullrod.dm index 4bb542c4375..f8294723731 100644 --- a/code/game/objects/items/weapons/nullrod.dm +++ b/code/game/objects/items/weapons/nullrod.dm @@ -407,7 +407,7 @@ hitsound = 'sound/weapons/bladeslice.ogg' attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut") -/obj/item/nullrod/tribal_knife/process() +/obj/item/nullrod/tribal_knife/process(delta_time) slowdown = rand(-2, 2) /obj/item/nullrod/pitchfork diff --git a/code/game/objects/items/weapons/tanks/tanks.dm b/code/game/objects/items/weapons/tanks/tanks.dm index 072a60a0c48..eb5c48c34a5 100644 --- a/code/game/objects/items/weapons/tanks/tanks.dm +++ b/code/game/objects/items/weapons/tanks/tanks.dm @@ -350,7 +350,7 @@ var/list/global/tank_gauge_cache = list() return remove_air(moles_needed) -/obj/item/tank/process() +/obj/item/tank/process(delta_time) //Allow for reactions air_contents.react() //cooking up air tanks - add phoron and oxygen, then heat above PHORON_MINIMUM_BURN_TEMPERATURE if(gauge_icon) diff --git a/code/game/objects/items/weapons/tools/holotool.dm b/code/game/objects/items/weapons/tools/holotool.dm index ccecf255e22..28d87ed18d8 100644 --- a/code/game/objects/items/weapons/tools/holotool.dm +++ b/code/game/objects/items/weapons/tools/holotool.dm @@ -418,7 +418,7 @@ desc = "This should not exist." deploytype = "multitool" -/obj/item/weldingtool/holoswitch/process() +/obj/item/weldingtool/holoswitch/process(delta_time) ..() if(get_fuel() < get_max_fuel() && nextrefueltick < world.time) nextrefueltick = world.time + 10 diff --git a/code/game/objects/items/weapons/tools/weldingtool.dm b/code/game/objects/items/weapons/tools/weldingtool.dm index a0fa7270e3c..93ba79bf87d 100644 --- a/code/game/objects/items/weapons/tools/weldingtool.dm +++ b/code/game/objects/items/weapons/tools/weldingtool.dm @@ -116,7 +116,7 @@ ..() return -/obj/item/weldingtool/process() +/obj/item/weldingtool/process(delta_time) if(welding) ++burned_fuel_for if(burned_fuel_for >= WELDER_FUEL_BURN_INTERVAL) @@ -414,7 +414,7 @@ origin_tech = list(TECH_PHORON = 5 ,TECH_ENGINEERING = 5) always_process = TRUE -/obj/item/weldingtool/alien/process() +/obj/item/weldingtool/alien/process(delta_time) if(get_fuel() <= get_max_fuel()) reagents.add_reagent("fuel", 1) ..() @@ -433,7 +433,7 @@ always_process = TRUE var/nextrefueltick = 0 -/obj/item/weldingtool/experimental/process() +/obj/item/weldingtool/experimental/process(delta_time) ..() if(get_fuel() < get_max_fuel() && nextrefueltick < world.time) nextrefueltick = world.time + 10 @@ -483,7 +483,7 @@ mounted_pack = null return ..() -/obj/item/weldingtool/tubefed/process() +/obj/item/weldingtool/tubefed/process(delta_time) if(mounted_pack) if(!istype(mounted_pack.loc,/mob/living/carbon/human)) mounted_pack.return_nozzle() diff --git a/code/game/objects/items/weapons/weaponry.dm b/code/game/objects/items/weapons/weaponry.dm index ce4620fc901..5d412d7cc98 100644 --- a/code/game/objects/items/weapons/weaponry.dm +++ b/code/game/objects/items/weapons/weaponry.dm @@ -62,7 +62,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/effect/energy_net/process() +/obj/effect/energy_net/process(delta_time) if(!has_buckled_mobs()) qdel(src) diff --git a/code/game/objects/mob_spawner_vr.dm b/code/game/objects/mob_spawner_vr.dm index 23ec38c907e..7f56542ac91 100644 --- a/code/game/objects/mob_spawner_vr.dm +++ b/code/game/objects/mob_spawner_vr.dm @@ -34,7 +34,7 @@ spawned_mobs.Cut() return ..() -/obj/structure/mob_spawner/process() +/obj/structure/mob_spawner/process(delta_time) if(!can_spawn()) return var/chosen_mob = choose_spawn() @@ -115,7 +115,7 @@ It also makes it so a ghost wont know where all the goodies/mobs are. name ="Lazy Mob Spawner" var/range = 10 //range in tiles from the spawner to detect moving stuff -/obj/structure/mob_spawner/scanner/process() +/obj/structure/mob_spawner/scanner/process(delta_time) if(!can_spawn()) return if(world.time > last_spawn + spawn_delay) diff --git a/code/game/objects/structures/bonfire.dm b/code/game/objects/structures/bonfire.dm index 728c411ac1c..9f9379b9bbf 100644 --- a/code/game/objects/structures/bonfire.dm +++ b/code/game/objects/structures/bonfire.dm @@ -214,7 +214,7 @@ overlays += grille_image -/obj/structure/bonfire/process() +/obj/structure/bonfire/process(delta_time) if(!check_oxygen()) extinguish() return @@ -382,7 +382,7 @@ else set_light(0) -/obj/structure/fireplace/process() +/obj/structure/fireplace/process(delta_time) if(!check_oxygen()) extinguish() return diff --git a/code/game/objects/structures/crates_lockers/closets/statue.dm b/code/game/objects/structures/crates_lockers/closets/statue.dm index e1e37962795..7c1c1a66ec6 100644 --- a/code/game/objects/structures/crates_lockers/closets/statue.dm +++ b/code/game/objects/structures/crates_lockers/closets/statue.dm @@ -46,7 +46,7 @@ START_PROCESSING(SSobj, src) ..() -/obj/structure/closet/statue/process() +/obj/structure/closet/statue/process(delta_time) timer-- for(var/mob/living/M in src) //Go-go gadget stasis field M.setToxLoss(intialTox) diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm index c1579138348..77fa4ac5d2d 100644 --- a/code/game/objects/structures/girders.dm +++ b/code/game/objects/structures/girders.dm @@ -28,7 +28,7 @@ STOP_PROCESSING(SSobj, src) . = ..() -/obj/structure/girder/process() +/obj/structure/girder/process(delta_time) if(!radiate()) STOP_PROCESSING(SSobj, src) return diff --git a/code/game/objects/structures/props/nest.dm b/code/game/objects/structures/props/nest.dm index 4cb515fc36b..33e26518688 100644 --- a/code/game/objects/structures/props/nest.dm +++ b/code/game/objects/structures/props/nest.dm @@ -39,7 +39,7 @@ if(user && prob(disturbance_spawn_chance)) spawn_creature(get_turf(src)) -/obj/structure/prop/nest/process() +/obj/structure/prop/nest/process(delta_time) update_creatures() if(world.time > last_spawn + spawn_delay) spawn_creature(get_turf(src)) diff --git a/code/game/objects/structures/simple_doors.dm b/code/game/objects/structures/simple_doors.dm index 50501bd9054..d10745e9fdb 100644 --- a/code/game/objects/structures/simple_doors.dm +++ b/code/game/objects/structures/simple_doors.dm @@ -194,7 +194,7 @@ CheckHardness() return -/obj/structure/simple_door/process() +/obj/structure/simple_door/process(delta_time) if(!material.radioactivity) return SSradiation.radiate(src, round(material.radioactivity/3)) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index 769e9c584d8..ecb19bebc3d 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -299,7 +299,7 @@ reagents.splash(O, 10) -/obj/machinery/shower/process() +/obj/machinery/shower/process(delta_time) if(!on) return for(var/thing in loc) var/atom/movable/AM = thing diff --git a/code/game/turfs/simulated/lava.dm b/code/game/turfs/simulated/lava.dm index 7b2516a0b82..3468764f679 100644 --- a/code/game/turfs/simulated/lava.dm +++ b/code/game/turfs/simulated/lava.dm @@ -47,7 +47,7 @@ if(burn_stuff(AM)) START_PROCESSING(SSobj, src) -/turf/simulated/floor/lava/process() +/turf/simulated/floor/lava/process(delta_time) if(!burn_stuff()) STOP_PROCESSING(SSobj, src) @@ -90,4 +90,4 @@ /turf/simulated/floor/lava/is_safe_to_enter(mob/living/L) if(!is_safe() && !L.hovering) return FALSE - return ..() \ No newline at end of file + return ..() diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm index 15a90989053..78893a191d3 100644 --- a/code/game/turfs/simulated/walls.dm +++ b/code/game/turfs/simulated/walls.dm @@ -48,7 +48,7 @@ dismantle_wall(null, null, TRUE) return ..() -/turf/simulated/wall/process() +/turf/simulated/wall/process(delta_time) // Calling parent will kill processing if(!radiate()) return PROCESS_KILL diff --git a/code/game/turfs/simulated/water.dm b/code/game/turfs/simulated/water.dm index 272814da539..02aa732268a 100644 --- a/code/game/turfs/simulated/water.dm +++ b/code/game/turfs/simulated/water.dm @@ -225,7 +225,7 @@ var/list/shoreline_icon_cache = list() if(burn_stuff(AM)) START_PROCESSING(SSobj, src) -/turf/simulated/floor/water/acid/process() +/turf/simulated/floor/water/acid/process(delta_time) if(!burn_stuff()) STOP_PROCESSING(SSobj, src) @@ -347,7 +347,7 @@ var/list/shoreline_icon_cache = list() if(blood_wade(AM)) START_PROCESSING(SSobj, src) -/turf/simulated/floor/water/blood/process() +/turf/simulated/floor/water/blood/process(delta_time) if(!blood_wade()) STOP_PROCESSING(SSobj, src) diff --git a/code/modules/alarm/alarm.dm b/code/modules/alarm/alarm.dm index ac9b103b560..dc51967ba8a 100644 --- a/code/modules/alarm/alarm.dm +++ b/code/modules/alarm/alarm.dm @@ -31,7 +31,7 @@ cameras() // Sets up both cameras and last alarm area. set_source_data(source, duration, severity, hidden) -/datum/alarm/process() +/datum/alarm/process(delta_time) // Has origin gone missing? if(!origin && !end_time) end_time = world.time + ALARM_RESET_DELAY diff --git a/code/modules/alarm/alarm_handler.dm b/code/modules/alarm/alarm_handler.dm index 7c76450ca73..8f6686e3dec 100644 --- a/code/modules/alarm/alarm_handler.dm +++ b/code/modules/alarm/alarm_handler.dm @@ -7,7 +7,7 @@ var/list/datum/alarm/alarms_assoc = new // Associative list of alarms, to efficiently acquire them based on origin. var/list/listeners = new // A list of all objects interested in alarm changes. -/datum/alarm_handler/process() +/datum/alarm_handler/process(delta_time) for(var/datum/alarm/A in alarms) A.process() check_alarm_cleared(A) @@ -106,4 +106,4 @@ for(var/datum/alarm/A in alarms) if(!A.hidden) visible_alarms.Add(A) - return visible_alarms \ No newline at end of file + return visible_alarms diff --git a/code/modules/artifice/deadringer.dm b/code/modules/artifice/deadringer.dm index b894d97d0b3..ec971a26f80 100644 --- a/code/modules/artifice/deadringer.dm +++ b/code/modules/artifice/deadringer.dm @@ -49,7 +49,7 @@ activated = 0 return -/obj/item/deadringer/process() +/obj/item/deadringer/process(delta_time) if(activated) if (ismob(src.loc)) var/mob/living/carbon/human/H = src.loc diff --git a/code/modules/artifice/telecube.dm b/code/modules/artifice/telecube.dm index 11d4549ff32..27973998620 100644 --- a/code/modules/artifice/telecube.dm +++ b/code/modules/artifice/telecube.dm @@ -89,7 +89,7 @@ return -/obj/item/telecube/process() +/obj/item/telecube/process(delta_time) ..() update_icon() diff --git a/code/modules/assembly/assembly.dm b/code/modules/assembly/assembly.dm index 50136156689..584eabec6b0 100644 --- a/code/modules/assembly/assembly.dm +++ b/code/modules/assembly/assembly.dm @@ -113,7 +113,7 @@ return -/obj/item/assembly/process() +/obj/item/assembly/process(delta_time) STOP_PROCESSING(SSobj, src) return diff --git a/code/modules/assembly/infrared.dm b/code/modules/assembly/infrared.dm index ae6e1081d07..3440a43708a 100644 --- a/code/modules/assembly/infrared.dm +++ b/code/modules/assembly/infrared.dm @@ -46,7 +46,7 @@ return -/obj/item/assembly/infra/process()//Old code +/obj/item/assembly/infra/process(delta_time)//Old code if(!on) if(first) qdel(first) @@ -182,7 +182,7 @@ return return -/obj/effect/beam/i_beam/process() +/obj/effect/beam/i_beam/process(delta_time) if((loc && loc.density) || !master) qdel(src) diff --git a/code/modules/assembly/proximity.dm b/code/modules/assembly/proximity.dm index 507f38b2eb3..8f41651bd01 100644 --- a/code/modules/assembly/proximity.dm +++ b/code/modules/assembly/proximity.dm @@ -57,7 +57,7 @@ return -/obj/item/assembly/prox_sensor/process() +/obj/item/assembly/prox_sensor/process(delta_time) if(scanning) var/turf/mainloc = get_turf(src) for(var/mob/living/A in range(range,mainloc)) diff --git a/code/modules/assembly/signaler.dm b/code/modules/assembly/signaler.dm index 4f6c52b6b26..4a64cd59bf9 100644 --- a/code/modules/assembly/signaler.dm +++ b/code/modules/assembly/signaler.dm @@ -165,7 +165,7 @@ Code: radio_connection = radio_controller.add_object(src, frequency, RADIO_CHAT) return -/obj/item/assembly/signaler/process() +/obj/item/assembly/signaler/process(delta_time) if(!deadman) STOP_PROCESSING(SSobj, src) var/mob/M = src.loc diff --git a/code/modules/assembly/timer.dm b/code/modules/assembly/timer.dm index e2f948340cd..2b3f7c8d28f 100644 --- a/code/modules/assembly/timer.dm +++ b/code/modules/assembly/timer.dm @@ -44,7 +44,7 @@ return -/obj/item/assembly/timer/process() +/obj/item/assembly/timer/process(delta_time) if(timing && (time > 0)) time-- if(timing && time <= 0) diff --git a/code/modules/atmospherics/atmospherics.dm b/code/modules/atmospherics/atmospherics.dm index d912b2e461b..cb1617d716a 100644 --- a/code/modules/atmospherics/atmospherics.dm +++ b/code/modules/atmospherics/atmospherics.dm @@ -116,7 +116,7 @@ Pipelines + Other Objects -> Pipe network return node.pipe_color -/obj/machinery/atmospherics/process() +/obj/machinery/atmospherics/process(delta_time) last_flow_rate = 0 last_power_draw = 0 diff --git a/code/modules/atmospherics/components/binary_devices/algae_generator_vr.dm b/code/modules/atmospherics/components/binary_devices/algae_generator_vr.dm index 01ac901198b..29d5f6a4481 100644 --- a/code/modules/atmospherics/components/binary_devices/algae_generator_vr.dm +++ b/code/modules/atmospherics/components/binary_devices/algae_generator_vr.dm @@ -54,7 +54,7 @@ . = ..() internal = null -/obj/machinery/atmospherics/binary/algae_farm/process() +/obj/machinery/atmospherics/binary/algae_farm/process(delta_time) ..() recent_moles_transferred = 0 diff --git a/code/modules/atmospherics/components/binary_devices/circulator.dm b/code/modules/atmospherics/components/binary_devices/circulator.dm index 16d22b6b1e9..d08607272cd 100644 --- a/code/modules/atmospherics/components/binary_devices/circulator.dm +++ b/code/modules/atmospherics/components/binary_devices/circulator.dm @@ -69,7 +69,7 @@ stored_energy = 0 return last_stored_energy_transferred -/obj/machinery/atmospherics/binary/circulator/process() +/obj/machinery/atmospherics/binary/circulator/process(delta_time) ..() if(last_worldtime_transfer < world.time - 50) diff --git a/code/modules/atmospherics/components/binary_devices/dp_vent_pump.dm b/code/modules/atmospherics/components/binary_devices/dp_vent_pump.dm index 74f50e142e3..2e60ab65ab3 100644 --- a/code/modules/atmospherics/components/binary_devices/dp_vent_pump.dm +++ b/code/modules/atmospherics/components/binary_devices/dp_vent_pump.dm @@ -104,7 +104,7 @@ update_icon() update_underlays() -/obj/machinery/atmospherics/binary/dp_vent_pump/process() +/obj/machinery/atmospherics/binary/dp_vent_pump/process(delta_time) ..() last_power_draw = 0 diff --git a/code/modules/atmospherics/components/binary_devices/passive_gate.dm b/code/modules/atmospherics/components/binary_devices/passive_gate.dm index 248e3923af3..61ec3f25ebc 100644 --- a/code/modules/atmospherics/components/binary_devices/passive_gate.dm +++ b/code/modules/atmospherics/components/binary_devices/passive_gate.dm @@ -50,7 +50,7 @@ /obj/machinery/atmospherics/binary/passive_gate/hide(var/i) update_underlays() -/obj/machinery/atmospherics/binary/passive_gate/process() +/obj/machinery/atmospherics/binary/passive_gate/process(delta_time) ..() last_flow_rate = 0 diff --git a/code/modules/atmospherics/components/binary_devices/pipeturbine.dm b/code/modules/atmospherics/components/binary_devices/pipeturbine.dm index b90886c8900..59a84a23a03 100644 --- a/code/modules/atmospherics/components/binary_devices/pipeturbine.dm +++ b/code/modules/atmospherics/components/binary_devices/pipeturbine.dm @@ -47,7 +47,7 @@ node1 = null node2 = null -/obj/machinery/atmospherics/pipeturbine/process() +/obj/machinery/atmospherics/pipeturbine/process(delta_time) ..() if(anchored && !(stat&BROKEN)) kin_energy *= 1 - kin_loss @@ -248,7 +248,7 @@ if (turbine.stat & (BROKEN) || !turbine.anchored || turn(turbine.dir,180) != dir) turbine = null -/obj/machinery/power/turbinemotor/process() +/obj/machinery/power/turbinemotor/process(delta_time) updateConnection() if(!turbine || !anchored || stat & (BROKEN)) return diff --git a/code/modules/atmospherics/components/binary_devices/pump.dm b/code/modules/atmospherics/components/binary_devices/pump.dm index 2aeed46e110..a4a4eac430a 100644 --- a/code/modules/atmospherics/components/binary_devices/pump.dm +++ b/code/modules/atmospherics/components/binary_devices/pump.dm @@ -88,7 +88,7 @@ Thus, the two variables affect pump operation are set in New(): /obj/machinery/atmospherics/binary/pump/hide(var/i) update_underlays() -/obj/machinery/atmospherics/binary/pump/process() +/obj/machinery/atmospherics/binary/pump/process(delta_time) last_power_draw = 0 last_flow_rate = 0 diff --git a/code/modules/atmospherics/components/omni_devices/filter.dm b/code/modules/atmospherics/components/omni_devices/filter.dm index 9396e01ccaa..56f52e1afd8 100644 --- a/code/modules/atmospherics/components/omni_devices/filter.dm +++ b/code/modules/atmospherics/components/omni_devices/filter.dm @@ -58,7 +58,7 @@ return 0 -/obj/machinery/atmospherics/omni/atmos_filter/process() +/obj/machinery/atmospherics/omni/atmos_filter/process(delta_time) if(!..()) return 0 diff --git a/code/modules/atmospherics/components/omni_devices/mixer.dm b/code/modules/atmospherics/components/omni_devices/mixer.dm index 0210d09e691..fb18fa1e894 100644 --- a/code/modules/atmospherics/components/omni_devices/mixer.dm +++ b/code/modules/atmospherics/components/omni_devices/mixer.dm @@ -98,7 +98,7 @@ return 0 -/obj/machinery/atmospherics/omni/mixer/process() +/obj/machinery/atmospherics/omni/mixer/process(delta_time) if(!..()) return 0 @@ -294,4 +294,4 @@ /obj/machinery/atmospherics/omni/mixer/proc/con_lock(var/port = NORTH) for(var/datum/omni_port/P in inputs) if(P.dir == port) - P.con_lock = !P.con_lock \ No newline at end of file + P.con_lock = !P.con_lock diff --git a/code/modules/atmospherics/components/omni_devices/omni_base.dm b/code/modules/atmospherics/components/omni_devices/omni_base.dm index 89c96d1ba65..542b93734df 100644 --- a/code/modules/atmospherics/components/omni_devices/omni_base.dm +++ b/code/modules/atmospherics/components/omni_devices/omni_base.dm @@ -62,7 +62,7 @@ /obj/machinery/atmospherics/omni/proc/error_check() return -/obj/machinery/atmospherics/omni/process() +/obj/machinery/atmospherics/omni/process(delta_time) last_power_draw = 0 last_flow_rate = 0 diff --git a/code/modules/atmospherics/components/portables_connector.dm b/code/modules/atmospherics/components/portables_connector.dm index f9154b65342..aac3b135abf 100644 --- a/code/modules/atmospherics/components/portables_connector.dm +++ b/code/modules/atmospherics/components/portables_connector.dm @@ -52,7 +52,7 @@ /obj/machinery/atmospherics/portables_connector/hide(var/i) update_underlays() -/obj/machinery/atmospherics/portables_connector/process() +/obj/machinery/atmospherics/portables_connector/process(delta_time) ..() if(!on) return diff --git a/code/modules/atmospherics/components/trinary_devices/filter.dm b/code/modules/atmospherics/components/trinary_devices/filter.dm index 3ce8190cc86..9df9ee89843 100644 --- a/code/modules/atmospherics/components/trinary_devices/filter.dm +++ b/code/modules/atmospherics/components/trinary_devices/filter.dm @@ -75,7 +75,7 @@ icon_state += "off" update_use_power(USE_POWER_OFF) -/obj/machinery/atmospherics/trinary/atmos_filter/process() +/obj/machinery/atmospherics/trinary/atmos_filter/process(delta_time) ..() last_power_draw = 0 diff --git a/code/modules/atmospherics/components/trinary_devices/mixer.dm b/code/modules/atmospherics/components/trinary_devices/mixer.dm index cb3577e9f8f..f3d69187c7d 100644 --- a/code/modules/atmospherics/components/trinary_devices/mixer.dm +++ b/code/modules/atmospherics/components/trinary_devices/mixer.dm @@ -46,7 +46,7 @@ if (!mixing_inputs) mixing_inputs = list(src.air1 = node1_concentration, src.air2 = node2_concentration) -/obj/machinery/atmospherics/trinary/mixer/process() +/obj/machinery/atmospherics/trinary/mixer/process(delta_time) ..() last_power_draw = 0 diff --git a/code/modules/atmospherics/components/tvalve.dm b/code/modules/atmospherics/components/tvalve.dm index 107749656a9..ce52e38d372 100644 --- a/code/modules/atmospherics/components/tvalve.dm +++ b/code/modules/atmospherics/components/tvalve.dm @@ -169,7 +169,7 @@ else src.go_to_side() -/obj/machinery/atmospherics/tvalve/process() +/obj/machinery/atmospherics/tvalve/process(delta_time) ..() . = PROCESS_KILL diff --git a/code/modules/atmospherics/components/unary/cold_sink.dm b/code/modules/atmospherics/components/unary/cold_sink.dm index c4a2dc5162b..865d124defd 100644 --- a/code/modules/atmospherics/components/unary/cold_sink.dm +++ b/code/modules/atmospherics/components/unary/cold_sink.dm @@ -113,7 +113,7 @@ add_fingerprint(usr) -/obj/machinery/atmospherics/unary/freezer/process() +/obj/machinery/atmospherics/unary/freezer/process(delta_time) ..() if(stat & (NOPOWER|BROKEN) || !use_power) diff --git a/code/modules/atmospherics/components/unary/heat_source.dm b/code/modules/atmospherics/components/unary/heat_source.dm index 18cff9bd0ba..3d6a4f27bc7 100644 --- a/code/modules/atmospherics/components/unary/heat_source.dm +++ b/code/modules/atmospherics/components/unary/heat_source.dm @@ -61,7 +61,7 @@ return -/obj/machinery/atmospherics/unary/heater/process() +/obj/machinery/atmospherics/unary/heater/process(delta_time) ..() if(stat & (NOPOWER|BROKEN) || !use_power) diff --git a/code/modules/atmospherics/components/unary/outlet_injector.dm b/code/modules/atmospherics/components/unary/outlet_injector.dm index a76284951ad..5ba4b12c28d 100644 --- a/code/modules/atmospherics/components/unary/outlet_injector.dm +++ b/code/modules/atmospherics/components/unary/outlet_injector.dm @@ -52,7 +52,7 @@ if(old_stat != stat) update_icon() -/obj/machinery/atmospherics/unary/outlet_injector/process() +/obj/machinery/atmospherics/unary/outlet_injector/process(delta_time) ..() last_power_draw = 0 diff --git a/code/modules/atmospherics/components/unary/vent_pump.dm b/code/modules/atmospherics/components/unary/vent_pump.dm index 07d712273b9..e9d5a17d709 100644 --- a/code/modules/atmospherics/components/unary/vent_pump.dm +++ b/code/modules/atmospherics/components/unary/vent_pump.dm @@ -196,7 +196,7 @@ //soundloop.start() return 1 -/obj/machinery/atmospherics/unary/vent_pump/process() +/obj/machinery/atmospherics/unary/vent_pump/process(delta_time) ..() if (hibernate) diff --git a/code/modules/atmospherics/components/unary/vent_scrubber.dm b/code/modules/atmospherics/components/unary/vent_scrubber.dm index 8b3e8344b5c..774753c9e27 100644 --- a/code/modules/atmospherics/components/unary/vent_scrubber.dm +++ b/code/modules/atmospherics/components/unary/vent_scrubber.dm @@ -137,7 +137,7 @@ set_frequency(frequency) src.broadcast_status() -/obj/machinery/atmospherics/unary/vent_scrubber/process() +/obj/machinery/atmospherics/unary/vent_scrubber/process(delta_time) ..() if (hibernate) diff --git a/code/modules/atmospherics/components/valve.dm b/code/modules/atmospherics/components/valve.dm index 24cc4147095..1e9c5bebce3 100644 --- a/code/modules/atmospherics/components/valve.dm +++ b/code/modules/atmospherics/components/valve.dm @@ -139,7 +139,7 @@ else src.open() -/obj/machinery/atmospherics/valve/process() +/obj/machinery/atmospherics/valve/process(delta_time) ..() . = PROCESS_KILL diff --git a/code/modules/atmospherics/datum_pipe_network.dm b/code/modules/atmospherics/datum_pipe_network.dm index ed26753c662..53f57412de8 100644 --- a/code/modules/atmospherics/datum_pipe_network.dm +++ b/code/modules/atmospherics/datum_pipe_network.dm @@ -20,7 +20,7 @@ var/global/list/datum/pipe_network/pipe_networks = list() // TODO - Move into SS gases.Cut() // Do not qdel the gases, we don't own them return ..() -/datum/pipe_network/process() +/datum/pipe_network/process(delta_time) //Equalize gases amongst pipe if called for if(update) update = 0 diff --git a/code/modules/atmospherics/datum_pipeline.dm b/code/modules/atmospherics/datum_pipeline.dm index ae176287393..85656bb0516 100644 --- a/code/modules/atmospherics/datum_pipeline.dm +++ b/code/modules/atmospherics/datum_pipeline.dm @@ -20,7 +20,7 @@ edges = null . = ..() -/datum/pipeline/process()//This use to be called called from the pipe networks +/datum/pipeline/process(delta_time)//This use to be called called from the pipe networks //Check to see if pressure is within acceptable limits var/pressure = air.return_pressure() diff --git a/code/modules/atmospherics/pipes/he_pipes.dm b/code/modules/atmospherics/pipes/he_pipes.dm index 2d77e3a4ca9..644cbd027bf 100644 --- a/code/modules/atmospherics/pipes/he_pipes.dm +++ b/code/modules/atmospherics/pipes/he_pipes.dm @@ -70,7 +70,7 @@ return -/obj/machinery/atmospherics/pipe/simple/heat_exchanging/process() +/obj/machinery/atmospherics/pipe/simple/heat_exchanging/process(delta_time) if(!parent) ..() else diff --git a/code/modules/atmospherics/pipes/pipe_base.dm b/code/modules/atmospherics/pipes/pipe_base.dm index d87d01e9598..8d3ebf30d23 100644 --- a/code/modules/atmospherics/pipes/pipe_base.dm +++ b/code/modules/atmospherics/pipes/pipe_base.dm @@ -135,7 +135,7 @@ invisibility = i ? 101 : 0 update_icon() -/obj/machinery/atmospherics/pipe/process() +/obj/machinery/atmospherics/pipe/process(delta_time) if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle ..() else diff --git a/code/modules/atmospherics/pipes/vent.dm b/code/modules/atmospherics/pipes/vent.dm index 58aaa51ccdd..807c2d65277 100644 --- a/code/modules/atmospherics/pipes/vent.dm +++ b/code/modules/atmospherics/pipes/vent.dm @@ -27,7 +27,7 @@ name = "Larger vent" volume = 1000 -/obj/machinery/atmospherics/pipe/vent/process() +/obj/machinery/atmospherics/pipe/vent/process(delta_time) if(!parent) if(build_killswitch <= 0) . = PROCESS_KILL diff --git a/code/modules/atmospherics/zas/Fire.dm b/code/modules/atmospherics/zas/Fire.dm index d4f0a07ce0c..a622f805de5 100644 --- a/code/modules/atmospherics/zas/Fire.dm +++ b/code/modules/atmospherics/zas/Fire.dm @@ -121,7 +121,7 @@ turf/proc/hotspot_expose(exposed_temperature, exposed_volume, soh = 0) var/firelevel = 1 //Calculated by gas_mixture.calculate_firelevel() -/obj/fire/process() +/obj/fire/process(delta_time) . = 1 var/turf/simulated/my_tile = loc diff --git a/code/modules/awaymissions/bluespaceartillery.dm b/code/modules/awaymissions/bluespaceartillery.dm index 814053fed03..a228885cedc 100644 --- a/code/modules/awaymissions/bluespaceartillery.dm +++ b/code/modules/awaymissions/bluespaceartillery.dm @@ -7,7 +7,7 @@ density = 1 anchored = 1 -/obj/machinery/artillerycontrol/process() +/obj/machinery/artillerycontrol/process(delta_time) if(src.reload<180) src.reload++ @@ -62,4 +62,4 @@ for(var/turf/T in get_area_turfs(thearea.type)) L+=T var/loc = pick(L) - explosion(loc,2,5,11)*/ \ No newline at end of file + explosion(loc,2,5,11)*/ diff --git a/code/modules/awaymissions/gateway.dm b/code/modules/awaymissions/gateway.dm index b573f7133d7..361bff88e5f 100644 --- a/code/modules/awaymissions/gateway.dm +++ b/code/modules/awaymissions/gateway.dm @@ -51,7 +51,7 @@ density = 1 */ //VOREStation Removal End -obj/machinery/gateway/centerstation/process() +obj/machinery/gateway/centerstation/process(delta_time) if(stat & (NOPOWER)) if(active) toggleoff() return diff --git a/code/modules/blob/blob.dm b/code/modules/blob/blob.dm index 984fe8d841c..ee158e34bb3 100644 --- a/code/modules/blob/blob.dm +++ b/code/modules/blob/blob.dm @@ -172,7 +172,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/effect/blob/core/process() +/obj/effect/blob/core/process(delta_time) pulse(20, list(NORTH, EAST)) pulse(20, list(NORTH, WEST)) pulse(20, list(SOUTH, EAST)) diff --git a/code/modules/blob2/blobs/core.dm b/code/modules/blob2/blobs/core.dm index f43ec7ad6fd..a0ffd209850 100644 --- a/code/modules/blob2/blobs/core.dm +++ b/code/modules/blob2/blobs/core.dm @@ -111,7 +111,7 @@ var/list/blob_cores = list() overlays += blob_overlay overlays += mutable_appearance('icons/mob/blob.dmi', "blob_core_overlay") -/obj/structure/blob/core/process() +/obj/structure/blob/core/process(delta_time) set waitfor = FALSE if(QDELETED(src)) return @@ -183,4 +183,4 @@ var/list/blob_cores = list() if(initial(BT.difficulty) > difficulty_threshold) continue valid_types += BT - return pick(valid_types) \ No newline at end of file + return pick(valid_types) diff --git a/code/modules/blob2/blobs/node.dm b/code/modules/blob2/blobs/node.dm index aa1dcb3e8f3..81c7dbf4ada 100644 --- a/code/modules/blob2/blobs/node.dm +++ b/code/modules/blob2/blobs/node.dm @@ -30,7 +30,7 @@ var/list/blob_nodes = list() overlays += blob_overlay overlays += mutable_appearance('icons/mob/blob.dmi', "blob_node_overlay") -/obj/structure/blob/node/process() +/obj/structure/blob/node/process(delta_time) set waitfor = FALSE if(overmind) // This check is so that if the core is killed, the nodes stop. - pulse_area(overmind, 10, BLOB_NODE_PULSE_RANGE, BLOB_NODE_EXPAND_RANGE) \ No newline at end of file + pulse_area(overmind, 10, BLOB_NODE_PULSE_RANGE, BLOB_NODE_EXPAND_RANGE) diff --git a/code/modules/busy_space/air_traffic.dm b/code/modules/busy_space/air_traffic.dm index 27fd873b96c..d8f138adaa1 100644 --- a/code/modules/busy_space/air_traffic.dm +++ b/code/modules/busy_space/air_traffic.dm @@ -42,7 +42,7 @@ GLOBAL_DATUM_INIT(lore_atc, /datum/lore/atc_controller, new) next_message = world.time + initial_delay START_PROCESSING(SSobj, src) -/datum/lore/atc_controller/process() +/datum/lore/atc_controller/process(delta_time) if(world.time >= next_message) next_message = world.time + rand(delay_min, delay_max) random_convo() diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index d170dd90767..c18a75dd214 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -113,7 +113,7 @@ var/onfire = 0 body_parts_covered = HEAD -/obj/item/clothing/head/cakehat/process() +/obj/item/clothing/head/cakehat/process(delta_time) if(!onfire) STOP_PROCESSING(SSobj, src) return @@ -257,7 +257,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/clothing/head/psy_crown/process() +/obj/item/clothing/head/psy_crown/process(delta_time) if(isliving(loc)) var/mob/living/L = loc if(world.time >= cooldown && L.is_sentient() && L.get_tension() >= tension_threshold) diff --git a/code/modules/clothing/spacesuits/rig/modules/combat.dm b/code/modules/clothing/spacesuits/rig/modules/combat.dm index 2b9dfdd54ab..fa2569bae7f 100644 --- a/code/modules/clothing/spacesuits/rig/modules/combat.dm +++ b/code/modules/clothing/spacesuits/rig/modules/combat.dm @@ -197,7 +197,7 @@ gun_type = /obj/item/gun/energy/crossbow/ninja -/obj/item/rig_module/mounted/energy_blade/process() +/obj/item/rig_module/mounted/energy_blade/process(delta_time) if(holder && holder.wearer) if(!(locate(/obj/item/melee/energy/blade) in holder.wearer)) @@ -294,7 +294,7 @@ held_blade = new /obj/item/material/knife/machete/armblade/rig held_blade.storing_module = src -/obj/item/rig_module/armblade/process() +/obj/item/rig_module/armblade/process(delta_time) if(holder && holder.wearer) if(!(locate(/obj/item/material/knife/machete/armblade) in holder.wearer)) diff --git a/code/modules/clothing/spacesuits/rig/modules/computer.dm b/code/modules/clothing/spacesuits/rig/modules/computer.dm index 0b25678f50a..961277dadc9 100644 --- a/code/modules/clothing/spacesuits/rig/modules/computer.dm +++ b/code/modules/clothing/spacesuits/rig/modules/computer.dm @@ -46,7 +46,7 @@ var/obj/item/ai_card // Reference to the MMI, posibrain, intellicard or pAI card previously holding the AI. var/obj/item/ai_verbs/verb_holder -/obj/item/rig_module/ai_container/process() +/obj/item/rig_module/ai_container/process(delta_time) if(integrated_ai) var/obj/item/rig/rig = get_rig() if(rig && rig.ai_override_enabled) @@ -416,7 +416,7 @@ return 1 return 0 -/obj/item/rig_module/power_sink/process() +/obj/item/rig_module/power_sink/process(delta_time) if(!interfaced_with) return ..() diff --git a/code/modules/clothing/spacesuits/rig/modules/modules.dm b/code/modules/clothing/spacesuits/rig/modules/modules.dm index f4351d2884e..27fc16211ce 100644 --- a/code/modules/clothing/spacesuits/rig/modules/modules.dm +++ b/code/modules/clothing/spacesuits/rig/modules/modules.dm @@ -217,7 +217,7 @@ return // Called by the hardsuit each rig process tick. -/obj/item/rig_module/process() +/obj/item/rig_module/process(delta_time) if(active) return active_power_cost else diff --git a/code/modules/clothing/spacesuits/rig/modules/ninja.dm b/code/modules/clothing/spacesuits/rig/modules/ninja.dm index ba3af5c747d..6dadca26518 100644 --- a/code/modules/clothing/spacesuits/rig/modules/ninja.dm +++ b/code/modules/clothing/spacesuits/rig/modules/ninja.dm @@ -198,7 +198,7 @@ /obj/item/rig_module/self_destruct/deactivate() return -/obj/item/rig_module/self_destruct/process() +/obj/item/rig_module/self_destruct/process(delta_time) // Not being worn, leave it alone. if(!holder || !holder.wearer || !holder.wearer.wear_suit == holder) diff --git a/code/modules/clothing/spacesuits/rig/modules/utility.dm b/code/modules/clothing/spacesuits/rig/modules/utility.dm index e7296b27605..23171acd838 100644 --- a/code/modules/clothing/spacesuits/rig/modules/utility.dm +++ b/code/modules/clothing/spacesuits/rig/modules/utility.dm @@ -448,7 +448,7 @@ gun.Fire(target,holder.wearer) return 1 -/obj/item/rig_module/mounted/mop/process() +/obj/item/rig_module/mounted/mop/process(delta_time) if(holder && holder.wearer) if(!(locate(/obj/item/mop_deploy) in holder.wearer)) @@ -661,4 +661,4 @@ to_chat(H, "Your hardsuit returns to normal speed.") - holder.slowdown += sprint_speed \ No newline at end of file + holder.slowdown += sprint_speed diff --git a/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm b/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm index 2444d220e8e..4d0f49d736f 100644 --- a/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm +++ b/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm @@ -114,7 +114,7 @@ list("dexalin", "dexalin", 0, 20) ) -/obj/item/rig_module/rescue_pharm/process() +/obj/item/rig_module/rescue_pharm/process(delta_time) . = ..() if(active) var/did_work = 0 diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index c92bff03c2a..e34ccfaa1ab 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -468,7 +468,7 @@ if(cell.charge <= 0) turn_cooling_off(H, 1) -/obj/item/rig/process() +/obj/item/rig/process(delta_time) // If we've lost any parts, grab them back. var/mob/living/M for(var/obj/item/piece in list(gloves,boots,helmet,chest)) diff --git a/code/modules/detectivework/microscope/dnascanner.dm b/code/modules/detectivework/microscope/dnascanner.dm index 8056c7a3644..6fe37671494 100644 --- a/code/modules/detectivework/microscope/dnascanner.dm +++ b/code/modules/detectivework/microscope/dnascanner.dm @@ -100,7 +100,7 @@ return 1 -/obj/machinery/dnaforensics/process() +/obj/machinery/dnaforensics/process(delta_time) if(scanning) if(!bloodsamp || bloodsamp.loc != src) bloodsamp = null diff --git a/code/modules/detectivework/tools/rag.dm b/code/modules/detectivework/tools/rag.dm index 14c6cd7ff4d..bf27d8ad7e7 100644 --- a/code/modules/detectivework/tools/rag.dm +++ b/code/modules/detectivework/tools/rag.dm @@ -210,7 +210,7 @@ update_name() update_icon() -/obj/item/reagent_containers/glass/rag/process() +/obj/item/reagent_containers/glass/rag/process(delta_time) if(!can_ignite()) visible_message("\The [src] burns out.") extinguish() diff --git a/code/modules/detectivework/tools/uvlight.dm b/code/modules/detectivework/tools/uvlight.dm index 6f197c6dc8d..2153ba1307f 100644 --- a/code/modules/detectivework/tools/uvlight.dm +++ b/code/modules/detectivework/tools/uvlight.dm @@ -47,7 +47,7 @@ if(I.fluorescent == 2) I.fluorescent = 1 reset_objects.Cut() -/obj/item/uv_light/process() +/obj/item/uv_light/process(delta_time) clear_last_scan() if(on) step_alpha = round(255/range) @@ -68,4 +68,4 @@ var/obj/item/O = A if(O.was_bloodied && !(O.blood_overlay in O.overlays)) O.overlays |= O.blood_overlay - reset_objects |= O \ No newline at end of file + reset_objects |= O diff --git a/code/modules/economy/ATM.dm b/code/modules/economy/ATM.dm index f5d1affe0bd..27a67fbbd8b 100644 --- a/code/modules/economy/ATM.dm +++ b/code/modules/economy/ATM.dm @@ -42,7 +42,7 @@ log transactions spark_system.set_up(5, 0, src) spark_system.attach(src) -/obj/machinery/atm/process() +/obj/machinery/atm/process(delta_time) if(stat & NOPOWER) return diff --git a/code/modules/events/event.dm b/code/modules/events/event.dm index f751d6c2134..a6b0f4ae938 100644 --- a/code/modules/events/event.dm +++ b/code/modules/events/event.dm @@ -107,7 +107,7 @@ // Do not override this proc, instead use the appropiate procs. // This proc will handle the calls to the appropiate procs. -/datum/event/process() +/datum/event/process(delta_time) if(activeFor > startWhen && activeFor < endWhen) tick() diff --git a/code/modules/events/event_container.dm b/code/modules/events/event_container.dm index 3fa9195361c..2d9876ee476 100644 --- a/code/modules/events/event_container.dm +++ b/code/modules/events/event_container.dm @@ -21,7 +21,7 @@ var/global/list/severity_to_string = list(EVENT_LEVEL_MUNDANE = "Mundane", EVENT var/last_world_time = 0 -/datum/event_container/process() +/datum/event_container/process(delta_time) if(!round_start_time) return //don't do events if the round hasn't even started yet diff --git a/code/modules/food/kitchen/cooking_machines/_appliance.dm b/code/modules/food/kitchen/cooking_machines/_appliance.dm index 28f3edf5f3e..3a8425d401b 100644 --- a/code/modules/food/kitchen/cooking_machines/_appliance.dm +++ b/code/modules/food/kitchen/cooking_machines/_appliance.dm @@ -377,7 +377,7 @@ return 1 -/obj/machinery/appliance/process() +/obj/machinery/appliance/process(delta_time) if (cooking_power > 0 && cooking) for (var/i in cooking_objs) do_cooking_tick(i) diff --git a/code/modules/food/kitchen/cooking_machines/_cooker.dm b/code/modules/food/kitchen/cooking_machines/_cooker.dm index df6cf45c4b1..f9cca2bd188 100644 --- a/code/modules/food/kitchen/cooking_machines/_cooker.dm +++ b/code/modules/food/kitchen/cooking_machines/_cooker.dm @@ -61,7 +61,7 @@ light.pixel_y = light_y add_overlay(light) -/obj/machinery/appliance/cooker/process() +/obj/machinery/appliance/cooker/process(delta_time) if (!stat) heat_up() else diff --git a/code/modules/food/kitchen/cooking_machines/_mixer.dm b/code/modules/food/kitchen/cooking_machines/_mixer.dm index e22e075e29f..9d6201e0007 100644 --- a/code/modules/food/kitchen/cooking_machines/_mixer.dm +++ b/code/modules/food/kitchen/cooking_machines/_mixer.dm @@ -149,7 +149,7 @@ fundamental differences mixer_loop.stop(src) -/obj/machinery/appliance/mixer/process() +/obj/machinery/appliance/mixer/process(delta_time) if (!stat) for (var/i in cooking_objs) do_cooking_tick(i) diff --git a/code/modules/food/kitchen/cooking_machines/grill.dm b/code/modules/food/kitchen/cooking_machines/grill.dm index 328e85d7560..7b655eca1ff 100644 --- a/code/modules/food/kitchen/cooking_machines/grill.dm +++ b/code/modules/food/kitchen/cooking_machines/grill.dm @@ -101,7 +101,7 @@ */ /* // Test remove this too. -/obj/machinery/appliance/grill/process() +/obj/machinery/appliance/grill/process(delta_time) if (!stat) for (var/i in cooking_objs) do_cooking_tick(i) diff --git a/code/modules/food/kitchen/smartfridge.dm b/code/modules/food/kitchen/smartfridge.dm index d6129138d85..77c54bdad75 100644 --- a/code/modules/food/kitchen/smartfridge.dm +++ b/code/modules/food/kitchen/smartfridge.dm @@ -126,7 +126,7 @@ if(istype(O,/obj/item/reagent_containers/glass) || istype(O,/obj/item/reagent_containers/food/drinks) || istype(O,/obj/item/reagent_containers/food/condiment)) return 1 -/obj/machinery/smartfridge/food +/obj/machinery/smartfridge/food name = "\improper Hot Foods Display" desc = "A climated storage for dishes waiting to be eaten" @@ -135,7 +135,7 @@ return 1 if(istype(O,/obj/item/reagent_containers/food/condiment))//condiments need storage as well return 1 - + /obj/machinery/smartfridge/drying_rack name = "\improper Drying Rack" desc = "A machine for drying plants." @@ -152,7 +152,7 @@ return 1 return 0 -/obj/machinery/smartfridge/drying_rack/process() +/obj/machinery/smartfridge/drying_rack/process(delta_time) ..() if(stat & (BROKEN|NOPOWER)) return @@ -194,7 +194,7 @@ return return -/obj/machinery/smartfridge/process() +/obj/machinery/smartfridge/process(delta_time) if(stat & (BROKEN|NOPOWER)) return if(src.seconds_electrified > 0) diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm index 5ef77da349e..163b73583aa 100644 --- a/code/modules/holodeck/HolodeckControl.dm +++ b/code/modules/holodeck/HolodeckControl.dm @@ -204,7 +204,7 @@ if (stat != oldstat && active && (stat & NOPOWER)) emergencyShutdown() -/obj/machinery/computer/HolodeckControl/process() +/obj/machinery/computer/HolodeckControl/process(delta_time) for(var/item in holographic_objs) // do this first, to make sure people don't take items out when power is down. if(!(get_turf(item) in linkedholodeck)) derez(item, 0) diff --git a/code/modules/holomap/station_holomap.dm b/code/modules/holomap/station_holomap.dm index 74f988b5b61..13f5cd56235 100644 --- a/code/modules/holomap/station_holomap.dm +++ b/code/modules/holomap/station_holomap.dm @@ -136,7 +136,7 @@ return // TODO - Implement for AI ~Leshana // user.station_holomap.toggleHolomap(user, isAI(user)) -/obj/machinery/station_map/process() +/obj/machinery/station_map/process(delta_time) if((stat & (NOPOWER|BROKEN)) || !anchored) stopWatching() diff --git a/code/modules/hydroponics/beekeeping/beehive.dm b/code/modules/hydroponics/beekeeping/beehive.dm index d9fe66620f7..fa096842ae9 100644 --- a/code/modules/hydroponics/beekeeping/beehive.dm +++ b/code/modules/hydroponics/beekeeping/beehive.dm @@ -137,7 +137,7 @@ to_chat(user, "You take all filled honeycombs out.") return -/obj/machinery/beehive/process() +/obj/machinery/beehive/process(delta_time) if(closed && !smoked && bee_count) pollinate_flowers() update_icon() @@ -283,4 +283,4 @@ var/global/list/datum/stack_recipe/wax_recipes = list( \ name = initial(name) desc = initial(desc) overlays.Cut() - overlays += "beepack-full" \ No newline at end of file + overlays += "beepack-full" diff --git a/code/modules/hydroponics/seed_controller.dm b/code/modules/hydroponics/seed_controller.dm index 19faef004cb..942f24f28bf 100644 --- a/code/modules/hydroponics/seed_controller.dm +++ b/code/modules/hydroponics/seed_controller.dm @@ -131,7 +131,7 @@ var/global/datum/controller/plants/plant_controller // Set in New(). seed.set_trait(TRAIT_HIGHKPA_TOLERANCE,200) return seed -/datum/controller/plants/process() +/datum/controller/plants/process(delta_time) processing = 1 spawn(0) set background = 1 diff --git a/code/modules/hydroponics/seed_machines.dm b/code/modules/hydroponics/seed_machines.dm index b5c4d0a68c2..a1446bb5345 100644 --- a/code/modules/hydroponics/seed_machines.dm +++ b/code/modules/hydroponics/seed_machines.dm @@ -50,7 +50,7 @@ var/failed_task = 0 var/disk_needs_genes = 0 -/obj/machinery/botany/process() +/obj/machinery/botany/process(delta_time) ..() if(!active) return diff --git a/code/modules/hydroponics/seed_storage.dm b/code/modules/hydroponics/seed_storage.dm index e83376d16e7..28c0dac544c 100644 --- a/code/modules/hydroponics/seed_storage.dm +++ b/code/modules/hydroponics/seed_storage.dm @@ -80,7 +80,7 @@ )) return -/obj/machinery/seed_storage/process() +/obj/machinery/seed_storage/process(delta_time) ..() if(seconds_electrified > 0) seconds_electrified-- diff --git a/code/modules/hydroponics/spreading/spreading_growth.dm b/code/modules/hydroponics/spreading/spreading_growth.dm index f49cfa7fdc1..955abd379c3 100644 --- a/code/modules/hydroponics/spreading/spreading_growth.dm +++ b/code/modules/hydroponics/spreading/spreading_growth.dm @@ -41,7 +41,7 @@ if(neighbor.seed == src.seed) neighbor.neighbors -= T -/obj/effect/plant/process() +/obj/effect/plant/process(delta_time) // Something is very wrong, kill ourselves. if(!seed) @@ -171,4 +171,4 @@ plant_controller.add_plant(neighbor) spawn(1) if(src) qdel(src) -#undef NEIGHBOR_REFRESH_TIME \ No newline at end of file +#undef NEIGHBOR_REFRESH_TIME diff --git a/code/modules/hydroponics/trays/tray_process.dm b/code/modules/hydroponics/trays/tray_process.dm index 44f40b74fd8..bd76692cd03 100644 --- a/code/modules/hydroponics/trays/tray_process.dm +++ b/code/modules/hydroponics/trays/tray_process.dm @@ -1,4 +1,4 @@ -/obj/machinery/portable_atmospherics/hydroponics/process() +/obj/machinery/portable_atmospherics/hydroponics/process(delta_time) if(frozen == 1) return diff --git a/code/modules/hydroponics/trays/tray_soil.dm b/code/modules/hydroponics/trays/tray_soil.dm index abd4d80ae13..d1fa1e62c50 100644 --- a/code/modules/hydroponics/trays/tray_soil.dm +++ b/code/modules/hydroponics/trays/tray_soil.dm @@ -49,7 +49,7 @@ /obj/machinery/portable_atmospherics/hydroponics/soil/invisible/die() qdel(src) -/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/process() +/obj/machinery/portable_atmospherics/hydroponics/soil/invisible/process(delta_time) if(!seed) qdel(src) return diff --git a/code/modules/integrated_electronics/core/assemblies.dm b/code/modules/integrated_electronics/core/assemblies.dm index 21c11ec3caa..fdfa0501d81 100644 --- a/code/modules/integrated_electronics/core/assemblies.dm +++ b/code/modules/integrated_electronics/core/assemblies.dm @@ -30,7 +30,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/electronic_assembly/process() +/obj/item/electronic_assembly/process(delta_time) handle_idle_power() /obj/item/electronic_assembly/proc/handle_idle_power() diff --git a/code/modules/mining/drilling/drill.dm b/code/modules/mining/drilling/drill.dm index e0b0d9a1668..53c308f82b6 100644 --- a/code/modules/mining/drilling/drill.dm +++ b/code/modules/mining/drilling/drill.dm @@ -65,7 +65,7 @@ /obj/machinery/mining/drill/get_cell() return cell -/obj/machinery/mining/drill/process() +/obj/machinery/mining/drill/process(delta_time) if(need_player_check) return @@ -397,4 +397,4 @@ return 0 src.setDir(turn(src.dir, 270)) - return 1 \ No newline at end of file + return 1 diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm index 847576bde23..7994f1c7180 100644 --- a/code/modules/mining/machine_processing.dm +++ b/code/modules/mining/machine_processing.dm @@ -224,7 +224,7 @@ STOP_PROCESSING(SSfastprocess, src) START_MACHINE_PROCESSING(src) -/obj/machinery/mineral/processing_unit/process() +/obj/machinery/mineral/processing_unit/process(delta_time) if (!src.output || !src.input) return diff --git a/code/modules/mining/machine_stacking.dm b/code/modules/mining/machine_stacking.dm index 3ffdab2d9be..a48b0a2c644 100644 --- a/code/modules/mining/machine_stacking.dm +++ b/code/modules/mining/machine_stacking.dm @@ -112,7 +112,7 @@ if(output) break -/obj/machinery/mineral/stacking_machine/process() +/obj/machinery/mineral/stacking_machine/process(delta_time) if(!input || !output) return var/turf/inturf = get_turf(input) diff --git a/code/modules/mining/machine_unloading.dm b/code/modules/mining/machine_unloading.dm index 89b841c2df6..bbe9c9444a1 100644 --- a/code/modules/mining/machine_unloading.dm +++ b/code/modules/mining/machine_unloading.dm @@ -25,7 +25,7 @@ if(output) break -/obj/machinery/mineral/unloading_machine/process() +/obj/machinery/mineral/unloading_machine/process(delta_time) if(output && input) if(locate(/obj/structure/ore_box, input.loc)) var/obj/structure/ore_box/BOX = locate(/obj/structure/ore_box, input.loc) diff --git a/code/modules/mining/mint.dm b/code/modules/mining/mint.dm index 9d1b97cd6b3..e0fb98b299e 100644 --- a/code/modules/mining/mint.dm +++ b/code/modules/mining/mint.dm @@ -39,7 +39,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/machinery/mineral/mint/process() +/obj/machinery/mineral/mint/process(delta_time) if (input) var/obj/item/stack/O O = locate(/obj/item/stack, input.loc) @@ -213,4 +213,4 @@ processing = 0; coinsToProduce = temp_coins src.updateUsrDialog() - return \ No newline at end of file + return diff --git a/code/modules/mob/holder.dm b/code/modules/mob/holder.dm index 4adb992b9e4..423fd564ad8 100644 --- a/code/modules/mob/holder.dm +++ b/code/modules/mob/holder.dm @@ -28,7 +28,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/holder/process() +/obj/item/holder/process(delta_time) update_state() drop_items() diff --git a/code/modules/mob/living/carbon/human/species/station/alraune.dm b/code/modules/mob/living/carbon/human/species/station/alraune.dm index 69f3d3ff8dc..35e83910825 100644 --- a/code/modules/mob/living/carbon/human/species/station/alraune.dm +++ b/code/modules/mob/living/carbon/human/species/station/alraune.dm @@ -370,7 +370,7 @@ create_reagents(usable_volume) -/obj/item/organ/internal/fruitgland/process() +/obj/item/organ/internal/fruitgland/process(delta_time) if(!owner) return var/obj/item/organ/external/parent = owner.get_organ(parent_organ) var/before_gen diff --git a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm index 59ba73446d5..3d171c11f63 100644 --- a/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm +++ b/code/modules/mob/living/carbon/human/species/xenomorphs/alien_embryo.dm @@ -26,7 +26,7 @@ RemoveInfectionImages(affected_mob) ..() -/obj/item/alien_embryo/process() +/obj/item/alien_embryo/process(delta_time) if(!affected_mob) return if(loc != affected_mob) affected_mob.status_flags &= ~(XENO_HOST) diff --git a/code/modules/mob/living/carbon/metroid/items.dm b/code/modules/mob/living/carbon/metroid/items.dm index 25181944789..3588cd334ac 100644 --- a/code/modules/mob/living/carbon/metroid/items.dm +++ b/code/modules/mob/living/carbon/metroid/items.dm @@ -379,7 +379,7 @@ qdel(src) -/obj/item/reagent_containers/food/snacks/egg/slime/process() +/obj/item/reagent_containers/food/snacks/egg/slime/process(delta_time) var/turf/location = get_turf(src) var/datum/gas_mixture/environment = location.return_air() if (environment.phoron > MOLES_PHORON_VISIBLE)//phoron exposure causes the egg to hatch diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 2b2b33380e6..fc0fe262cec 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -317,7 +317,7 @@ var/list/ai_verbs_default = list( . = ..() powered_ai = null -/obj/machinery/ai_powersupply/process() +/obj/machinery/ai_powersupply/process(delta_time) if(!powered_ai || powered_ai.stat == DEAD) qdel(src) return diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm index 7f74f2a449f..13239ea853e 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_modules_vr.dm @@ -148,7 +148,7 @@ var/datum/matter_synth/water = null reagent_ids = list("inaprovaline", "dexalin", "bicaridine", "kelotane", "anti_toxin", "alkysine", "imidazoline", "spaceacillin", "paracetamol") -/obj/item/reagent_containers/borghypo/hound/process() //Recharges in smaller steps and uses the water reserves as well. +/obj/item/reagent_containers/borghypo/hound/process(delta_time) //Recharges in smaller steps and uses the water reserves as well. if(isrobot(loc)) var/mob/living/silicon/robot/R = loc if(R && R.cell) diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm index 6f1a2f766ca..0eaf51bfdf2 100644 --- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm +++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm @@ -622,7 +622,7 @@ update_patient() return -/obj/item/dogborg/sleeper/process() +/obj/item/dogborg/sleeper/process(delta_time) if(!istype(src.loc,/mob/living/silicon/robot)) return diff --git a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm index 89ad3664584..9c9dec924c3 100644 --- a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm +++ b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm @@ -39,7 +39,7 @@ if (stat & NOPOWER) icon_state = "drone_fab_nopower" -/obj/machinery/drone_fabricator/process() +/obj/machinery/drone_fabricator/process(delta_time) if(SSticker.current_state < GAME_STATE_PLAYING) return diff --git a/code/modules/mob/living/silicon/robot/robot_items.dm b/code/modules/mob/living/silicon/robot/robot_items.dm index a7dd3f02cd8..a3c40411162 100644 --- a/code/modules/mob/living/silicon/robot/robot_items.dm +++ b/code/modules/mob/living/silicon/robot/robot_items.dm @@ -365,7 +365,7 @@ /obj/item/borg/combat/shield/attack_self(var/mob/living/user) set_shield_level() -/obj/item/borg/combat/shield/process() +/obj/item/borg/combat/shield/process(delta_time) if(active) if(flash_count && (last_flash + shield_refresh < world.time)) flash_count = 0 @@ -507,4 +507,4 @@ return to_chat(user, "You fail to pick up \the [A] with \the [src]") - return \ No newline at end of file + return diff --git a/code/modules/mob/living/simple_animal/animals/farm_animals.dm b/code/modules/mob/living/simple_animal/animals/farm_animals.dm index 192eb9a887e..7ea2290e889 100644 --- a/code/modules/mob/living/simple_animal/animals/farm_animals.dm +++ b/code/modules/mob/living/simple_animal/animals/farm_animals.dm @@ -279,7 +279,7 @@ var/global/chicken_count = 0 START_PROCESSING(SSobj, E) /obj/item/reagent_containers/food/snacks/egg/var/amount_grown = 0 -/obj/item/reagent_containers/food/snacks/egg/process() +/obj/item/reagent_containers/food/snacks/egg/process(delta_time) if(isturf(loc)) amount_grown += rand(1,2) if(amount_grown >= 100) diff --git a/code/modules/mob/living/simple_animal/vore/solargrub_larva.dm b/code/modules/mob/living/simple_animal/vore/solargrub_larva.dm index 9594005e97d..ef097452eaf 100644 --- a/code/modules/mob/living/simple_animal/vore/solargrub_larva.dm +++ b/code/modules/mob/living/simple_animal/vore/solargrub_larva.dm @@ -224,7 +224,7 @@ var/global/list/grub_machine_overlays = list() grub = null return ..() -/obj/machinery/abstract_grub_machine/process() +/obj/machinery/abstract_grub_machine/process(delta_time) if(!draining) return var/area/A = get_area(src) diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/farm animals/chicken.dm b/code/modules/mob/living/simple_mob/subtypes/animal/farm animals/chicken.dm index b3a37b88f67..e359f48cef2 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/farm animals/chicken.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/farm animals/chicken.dm @@ -83,7 +83,7 @@ GLOBAL_VAR_INIT(chicken_count, 0) // How mant chickens DO we have? /obj/item/reagent_containers/food/snacks/egg/var/amount_grown = 0 // This only starts normally if there are less than MAX_CHICKENS chickens -/obj/item/reagent_containers/food/snacks/egg/process() +/obj/item/reagent_containers/food/snacks/egg/process(delta_time) if(isturf(loc)) amount_grown += rand(1,2) if(amount_grown >= 100) diff --git a/code/modules/mob/living/simple_mob/subtypes/vore/solargrub_larva.dm b/code/modules/mob/living/simple_mob/subtypes/vore/solargrub_larva.dm index 7bc88d51941..ec1a552a3d2 100644 --- a/code/modules/mob/living/simple_mob/subtypes/vore/solargrub_larva.dm +++ b/code/modules/mob/living/simple_mob/subtypes/vore/solargrub_larva.dm @@ -268,7 +268,7 @@ var/global/list/grub_machine_overlays = list() grub = null return ..() -/obj/machinery/abstract_grub_machine/process() +/obj/machinery/abstract_grub_machine/process(delta_time) if(!draining) return var/area/A = get_area(src) diff --git a/code/modules/mob/mob_grab.dm b/code/modules/mob/mob_grab.dm index 1f27d1df158..74820157fb3 100644 --- a/code/modules/mob/mob_grab.dm +++ b/code/modules/mob/mob_grab.dm @@ -93,7 +93,7 @@ else hud.screen_loc = ui_lhand -/obj/item/grab/process() +/obj/item/grab/process(delta_time) if(QDELETED(src)) // GC is trying to delete us, we'll kill our processing so we can cleanly GC return PROCESS_KILL diff --git a/code/modules/modular_computers/NTNet/NTNet_relay.dm b/code/modules/modular_computers/NTNet/NTNet_relay.dm index d3c601a42bf..40e5286822f 100644 --- a/code/modules/modular_computers/NTNet/NTNet_relay.dm +++ b/code/modules/modular_computers/NTNet/NTNet_relay.dm @@ -35,7 +35,7 @@ else icon_state = "bus_off" -/obj/machinery/ntnet_relay/process() +/obj/machinery/ntnet_relay/process(delta_time) if(operable()) update_use_power(USE_POWER_ACTIVE) else @@ -133,4 +133,4 @@ new /obj/structure/frame(src.loc) qdel(src) return - ..() \ No newline at end of file + ..() diff --git a/code/modules/modular_computers/computers/modular_computer/core.dm b/code/modules/modular_computers/computers/modular_computer/core.dm index b3dbfa449e7..cff41ec6525 100644 --- a/code/modules/modular_computers/computers/modular_computer/core.dm +++ b/code/modules/modular_computers/computers/modular_computer/core.dm @@ -1,4 +1,4 @@ -/obj/item/modular_computer/process() +/obj/item/modular_computer/process(delta_time) if(!enabled) // The computer is turned off last_power_usage = 0 return 0 @@ -266,4 +266,4 @@ if(autorun.stored_data == program) autorun.stored_data = null else - autorun.stored_data = program \ No newline at end of file + autorun.stored_data = program diff --git a/code/modules/multiz/pipes.dm b/code/modules/multiz/pipes.dm index e0de6840c35..0a6ee2b1048 100644 --- a/code/modules/multiz/pipes.dm +++ b/code/modules/multiz/pipes.dm @@ -56,7 +56,7 @@ obj/machinery/atmospherics/pipe/zpipe invisibility = i ? 101 : 0 update_icon() -obj/machinery/atmospherics/pipe/zpipe/process() +obj/machinery/atmospherics/pipe/zpipe/process(delta_time) if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle ..() else diff --git a/code/modules/organs/internal/appendix.dm b/code/modules/organs/internal/appendix.dm index 553c542529b..aad633b0983 100644 --- a/code/modules/organs/internal/appendix.dm +++ b/code/modules/organs/internal/appendix.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /obj/item/organ/internal/appendix name = "appendix" @@ -17,7 +16,7 @@ return 1 return 0 -/obj/item/organ/internal/appendix/process() +/obj/item/organ/internal/appendix/process(delta_time) ..() if(!inflamed || !owner) @@ -54,4 +53,4 @@ if(inflamed) icon_state = "appendixinflamed" name = "inflamed appendix" - ..() \ No newline at end of file + ..() diff --git a/code/modules/organs/internal/eyes.dm b/code/modules/organs/internal/eyes.dm index d70269b3911..fecfbda05a4 100644 --- a/code/modules/organs/internal/eyes.dm +++ b/code/modules/organs/internal/eyes.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /obj/item/organ/internal/eyes name = "eyeballs" @@ -77,7 +76,7 @@ if(is_broken() && !oldbroken && owner && !owner.stat) to_chat(owner, "You go blind!") -/obj/item/organ/internal/eyes/process() //Eye damage replaces the old eye_stat var. +/obj/item/organ/internal/eyes/process(delta_time) //Eye damage replaces the old eye_stat var. ..() if(!owner) return diff --git a/code/modules/organs/internal/heart.dm b/code/modules/organs/internal/heart.dm index 62e5fd16d22..8144d56b321 100644 --- a/code/modules/organs/internal/heart.dm +++ b/code/modules/organs/internal/heart.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /obj/item/organ/internal/heart name = "heart" diff --git a/code/modules/organs/internal/kidneys.dm b/code/modules/organs/internal/kidneys.dm index 45f5e29ca71..16524bd47fc 100644 --- a/code/modules/organs/internal/kidneys.dm +++ b/code/modules/organs/internal/kidneys.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /obj/item/organ/internal/kidneys name = "kidneys" @@ -7,7 +6,7 @@ organ_tag = O_KIDNEYS parent_organ = BP_GROIN -/obj/item/organ/internal/kidneys/process() +/obj/item/organ/internal/kidneys/process(delta_time) ..() if(!owner) @@ -19,9 +18,9 @@ var/datum/reagent/coffee = locate(/datum/reagent/drink/coffee) in owner.reagents.reagent_list if(coffee) if(is_bruised()) - owner.adjustToxLoss(0.1 * PROCESS_ACCURACY) + owner.adjustToxLoss(0.1 * (delta_time * 5)) else if(is_broken()) - owner.adjustToxLoss(0.3 * PROCESS_ACCURACY) + owner.adjustToxLoss(0.3 * (delta_time * 5)) /obj/item/organ/internal/kidneys/handle_organ_proc_special() . = ..() diff --git a/code/modules/organs/internal/liver.dm b/code/modules/organs/internal/liver.dm index a81c71895fb..8e3180a4968 100644 --- a/code/modules/organs/internal/liver.dm +++ b/code/modules/organs/internal/liver.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /obj/item/organ/internal/liver name = "liver" @@ -6,26 +5,26 @@ organ_tag = "liver" parent_organ = BP_GROIN -/obj/item/organ/internal/liver/process() +/obj/item/organ/internal/liver/process(delta_time) ..() if(!owner) return - if(owner.life_tick % PROCESS_ACCURACY == 0) + if(owner.life_tick % (delta_time * 5) == 0) //High toxins levels are dangerous if(owner.getToxLoss() >= 50 && !owner.reagents.has_reagent("anti_toxin")) //Healthy liver suffers on its own if (src.damage < min_broken_damage) - src.damage += 0.2 * PROCESS_ACCURACY + src.damage += 0.2 * (delta_time * 5) //Damaged one shares the fun else var/obj/item/organ/internal/O = pick(owner.internal_organs) if(O) - O.damage += 0.2 * PROCESS_ACCURACY + O.damage += 0.2 * (delta_time * 5) //Detox can heal small amounts of damage if (src.damage && src.damage < src.min_bruised_damage && owner.reagents.has_reagent("anti_toxin")) - src.damage -= 0.2 * PROCESS_ACCURACY + src.damage -= 0.2 * (delta_time * 5) if(src.damage < 0) src.damage = 0 @@ -39,11 +38,11 @@ // Do some reagent processing. if(owner.chem_effects[CE_ALCOHOL_TOXIC]) - take_damage(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.1 * PROCESS_ACCURACY, prob(1)) // Chance to warn them + take_damage(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.1 * (delta_time * 5), prob(1)) // Chance to warn them if(filter_effect < 2) //Liver is badly damaged, you're drinking yourself to death - owner.adjustToxLoss(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.2 * PROCESS_ACCURACY) + owner.adjustToxLoss(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.2 * (delta_time * 5)) if(filter_effect < 3) - owner.adjustToxLoss(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.1 * PROCESS_ACCURACY) + owner.adjustToxLoss(owner.chem_effects[CE_ALCOHOL_TOXIC] * 0.1 * (delta_time * 5)) /obj/item/organ/internal/liver/handle_germ_effects() . = ..() //Up should return an infection level as an integer diff --git a/code/modules/organs/internal/lungs.dm b/code/modules/organs/internal/lungs.dm index 07ef683e061..e4d32bf57c7 100644 --- a/code/modules/organs/internal/lungs.dm +++ b/code/modules/organs/internal/lungs.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /obj/item/organ/internal/lungs name = "lungs" @@ -7,7 +6,7 @@ organ_tag = O_LUNGS parent_organ = BP_TORSO -/obj/item/organ/internal/lungs/process() +/obj/item/organ/internal/lungs/process(delta_time) ..() if(!owner) diff --git a/code/modules/organs/internal/organ_internal.dm b/code/modules/organs/internal/organ_internal.dm index 58ed176505d..d4404c8215f 100644 --- a/code/modules/organs/internal/organ_internal.dm +++ b/code/modules/organs/internal/organ_internal.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /**************************************************** INTERNAL ORGANS DEFINES diff --git a/code/modules/organs/internal/spleen.dm b/code/modules/organs/internal/spleen.dm index 352a36207f1..fee88866e86 100644 --- a/code/modules/organs/internal/spleen.dm +++ b/code/modules/organs/internal/spleen.dm @@ -8,7 +8,7 @@ var/spleen_tick = 20 // The number of ticks between Spleen cycles. var/spleen_efficiency = 1 // A multiplier for how efficient this spleen is. -/obj/item/organ/internal/spleen/process() +/obj/item/organ/internal/spleen/process(delta_time) ..() if(!owner) return diff --git a/code/modules/organs/misc.dm b/code/modules/organs/misc.dm index 30515e746ba..48e921f7554 100644 --- a/code/modules/organs/misc.dm +++ b/code/modules/organs/misc.dm @@ -8,7 +8,7 @@ parent_organ = BP_HEAD vital = 1 -/obj/item/organ/internal/borer/process() +/obj/item/organ/internal/borer/process(delta_time) // Borer husks regenerate health, feel no pain, and are resistant to stuns and brainloss. for(var/chem in list("tricordrazine","tramadol","hyperzine","alkysine")) @@ -52,11 +52,11 @@ var/backup_time = 0 var/datum/mind/backup -/obj/item/organ/internal/stack/process() +/obj/item/organ/internal/stack/process(delta_time) if(owner && owner.stat != DEAD && !is_broken()) backup_time = world.time if(owner.mind) backup = owner.mind /obj/item/organ/internal/stack/vox/stack name = "vox cortical stack" - icon_state = "cortical_stack" \ No newline at end of file + icon_state = "cortical_stack" diff --git a/code/modules/organs/organ.dm b/code/modules/organs/organ.dm index 815e505449d..46adfb1ab3d 100644 --- a/code/modules/organs/organ.dm +++ b/code/modules/organs/organ.dm @@ -112,7 +112,7 @@ var/list/organ_cache = list() /obj/item/organ/proc/adjust_germ_level(var/amount) // Unless you're setting germ level directly to 0, use this proc instead germ_level = clamp(germ_level + amount, 0, INFECTION_LEVEL_MAX) -/obj/item/organ/process() +/obj/item/organ/process(delta_time) if(loc != owner) owner = null diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index 275fd235970..6ecf2759c72 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -576,7 +576,7 @@ This function completely restores a damaged organ to perfect condition. return 1 return 0 -/obj/item/organ/external/process() +/obj/item/organ/external/process(delta_time) if(owner) //Dismemberment //if(parent && parent.is_stump()) //should never happen diff --git a/code/modules/organs/organ_internal.dm b/code/modules/organs/organ_internal.dm index c67a3235d03..b5e965734a7 100644 --- a/code/modules/organs/organ_internal.dm +++ b/code/modules/organs/organ_internal.dm @@ -1,4 +1,3 @@ -#define PROCESS_ACCURACY 10 /**************************************************** INTERNAL ORGANS DEFINES diff --git a/code/modules/organs/subtypes/diona.dm b/code/modules/organs/subtypes/diona.dm index 7d43baf7573..b9f05998fa0 100644 --- a/code/modules/organs/subtypes/diona.dm +++ b/code/modules/organs/subtypes/diona.dm @@ -151,7 +151,7 @@ if(prob(50) && !skip_nymph && spawn_diona_nymph(get_turf(src))) qdel(src) -/obj/item/organ/internal/diona/process() +/obj/item/organ/internal/diona/process(delta_time) return /obj/item/organ/internal/diona/strata diff --git a/code/modules/organs/subtypes/slime.dm b/code/modules/organs/subtypes/slime.dm index 7c9cb43802f..b4260b5d38d 100644 --- a/code/modules/organs/subtypes/slime.dm +++ b/code/modules/organs/subtypes/slime.dm @@ -79,7 +79,7 @@ dead_icon = null standard_pulse_level = PULSE_NONE -/obj/item/organ/internal/heart/grey/colormatch/slime/process() +/obj/item/organ/internal/heart/grey/colormatch/slime/process(delta_time) ..() if(!(QDELETED(src)) && src.loc != owner) visible_message("\The [src] splatters!") @@ -127,7 +127,7 @@ strain = clamp(strain + amount, 0, min_broken_damage) -/obj/item/organ/internal/regennetwork/process() +/obj/item/organ/internal/regennetwork/process(delta_time) ..() if(!(QDELETED(src)) && src.loc != owner) diff --git a/code/modules/organs/subtypes/unathi.dm b/code/modules/organs/subtypes/unathi.dm index 03ff671b638..9fd50293b1e 100644 --- a/code/modules/organs/subtypes/unathi.dm +++ b/code/modules/organs/subtypes/unathi.dm @@ -28,23 +28,23 @@ icon_state = "unathi_liver" //Unathi liver acts as kidneys, too. -/obj/item/organ/internal/liver/unathi/process() +/obj/item/organ/internal/liver/unathi/process(delta_time) ..() if(!owner) return var/datum/reagent/coffee = locate(/datum/reagent/drink/coffee) in owner.reagents.reagent_list if(coffee) if(is_bruised()) - owner.adjustToxLoss(0.1 * PROCESS_ACCURACY) + owner.adjustToxLoss(0.1 * (delta_time * 5)) else if(is_broken()) - owner.adjustToxLoss(0.3 * PROCESS_ACCURACY) + owner.adjustToxLoss(0.3 * (delta_time * 5)) var/datum/reagent/sugar = locate(/datum/reagent/sugar) in owner.reagents.reagent_list if(sugar) if(is_bruised()) - owner.adjustToxLoss(0.1 * PROCESS_ACCURACY) + owner.adjustToxLoss(0.1 * (delta_time * 5)) else if(is_broken()) - owner.adjustToxLoss(0.3 * PROCESS_ACCURACY) + owner.adjustToxLoss(0.3 * (delta_time * 5)) /obj/item/organ/internal/brain/unathi color = "#b3cbc3" diff --git a/code/modules/overmap/ships/computers/helm.dm b/code/modules/overmap/ships/computers/helm.dm index 67e6243dc4d..2312aa1edce 100644 --- a/code/modules/overmap/ships/computers/helm.dm +++ b/code/modules/overmap/ships/computers/helm.dm @@ -42,7 +42,7 @@ GLOBAL_LIST_EMPTY(all_waypoints) R.fields["y"] = S.y known_sectors[S.name] = R -/obj/machinery/computer/ship/helm/process() +/obj/machinery/computer/ship/helm/process(delta_time) ..() if (autopilot && dx && dy) var/turf/T = locate(dx,dy,GLOB.using_map.overmap_z) diff --git a/code/modules/overmap/ships/computers/sensors.dm b/code/modules/overmap/ships/computers/sensors.dm index 4fcc21a71e7..324f838ffa2 100644 --- a/code/modules/overmap/ships/computers/sensors.dm +++ b/code/modules/overmap/ships/computers/sensors.dm @@ -103,7 +103,7 @@ playsound(src, "sound/machines/printer.ogg", 30, 1) return TOPIC_HANDLED -/obj/machinery/computer/ship/sensors/process() +/obj/machinery/computer/ship/sensors/process(delta_time) ..() if(!linked) return @@ -186,7 +186,7 @@ update_use_power(!use_power) update_icon() -/obj/machinery/shipsensors/process() +/obj/machinery/shipsensors/process(delta_time) if(use_power) //can't run in non-vacuum if(!in_vacuum()) toggle() diff --git a/code/modules/planet/weather.dm b/code/modules/planet/weather.dm index eb3e34b42fb..e6120e04608 100644 --- a/code/modules/planet/weather.dm +++ b/code/modules/planet/weather.dm @@ -47,7 +47,7 @@ our_planet.update_sun() log_debug("[our_planet.name]'s weather is now [new_weather], with a temperature of [temperature]°K ([temperature - T0C]°C | [temperature * 1.8 - 459.67]°F).") -/datum/weather_holder/process() +/datum/weather_holder/process(delta_time) if(world.time >= next_weather_shift) if(!current_weather) // Roundstart (hopefully). initialize_weather() @@ -257,4 +257,4 @@ // This is for special effects for specific types of weather, such as lightning flashes in a storm. // It's a seperate object to allow the use of flick(). /atom/movable/weather_visuals/special - plane = PLANE_LIGHTING_ABOVE \ No newline at end of file + plane = PLANE_LIGHTING_ABOVE diff --git a/code/modules/power/antimatter/control.dm b/code/modules/power/antimatter/control.dm index 161baf2f530..3ddccc13ad4 100644 --- a/code/modules/power/antimatter/control.dm +++ b/code/modules/power/antimatter/control.dm @@ -41,7 +41,7 @@ ..() -/obj/machinery/power/am_control_unit/process() +/obj/machinery/power/am_control_unit/process(delta_time) if(exploding) explosion(get_turf(src),8,12,18,12) if(src) qdel(src) @@ -327,4 +327,4 @@ check_core_stability() updateDialog() - return \ No newline at end of file + return diff --git a/code/modules/power/antimatter/shielding.dm b/code/modules/power/antimatter/shielding.dm index a121d498545..b8f359c135d 100644 --- a/code/modules/power/antimatter/shielding.dm +++ b/code/modules/power/antimatter/shielding.dm @@ -75,7 +75,7 @@ proc/cardinalrange(var/center) . = ..() return FALSE -/obj/machinery/am_shielding/process() +/obj/machinery/am_shielding/process(delta_time) if(!processing) . = PROCESS_KILL //TODO: core functions and stability //TODO: think about checking the airmix for phoron and increasing power output diff --git a/code/modules/power/apc.dm b/code/modules/power/apc.dm index 6b596625591..482a968d0fb 100644 --- a/code/modules/power/apc.dm +++ b/code/modules/power/apc.dm @@ -1019,7 +1019,7 @@ else return 0 -/obj/machinery/power/apc/process() +/obj/machinery/power/apc/process(delta_time) if(stat & (BROKEN|MAINT)) return diff --git a/code/modules/power/batteryrack.dm b/code/modules/power/batteryrack.dm index a3317646413..b4c4513931e 100644 --- a/code/modules/power/batteryrack.dm +++ b/code/modules/power/batteryrack.dm @@ -195,7 +195,7 @@ #define SMESRATE 0.05 // rate of internal charge to external power -/obj/machinery/power/smes/batteryrack/makeshift/process() +/obj/machinery/power/smes/batteryrack/makeshift/process(delta_time) if(stat & BROKEN) return //store machine state to see if we need to update the icon overlays diff --git a/code/modules/power/breaker_box.dm b/code/modules/power/breaker_box.dm index d492452c07a..bc69fa50c4d 100644 --- a/code/modules/power/breaker_box.dm +++ b/code/modules/power/breaker_box.dm @@ -149,5 +149,5 @@ spawn(600) update_locked = 0 -/obj/machinery/power/breakerbox/process() +/obj/machinery/power/breakerbox/process(delta_time) return 1 diff --git a/code/modules/power/cable_logic.dm b/code/modules/power/cable_logic.dm index 3b5b67a3ea4..84b26337d81 100644 --- a/code/modules/power/cable_logic.dm +++ b/code/modules/power/cable_logic.dm @@ -5,7 +5,7 @@ //Input is searched from the 'dir' direction var/obj/structure/cable/input -/obj/machinery/logic/indicator/process() +/obj/machinery/logic/indicator/process(delta_time) if(input) return 1 @@ -25,7 +25,7 @@ icon = 'icons/obj/lighting.dmi' icon_state = "bulb0" -/obj/machinery/logic/indicator/bulb/process() +/obj/machinery/logic/indicator/bulb/process(delta_time) if(!..()) //Parent proc checks if input1 exists. return @@ -46,7 +46,7 @@ //Output is searched from the 'dir' direction var/obj/structure/cable/output -/obj/machinery/logic/sensor/process() +/obj/machinery/logic/sensor/process(delta_time) if(output) return 1 @@ -66,7 +66,7 @@ icon = 'icons/obj/atmospherics/outlet_injector.dmi' icon_state = "off" -/obj/machinery/logic/sensor/constant_high/process() +/obj/machinery/logic/sensor/constant_high/process(delta_time) if(!..()) //Parent proc checks if input1 exists. return @@ -88,7 +88,7 @@ icon = 'icons/atmos/heat.dmi' icon_state = "intact" -/obj/machinery/logic/oneinput/process() +/obj/machinery/logic/oneinput/process(delta_time) if(input && output) return 1 @@ -114,7 +114,7 @@ return 0 //On the process() call, where everything is still being searched for, it returns 0. It will return 1 on the next process() call. //NOT GATE -/obj/machinery/logic/oneinput/not/process() +/obj/machinery/logic/oneinput/not/process(delta_time) if(!..()) //Parent proc checks if input1, input2 and output exist. return @@ -151,7 +151,7 @@ icon = 'icons/obj/atmospherics/mixer.dmi' icon_state = "intact_off" -/obj/machinery/logic/twoinput/process() +/obj/machinery/logic/twoinput/process(delta_time) if(input1 && input2 && output) return 1 @@ -185,7 +185,7 @@ return 0 //On the process() call, where everything is still being searched for, it returns 0. It will return 1 on the next process() call. //AND GATE -/obj/machinery/logic/twoinput/and/process() +/obj/machinery/logic/twoinput/and/process(delta_time) if(!..()) //Parent proc checks if input1, input2 and output exist. return @@ -205,7 +205,7 @@ pn_output.draw_power(LOGIC_HIGH) //Otherwise increase the load to 5 //OR GATE -/obj/machinery/logic/twoinput/or/process() +/obj/machinery/logic/twoinput/or/process(delta_time) if(!..()) //Parent proc checks if input1, input2 and output exist. return @@ -225,7 +225,7 @@ pn_output.draw_power(LOGIC_HIGH) //Otherwise increase the load to 5 //XOR GATE -/obj/machinery/logic/twoinput/xor/process() +/obj/machinery/logic/twoinput/xor/process(delta_time) if(!..()) //Parent proc checks if input1, input2 and output exist. return @@ -245,7 +245,7 @@ pn_output.draw_power(LOGIC_HIGH) //Otherwise increase the load to 5 //XNOR GATE (EQUIVALENCE) -/obj/machinery/logic/twoinput/xnor/process() +/obj/machinery/logic/twoinput/xnor/process(delta_time) if(!..()) //Parent proc checks if input1, input2 and output exist. return @@ -267,7 +267,7 @@ #define RELAY_POWER_TRANSFER 2000 //How much power a relay transfers through. //RELAY - input1 governs the flow from input2 to output -/obj/machinery/logic/twoinput/relay/process() +/obj/machinery/logic/twoinput/relay/process(delta_time) if(!..()) //Parent proc checks if input1, input2 and output exist. return @@ -289,4 +289,4 @@ #undef RELAY_POWER_TRANSFER -#undef LOGIC_HIGH \ No newline at end of file +#undef LOGIC_HIGH diff --git a/code/modules/power/cell.dm b/code/modules/power/cell.dm index 642b0d2d851..6261c28761e 100644 --- a/code/modules/power/cell.dm +++ b/code/modules/power/cell.dm @@ -45,7 +45,7 @@ /obj/item/cell/get_cell() return src -/obj/item/cell/process() +/obj/item/cell/process(delta_time) if(self_recharge) if(world.time >= last_use + charge_delay) give(charge_amount) diff --git a/code/modules/power/fission/engine.dm b/code/modules/power/fission/engine.dm index 0c7e11c2ad3..ab8fa83f57a 100644 --- a/code/modules/power/fission/engine.dm +++ b/code/modules/power/fission/engine.dm @@ -51,7 +51,7 @@ qdel(radio) . = ..() -/obj/machinery/power/fission/process() +/obj/machinery/power/fission/process(delta_time) var/turf/L = loc if(isnull(L)) // We have a null turf...something is wrong, stop processing this entity. @@ -554,7 +554,7 @@ return INITIALIZE_HINT_QDEL START_PROCESSING(SSobj, src) -/obj/nuclear_mistake_spawner/process() +/obj/nuclear_mistake_spawner/process(delta_time) if(my_mob && my_mob.stat != DEAD) return //No need diff --git a/code/modules/power/fission/rods.dm b/code/modules/power/fission/rods.dm index 51175ea357f..975cad2b634 100644 --- a/code/modules/power/fission/rods.dm +++ b/code/modules/power/fission/rods.dm @@ -28,7 +28,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/fuelrod/process() +/obj/item/fuelrod/process(delta_time) if(isnull(loc)) return PROCESS_KILL diff --git a/code/modules/power/fractal_reactor.dm b/code/modules/power/fractal_reactor.dm index d0d1db4b07f..52e03883b6d 100644 --- a/code/modules/power/fractal_reactor.dm +++ b/code/modules/power/fractal_reactor.dm @@ -20,10 +20,10 @@ if(!mapped_in) to_chat(world, "WARNING: Map testing power source activated at: X:[src.loc.x] Y:[src.loc.y] Z:[src.loc.z]") -/obj/machinery/power/fractal_reactor/process() +/obj/machinery/power/fractal_reactor/process(delta_time) if(!powernet && !powernet_connection_failed) if(!connect_to_network()) powernet_connection_failed = 1 spawn(150) // Error! Check again in 15 seconds. powernet_connection_failed = 0 - add_avail(power_generation_rate) \ No newline at end of file + add_avail(power_generation_rate) diff --git a/code/modules/power/fusion/core/_core.dm b/code/modules/power/fusion/core/_core.dm index a81e6c439fe..049e7854baf 100644 --- a/code/modules/power/fusion/core/_core.dm +++ b/code/modules/power/fusion/core/_core.dm @@ -44,7 +44,7 @@ var/list/fusion_cores = list() fusion_cores -= src return ..() -/obj/machinery/power/fusion_core/process() +/obj/machinery/power/fusion_core/process(delta_time) if((stat & BROKEN) || !powernet || !owned_field) Shutdown() if(owned_field) diff --git a/code/modules/power/fusion/core/core_field.dm b/code/modules/power/fusion/core/core_field.dm index 906b9491d31..36830fd5065 100644 --- a/code/modules/power/fusion/core/core_field.dm +++ b/code/modules/power/fusion/core/core_field.dm @@ -119,7 +119,7 @@ START_PROCESSING(SSobj, src) -/obj/effect/fusion_em_field/process() +/obj/effect/fusion_em_field/process(delta_time) //make sure the field generator is still intact if(!owned_core || QDELETED(owned_core)) qdel(src) diff --git a/code/modules/power/fusion/fuel_assembly/fuel_assembly.dm b/code/modules/power/fusion/fuel_assembly/fuel_assembly.dm index 13e673f095f..38d959be2a9 100644 --- a/code/modules/power/fusion/fuel_assembly/fuel_assembly.dm +++ b/code/modules/power/fusion/fuel_assembly/fuel_assembly.dm @@ -41,7 +41,7 @@ overlays += list(I, image(icon, "fuel_assembly_bracket")) rod_quantities[fuel_type] = initial_amount -/obj/item/fuel_assembly/process() +/obj/item/fuel_assembly/process(delta_time) if(!radioactivity) return PROCESS_KILL diff --git a/code/modules/power/fusion/fuel_assembly/fuel_injector.dm b/code/modules/power/fusion/fuel_assembly/fuel_injector.dm index a537f1f18a1..ca350806b86 100644 --- a/code/modules/power/fusion/fuel_assembly/fuel_injector.dm +++ b/code/modules/power/fusion/fuel_assembly/fuel_injector.dm @@ -33,7 +33,7 @@ var/list/fuel_injectors = list() /obj/machinery/fusion_fuel_injector/mapped anchored = 1 -/obj/machinery/fusion_fuel_injector/process() +/obj/machinery/fusion_fuel_injector/process(delta_time) if(injecting) if(stat & (BROKEN|NOPOWER)) StopInjecting() diff --git a/code/modules/power/fusion/gyrotron/gyrotron.dm b/code/modules/power/fusion/gyrotron/gyrotron.dm index 68c6e37cce1..6ba177e7d45 100644 --- a/code/modules/power/fusion/gyrotron/gyrotron.dm +++ b/code/modules/power/fusion/gyrotron/gyrotron.dm @@ -30,7 +30,7 @@ var/list/gyrotrons = list() gyrotrons -= src return ..() -/obj/machinery/power/emitter/gyrotron/process() +/obj/machinery/power/emitter/gyrotron/process(delta_time) active_power_usage = mega_energy * 50000 . = ..() @@ -65,4 +65,4 @@ var/list/gyrotrons = list() if(default_part_replacement(user, W)) return - return ..() \ No newline at end of file + return ..() diff --git a/code/modules/power/fusion/magpower.dm b/code/modules/power/fusion/magpower.dm index c6882c6eb36..1d3f21c14fb 100644 --- a/code/modules/power/fusion/magpower.dm +++ b/code/modules/power/fusion/magpower.dm @@ -13,7 +13,7 @@ var/active = 0 //are we even on? var/id_tag //needed for !!rasins!! -/obj/machinery/power/hydromagnetic_trap/process() +/obj/machinery/power/hydromagnetic_trap/process(delta_time) if(!powernet && anchored == 1) return spawn(1) diff --git a/code/modules/power/generator.dm b/code/modules/power/generator.dm index 2598d0051c4..4e9109e70fc 100644 --- a/code/modules/power/generator.dm +++ b/code/modules/power/generator.dm @@ -89,7 +89,7 @@ GLOBAL_LIST_EMPTY(all_turbines) circ2.temperature_overlay = "circ-[extreme]cold" return 1 -/obj/machinery/power/generator/process() +/obj/machinery/power/generator/process(delta_time) if(!circ1 || !circ2 || !anchored || stat & (BROKEN|NOPOWER)) stored_energy = 0 return diff --git a/code/modules/power/generator_type2.dm b/code/modules/power/generator_type2.dm index 540f49b8aa9..60a530977a9 100644 --- a/code/modules/power/generator_type2.dm +++ b/code/modules/power/generator_type2.dm @@ -36,7 +36,7 @@ #define GENRATE 800 // generator output coefficient from Q -/obj/machinery/power/generator_type2/process() +/obj/machinery/power/generator_type2/process(delta_time) if(!input1 || !input2) return diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index 95be0e32312..a86cd7daa6d 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -694,7 +694,7 @@ var/global/list/light_type_cache = list() // timed process // use power -/obj/machinery/light/process() +/obj/machinery/light/process(delta_time) if(auto_flicker && !flickering) if(check_for_player_proximity(src, radius = 12, ignore_ghosts = FALSE, ignore_afk = TRUE)) seton(TRUE) // Lights must be on to flicker. diff --git a/code/modules/power/port_gen.dm b/code/modules/power/port_gen.dm index 3931ad8cfb6..c9b3ce2b7de 100644 --- a/code/modules/power/port_gen.dm +++ b/code/modules/power/port_gen.dm @@ -28,7 +28,7 @@ /obj/machinery/power/port_gen/proc/handleInactive() return -/obj/machinery/power/port_gen/process() +/obj/machinery/power/port_gen/process(delta_time) if(active && HasFuel() && !IsBroken() && anchored && powernet) add_avail(power_gen * power_output) UseFuel() diff --git a/code/modules/power/sensors/powernet_sensor.dm b/code/modules/power/sensors/powernet_sensor.dm index bc1298d2010..15ff90b352d 100644 --- a/code/modules/power/sensors/powernet_sensor.dm +++ b/code/modules/power/sensors/powernet_sensor.dm @@ -52,7 +52,7 @@ // Proc: process() // Parameters: None // Description: This has to be here because we need sensors to remain in Machines list. -/obj/machinery/power/sensor/process() +/obj/machinery/power/sensor/process(delta_time) return 1 // Proc: reading_to_text() @@ -178,7 +178,7 @@ APC_entry["total_load"] = reading_to_text(A.lastused_total) // Hopefully removes those goddamn \improper s which are screwing up the UI var/N = A.area.name - if(findtext(N, "ÿ")) + if(findtext(N, "�")) N = copytext(N, 3) APC_entry["name"] = N // Add data into main list of APC data. diff --git a/code/modules/power/sensors/sensor_monitoring.dm b/code/modules/power/sensors/sensor_monitoring.dm index fae1d3c6dc4..37b832248f9 100644 --- a/code/modules/power/sensors/sensor_monitoring.dm +++ b/code/modules/power/sensors/sensor_monitoring.dm @@ -21,7 +21,7 @@ var/datum/nano_module/power_monitor/power_monitor // Checks the sensors for alerts. If change (alerts cleared or detected) occurs, calls for icon update. -/obj/machinery/computer/power_monitor/process() +/obj/machinery/computer/power_monitor/process(delta_time) var/alert = check_warnings() if(alert != alerting) alerting = !alerting diff --git a/code/modules/power/singularity/collector.dm b/code/modules/power/singularity/collector.dm index b39178dfd25..8a6d7c09d39 100644 --- a/code/modules/power/singularity/collector.dm +++ b/code/modules/power/singularity/collector.dm @@ -25,7 +25,7 @@ var/global/list/rad_collectors = list() rad_collectors -= src return ..() -/obj/machinery/power/rad_collector/process() +/obj/machinery/power/rad_collector/process(delta_time) //so that we don't zero out the meter if the SM is processed first. last_power = last_power_new last_power_new = 0 diff --git a/code/modules/power/singularity/emitter.dm b/code/modules/power/singularity/emitter.dm index 6815eb78be8..716053642de 100644 --- a/code/modules/power/singularity/emitter.dm +++ b/code/modules/power/singularity/emitter.dm @@ -98,7 +98,7 @@ src.use_power = 1 */ return 1 -/obj/machinery/power/emitter/process() +/obj/machinery/power/emitter/process(delta_time) if(stat & (BROKEN)) return if(src.state != 2 || (!powernet && active_power_usage)) diff --git a/code/modules/power/singularity/field_generator.dm b/code/modules/power/singularity/field_generator.dm index 18ffecdb64b..77cb6e1406c 100644 --- a/code/modules/power/singularity/field_generator.dm +++ b/code/modules/power/singularity/field_generator.dm @@ -61,7 +61,7 @@ field_generator power level display connected_gens = list() return -/obj/machinery/field_generator/process() +/obj/machinery/field_generator/process(delta_time) if(Varedit_start == 1) if(active == 0) active = 1 diff --git a/code/modules/power/singularity/generator.dm b/code/modules/power/singularity/generator.dm index 0e4e0c56259..fb429ddc0d5 100644 --- a/code/modules/power/singularity/generator.dm +++ b/code/modules/power/singularity/generator.dm @@ -10,7 +10,7 @@ var/energy = 0 var/creation_type = /obj/singularity -/obj/machinery/the_singularitygen/process() +/obj/machinery/the_singularitygen/process(delta_time) var/turf/T = get_turf(src) if(src.energy >= 200) new creation_type(T, 50) diff --git a/code/modules/power/singularity/particle_accelerator/particle_control.dm b/code/modules/power/singularity/particle_accelerator/particle_control.dm index 2f90091ac0c..a2ef49cc247 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_control.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_control.dm @@ -143,7 +143,7 @@ update_use_power(USE_POWER_IDLE) -/obj/machinery/particle_accelerator/control_box/process() +/obj/machinery/particle_accelerator/control_box/process(delta_time) if(src.active) //a part is missing! if( length(connected_parts) < 6 ) diff --git a/code/modules/power/singularity/particle_accelerator/particle_smasher.dm b/code/modules/power/singularity/particle_accelerator/particle_smasher.dm index 45ab95bc0d9..c7051331cfd 100644 --- a/code/modules/power/singularity/particle_accelerator/particle_smasher.dm +++ b/code/modules/power/singularity/particle_accelerator/particle_smasher.dm @@ -139,7 +139,7 @@ TryCraft() return 0 -/obj/machinery/particle_smasher/process() +/obj/machinery/particle_smasher/process(delta_time) if(!src.anchored) // Rapidly loses focus. if(energy) SSradiation.radiate(src, round(((src.energy-150)/50)*5,1)) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index 452d0587df3..0efbd1df81e 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -75,7 +75,7 @@ GLOBAL_LIST_BOILERPLATE(all_singularities, /obj/singularity) /obj/singularity/Bumped(atom/A) consume(A) -/obj/singularity/process() +/obj/singularity/process(delta_time) eat() dissipate() check_energy() diff --git a/code/modules/power/smes.dm b/code/modules/power/smes.dm index b00daf384b2..9ab7f3c05c8 100644 --- a/code/modules/power/smes.dm +++ b/code/modules/power/smes.dm @@ -134,7 +134,7 @@ /obj/machinery/power/smes/proc/chargedisplay() return round(5.5*charge/(capacity ? capacity : 5e6)) -/obj/machinery/power/smes/process() +/obj/machinery/power/smes/process(delta_time) if(stat & BROKEN) return //store machine state to see if we need to update the icon overlays @@ -467,7 +467,7 @@ output_level = 250000 should_be_mapped = 1 -/obj/machinery/power/smes/magical/process() +/obj/machinery/power/smes/magical/process(delta_time) charge = 5000000 ..() @@ -478,7 +478,7 @@ input_level = 500000 output_level = 1000000 -/obj/machinery/power/smes/buildable/main/process() +/obj/machinery/power/smes/buildable/main/process(delta_time) percentfull = 100.0*charge/capacity diff --git a/code/modules/power/smes_construction.dm b/code/modules/power/smes_construction.dm index 1c3aa08a4ac..4820e8fac76 100644 --- a/code/modules/power/smes_construction.dm +++ b/code/modules/power/smes_construction.dm @@ -100,7 +100,7 @@ // Parameters: None // Description: Uses parent process, but if grounding wire is cut causes sparks to fly around. // This also causes the SMES to quickly discharge, and has small chance of breaking lights connected to APCs in the powernet. -/obj/machinery/power/smes/buildable/process() +/obj/machinery/power/smes/buildable/process(delta_time) if(!grounding && (Percentage() > 5)) var/datum/effect_system/spark_spread/s = new /datum/effect_system/spark_spread s.set_up(5, 1, src) diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index c11080ee491..3e779a62d4f 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -123,7 +123,7 @@ GLOBAL_LIST_EMPTY(solars_list) sunfrac = cos(p_angle) ** 2 //isn't the power recieved from the incoming light proportionnal to cos(p_angle) (Lambert's cosine law) rather than cos(p_angle)^2 ? -/obj/machinery/power/solar/process()//TODO: remove/add this from machines to save on processing as needed ~Carn PRIORITY +/obj/machinery/power/solar/process(delta_time)//TODO: remove/add this from machines to save on processing as needed ~Carn PRIORITY if(stat & BROKEN) return if(!SSsun.sun || !control) //if there's no SSsun.sun or the panel is not linked to a solar control computer, no need to proceed @@ -172,7 +172,7 @@ GLOBAL_LIST_EMPTY(solars_list) /obj/machinery/power/solar/fake/New(var/turf/loc, var/obj/item/solar_assembly/S) ..(loc, S, 0) -/obj/machinery/power/solar/fake/process() +/obj/machinery/power/solar/fake/process(delta_time) . = PROCESS_KILL return @@ -463,7 +463,7 @@ GLOBAL_LIST_EMPTY(solars_list) src.attack_hand(user) return -/obj/machinery/power/solar_control/process() +/obj/machinery/power/solar_control/process(delta_time) lastgen = gen gen = 0 diff --git a/code/modules/power/supermatter/supermatter.dm b/code/modules/power/supermatter/supermatter.dm index 299f1045821..99a8bd2d609 100644 --- a/code/modules/power/supermatter/supermatter.dm +++ b/code/modules/power/supermatter/supermatter.dm @@ -238,7 +238,7 @@ return ..() -/obj/machinery/power/supermatter/process() +/obj/machinery/power/supermatter/process(delta_time) var/turf/L = loc @@ -504,7 +504,7 @@ START_PROCESSING(SSobj, src) return ..() -/obj/item/broken_sm/process() +/obj/item/broken_sm/process(delta_time) SSradiation.radiate(src, 50) /obj/item/broken_sm/Destroy() diff --git a/code/modules/power/terminal.dm b/code/modules/power/terminal.dm index e401a7b04f8..b9bff92e976 100644 --- a/code/modules/power/terminal.dm +++ b/code/modules/power/terminal.dm @@ -35,7 +35,7 @@ // Needed so terminals are not removed from machines list. // Powernet rebuilds need this to work properly. -/obj/machinery/power/terminal/process() +/obj/machinery/power/terminal/process(delta_time) return 1 /obj/machinery/power/terminal/overload(var/obj/machinery/power/source) diff --git a/code/modules/power/turbine.dm b/code/modules/power/turbine.dm index dca52e463e1..333aa6d88ea 100644 --- a/code/modules/power/turbine.dm +++ b/code/modules/power/turbine.dm @@ -142,7 +142,7 @@ to_chat(user, "Turbine not connected.") stat |= BROKEN -/obj/machinery/compressor/process() +/obj/machinery/compressor/process(delta_time) if(!turbine) stat = BROKEN if(stat & BROKEN || panel_open) @@ -240,7 +240,7 @@ to_chat(user, "Compressor not connected.") stat |= BROKEN -/obj/machinery/power/turbine/process() +/obj/machinery/power/turbine/process(delta_time) if(!compressor) stat = BROKEN if((stat & BROKEN) || panel_open) diff --git a/code/modules/projectiles/ammunition/smartmag.dm b/code/modules/projectiles/ammunition/smartmag.dm index 14c675aab85..6641e653235 100644 --- a/code/modules/projectiles/ammunition/smartmag.dm +++ b/code/modules/projectiles/ammunition/smartmag.dm @@ -34,7 +34,7 @@ STOP_PROCESSING(SSobj, src) ..() -/obj/item/ammo_magazine/smart/process() +/obj/item/ammo_magazine/smart/process(delta_time) if(!holding_gun) // Yes, this is awful, sorry. Don't know a better way to figure out if we've been moved into or out of a gun. if(istype(src.loc, /obj/item/gun)) holding_gun = src.loc @@ -223,4 +223,4 @@ ammo_type = null production_cost = null - return \ No newline at end of file + return diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index 24c53c7d2e2..ca1e948102a 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -49,7 +49,7 @@ /obj/item/gun/energy/get_cell() return power_supply -/obj/item/gun/energy/process() +/obj/item/gun/energy/process(delta_time) if(self_recharge) //Every [recharge_time] ticks, recharge a shot for the battery if(world.time > last_shot + charge_delay) //Doesn't work if you've fired recently if(!power_supply || power_supply.charge >= power_supply.maxcharge) diff --git a/code/modules/projectiles/guns/magic.dm b/code/modules/projectiles/guns/magic.dm index b6c89121441..2be9e45a253 100644 --- a/code/modules/projectiles/guns/magic.dm +++ b/code/modules/projectiles/guns/magic.dm @@ -51,7 +51,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/gun/magic/process() +/obj/item/gun/magic/process(delta_time) charge_tick++ if(charge_tick < recharge_rate || charges >= max_charges) return 0 diff --git a/code/modules/projectiles/guns/magnetic/magnetic.dm b/code/modules/projectiles/guns/magnetic/magnetic.dm index 096a2ad3fbd..5f0c7315ed3 100644 --- a/code/modules/projectiles/guns/magnetic/magnetic.dm +++ b/code/modules/projectiles/guns/magnetic/magnetic.dm @@ -38,7 +38,7 @@ /obj/item/gun/magnetic/get_cell() return cell -/obj/item/gun/magnetic/process() +/obj/item/gun/magnetic/process(delta_time) if(capacitor) if(cell) if(capacitor.charge < capacitor.max_charge && cell.checked_use(power_per_tick)) diff --git a/code/modules/projectiles/guns/vox.dm b/code/modules/projectiles/guns/vox.dm index 61f0b553602..1fc224ac3d1 100644 --- a/code/modules/projectiles/guns/vox.dm +++ b/code/modules/projectiles/guns/vox.dm @@ -27,7 +27,7 @@ STOP_PROCESSING(SSobj, src) ..() -/obj/item/gun/launcher/spikethrower/process() +/obj/item/gun/launcher/spikethrower/process(delta_time) if(spikes < max_spikes && world.time > last_regen + spike_gen_time) spikes++ last_regen = world.time @@ -152,4 +152,4 @@ if(ismob(target)) var/throwdir = get_dir(firer,target) target.throw_at(get_edge_target_turf(target, throwdir), rand(1,6), 10) - return 1 \ No newline at end of file + return 1 diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index e1cf8ba779f..6d5c79fec71 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -253,7 +253,7 @@ if(prob(50)) homing_offset_y = -homing_offset_y -/obj/item/projectile/process() +/obj/item/projectile/process(delta_time) last_process = world.time if(!loc || !fired || !trajectory) fired = FALSE diff --git a/code/modules/projectiles/projectile/bullets.dm b/code/modules/projectiles/projectile/bullets.dm index 5266416f52e..d4038272e18 100644 --- a/code/modules/projectiles/projectile/bullets.dm +++ b/code/modules/projectiles/projectile/bullets.dm @@ -392,7 +392,7 @@ combustion = FALSE -/obj/item/projectile/bullet/pistol/cap/process() +/obj/item/projectile/bullet/pistol/cap/process(delta_time) loc = null qdel(src) @@ -405,6 +405,6 @@ embed_chance = 0 sharp = 0 -/obj/item/projectile/bullet/blank/cap/process() +/obj/item/projectile/bullet/blank/cap/process(delta_time) loc = null qdel(src) diff --git a/code/modules/projectiles/targeting/targeting_overlay.dm b/code/modules/projectiles/targeting/targeting_overlay.dm index 2ac5b8fdb1c..446efca10f4 100644 --- a/code/modules/projectiles/targeting/targeting_overlay.dm +++ b/code/modules/projectiles/targeting/targeting_overlay.dm @@ -76,7 +76,7 @@ if(aiming_at) to_chat(aiming_at, "You are [message].") -/obj/aiming_overlay/process() +/obj/aiming_overlay/process(delta_time) if(!owner) qdel(src) return diff --git a/code/modules/reagents/dispenser/dispenser2_energy.dm b/code/modules/reagents/dispenser/dispenser2_energy.dm index b7634de0718..18375430f5c 100644 --- a/code/modules/reagents/dispenser/dispenser2_energy.dm +++ b/code/modules/reagents/dispenser/dispenser2_energy.dm @@ -4,7 +4,7 @@ var/list/dispense_reagents = list() var/process_tick = 0 -/obj/machinery/chemical_dispenser/process() +/obj/machinery/chemical_dispenser/process(delta_time) if(!_recharge_reagents) return if(stat & (BROKEN|NOPOWER)) diff --git a/code/modules/reagents/distilling/distilling.dm b/code/modules/reagents/distilling/distilling.dm index 0a737c053a5..9df95767b24 100644 --- a/code/modules/reagents/distilling/distilling.dm +++ b/code/modules/reagents/distilling/distilling.dm @@ -226,7 +226,7 @@ chan = power_channel A.use_power(amount, chan) -/obj/machinery/portable_atmospherics/powered/reagent_distillery/process() +/obj/machinery/portable_atmospherics/powered/reagent_distillery/process(delta_time) ..() var/run_pump = FALSE diff --git a/code/modules/reagents/reagent_containers/borghydro.dm b/code/modules/reagents/reagent_containers/borghydro.dm index 28fb30be655..e1439d745ab 100644 --- a/code/modules/reagents/reagent_containers/borghydro.dm +++ b/code/modules/reagents/reagent_containers/borghydro.dm @@ -48,7 +48,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/reagent_containers/borghypo/process() //Every [recharge_time] seconds, recharge some reagents for the cyborg+ +/obj/item/reagent_containers/borghypo/process(delta_time) //Every [recharge_time] seconds, recharge some reagents for the cyborg+ if(++charge_tick < recharge_time) return 0 charge_tick = 0 @@ -197,4 +197,4 @@ target.reagents.add_reagent(reagent_ids[mode], t) reagent_volumes[reagent_ids[mode]] -= t to_chat(user, "You transfer [t] units of the solution to [target].") - return \ No newline at end of file + return diff --git a/code/modules/reagents/reagent_containers/syringes_vr.dm b/code/modules/reagents/reagent_containers/syringes_vr.dm index 2282bf737f8..1b8cec90165 100644 --- a/code/modules/reagents/reagent_containers/syringes_vr.dm +++ b/code/modules/reagents/reagent_containers/syringes_vr.dm @@ -17,14 +17,14 @@ LAZYCLEARLIST(targets) return ..() -/obj/item/reagent_containers/syringe/process() +/obj/item/reagent_containers/syringe/process(delta_time) dirtiness = min(dirtiness + targets.len,75) if(dirtiness >= 75) STOP_PROCESSING(SSobj, src) return 1 // The code block below handles the syringes' infection chance among storing a hash of the first user targeted on it. -// +// /obj/item/reagent_containers/syringe/proc/dirty(var/mob/living/carbon/human/target, var/obj/item/organ/external/eo) if(!ishuman(loc)) return //Avoid borg syringe problems. diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 58329680450..72f4b3db9eb 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -97,7 +97,7 @@ // machine process // move items to the target location -/obj/machinery/conveyor/process() +/obj/machinery/conveyor/process(delta_time) if(stat & (BROKEN | NOPOWER)) return if(!operating) @@ -236,7 +236,7 @@ // timed process // if the switch changed, update the linked conveyors -/obj/machinery/conveyor_switch/process() +/obj/machinery/conveyor_switch/process(delta_time) if(!operated) return operated = 0 diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 9622d8bb641..f806e24c207 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -357,7 +357,7 @@ // timed process // charge the gas reservoir and perform flush if ready -/obj/machinery/disposal/process() +/obj/machinery/disposal/process(delta_time) if(!air_contents || (stat & BROKEN)) // nothing can happen if broken update_use_power(USE_POWER_OFF) return diff --git a/code/modules/research/circuitprinter.dm b/code/modules/research/circuitprinter.dm index d7d80bc5a79..a1adcab65eb 100644 --- a/code/modules/research/circuitprinter.dm +++ b/code/modules/research/circuitprinter.dm @@ -33,7 +33,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid). component_parts += new /obj/item/reagent_containers/glass/beaker(src) RefreshParts() -/obj/machinery/r_n_d/circuit_imprinter/process() +/obj/machinery/r_n_d/circuit_imprinter/process(delta_time) ..() if(stat) update_icon() diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm index 510bdc409de..f15e7b63f76 100644 --- a/code/modules/research/message_server.dm +++ b/code/modules/research/message_server.dm @@ -88,7 +88,7 @@ var/global/list/obj/machinery/message_server/message_servers = list() newKey += pick("1", "2", "3", "4", "5", "6", "7", "8", "9", "0") return newKey -/obj/machinery/message_server/process() +/obj/machinery/message_server/process(delta_time) //if(decryptkey == "password") // decryptkey = generateKey() if(active && (stat & (BROKEN|NOPOWER))) @@ -419,4 +419,4 @@ proc/feedback_add_details(var/variable,var/details) if(!FV) return - FV.add_details(details) \ No newline at end of file + FV.add_details(details) diff --git a/code/modules/research/protolathe.dm b/code/modules/research/protolathe.dm index 61d6fa71681..c35c999cbca 100644 --- a/code/modules/research/protolathe.dm +++ b/code/modules/research/protolathe.dm @@ -30,7 +30,7 @@ component_parts += new /obj/item/reagent_containers/glass/beaker(src) RefreshParts() -/obj/machinery/r_n_d/protolathe/process() +/obj/machinery/r_n_d/protolathe/process(delta_time) ..() if(stat) update_icon() @@ -230,4 +230,4 @@ return materials[material] -= ejected * S.perunit if(recursive && materials[material] >= S.perunit) - eject_materials(material, -1) \ No newline at end of file + eject_materials(material, -1) diff --git a/code/modules/research/server.dm b/code/modules/research/server.dm index 1cc22e46cbd..2d97dadc3f3 100644 --- a/code/modules/research/server.dm +++ b/code/modules/research/server.dm @@ -49,7 +49,7 @@ for(var/N in temp_list) id_with_download += text2num(N) -/obj/machinery/r_n_d/server/process() +/obj/machinery/r_n_d/server/process(delta_time) var/datum/gas_mixture/environment = loc.return_air() switch(environment.temperature) if(0 to T0C) @@ -145,7 +145,7 @@ server_ids += num no_id_servers -= S -/obj/machinery/r_n_d/server/centcom/process() +/obj/machinery/r_n_d/server/centcom/process(delta_time) return PROCESS_KILL //don't need process() /obj/machinery/computer/rdservercontrol diff --git a/code/modules/resleeving/machines.dm b/code/modules/resleeving/machines.dm index 153a5ab4700..e516a202d45 100644 --- a/code/modules/resleeving/machines.dm +++ b/code/modules/resleeving/machines.dm @@ -120,7 +120,7 @@ attempting = 0 return 1 -/obj/machinery/clonepod/transhuman/process() +/obj/machinery/clonepod/transhuman/process(delta_time) if(stat & NOPOWER) if(occupant) locked = 0 @@ -221,7 +221,7 @@ store_rating = store_rating * MB.rating max_res_amount = store_rating -/obj/machinery/transhuman/synthprinter/process() +/obj/machinery/transhuman/synthprinter/process(delta_time) if(stat & NOPOWER) if(busy) busy = 0 diff --git a/code/modules/shieldgen/directional_shield.dm b/code/modules/shieldgen/directional_shield.dm index 96887f8100a..c9cbe09bb98 100644 --- a/code/modules/shieldgen/directional_shield.dm +++ b/code/modules/shieldgen/directional_shield.dm @@ -186,7 +186,7 @@ create_shields() visible_message("\The [user] [!active ? "de":""]activates \the [src].") -/obj/item/shield_projector/process() +/obj/item/shield_projector/process(delta_time) if(shield_health < max_shield_health && ( (last_damaged_time + shield_regen_delay) < world.time) ) adjust_health(shield_regen_amount) if(always_on && !active) // Make shields as soon as possible if this is set. @@ -354,7 +354,7 @@ var/obj/mecha/my_mecha = null var/obj/item/mecha_parts/mecha_equipment/combat_shield/my_tool = null -/obj/item/shield_projector/line/exosuit/process() +/obj/item/shield_projector/line/exosuit/process(delta_time) ..() if((my_tool && loc != my_tool) && (my_mecha && loc != my_mecha)) forceMove(my_tool) diff --git a/code/modules/shieldgen/emergency_shield.dm b/code/modules/shieldgen/emergency_shield.dm index c7b0b9683a5..5c4730043b4 100644 --- a/code/modules/shieldgen/emergency_shield.dm +++ b/code/modules/shieldgen/emergency_shield.dm @@ -18,7 +18,7 @@ desc = "A weak forcefield which seems to be projected by the station's emergency atmosphere containment field" health = max_health/2 // Half health, it's not suposed to resist much. -/obj/machinery/shield/malfai/process() +/obj/machinery/shield/malfai/process(delta_time) health -= 0.5 // Slowly lose integrity over time check_failure() @@ -189,7 +189,7 @@ create_shields() update_icon() -/obj/machinery/shieldgen/process() +/obj/machinery/shieldgen/process(delta_time) if (!active || (stat & NOPOWER)) return diff --git a/code/modules/shieldgen/handheld_defuser.dm b/code/modules/shieldgen/handheld_defuser.dm index 1d90672e29d..9dd953d6e94 100644 --- a/code/modules/shieldgen/handheld_defuser.dm +++ b/code/modules/shieldgen/handheld_defuser.dm @@ -23,7 +23,7 @@ /obj/item/shield_diffuser/get_cell() return cell -/obj/item/shield_diffuser/process() +/obj/item/shield_diffuser/process(delta_time) if(!enabled) return @@ -81,4 +81,4 @@ else to_chat(user, "\The [src] already has a cell.") else - to_chat(user, "\The [src] cannot use that type of cell.") \ No newline at end of file + to_chat(user, "\The [src] cannot use that type of cell.") diff --git a/code/modules/shieldgen/sheldwallgen.dm b/code/modules/shieldgen/sheldwallgen.dm index 198e4463ee3..aaaf1d515c3 100644 --- a/code/modules/shieldgen/sheldwallgen.dm +++ b/code/modules/shieldgen/sheldwallgen.dm @@ -78,7 +78,7 @@ power = 1 // IVE GOT THE POWER! return 1 -/obj/machinery/shieldwallgen/process() +/obj/machinery/shieldwallgen/process(delta_time) power() if(power) storedpower -= 2500 //the generator post itself uses some power @@ -261,7 +261,7 @@ return -/obj/machinery/shieldwall/process() +/obj/machinery/shieldwall/process(delta_time) if(needs_power) if(isnull(gen_primary)||isnull(gen_secondary)) qdel(src) diff --git a/code/modules/shieldgen/shield_capacitor.dm b/code/modules/shieldgen/shield_capacitor.dm index 1e8868f3e20..1ac19e929ca 100644 --- a/code/modules/shieldgen/shield_capacitor.dm +++ b/code/modules/shieldgen/shield_capacitor.dm @@ -101,7 +101,7 @@ user << browse(t, "window=shield_capacitor;size=500x400") user.set_machine(src) -/obj/machinery/shield_capacitor/process() +/obj/machinery/shield_capacitor/process(delta_time) if (!anchored) active = 0 diff --git a/code/modules/shieldgen/shield_diffuser.dm b/code/modules/shieldgen/shield_diffuser.dm index 9c42e22b573..87f1098d378 100644 --- a/code/modules/shieldgen/shield_diffuser.dm +++ b/code/modules/shieldgen/shield_diffuser.dm @@ -27,7 +27,7 @@ /obj/machinery/shield_diffuser/hides_under_flooring() return 1 -/obj/machinery/shield_diffuser/process() +/obj/machinery/shield_diffuser/process(delta_time) if(alarm) alarm-- if(!alarm) @@ -71,4 +71,4 @@ . = ..() to_chat(user, "It is [enabled ? "enabled" : "disabled"].") if(alarm) - to_chat(user, "A red LED labeled \"Proximity Alarm\" is blinking on the control panel.") \ No newline at end of file + to_chat(user, "A red LED labeled \"Proximity Alarm\" is blinking on the control panel.") diff --git a/code/modules/shieldgen/shield_gen.dm b/code/modules/shieldgen/shield_gen.dm index d9b8c3eef53..fb86dcc68ef 100644 --- a/code/modules/shieldgen/shield_gen.dm +++ b/code/modules/shieldgen/shield_gen.dm @@ -151,7 +151,7 @@ user << browse(t, "window=shield_generator;size=500x400") user.set_machine(src) -/obj/machinery/shield_gen/process() +/obj/machinery/shield_gen/process(delta_time) if (!anchored && active) toggle() diff --git a/code/modules/shuttles/escape_pods.dm b/code/modules/shuttles/escape_pods.dm index ad963877f17..4b9da219aa3 100644 --- a/code/modules/shuttles/escape_pods.dm +++ b/code/modules/shuttles/escape_pods.dm @@ -141,7 +141,7 @@ return TRUE // Eat all commands. return ..(command) -/datum/computer/file/embedded_program/docking/simple/escape_pod_berth/process() +/datum/computer/file/embedded_program/docking/simple/escape_pod_berth/process(delta_time) ..() if (eject_time && world.time >= eject_time && !closing) close_door() diff --git a/code/modules/shuttles/shuttle_arrivals.dm b/code/modules/shuttles/shuttle_arrivals.dm index 0c877ed4fa5..b568c09be0d 100644 --- a/code/modules/shuttles/shuttle_arrivals.dm +++ b/code/modules/shuttles/shuttle_arrivals.dm @@ -22,7 +22,7 @@ // Unlike most shuttles, the arrivals shuttle is completely automated, so we need to put some additional code here. // Process the arrivals shuttle even when idle. -/obj/machinery/computer/shuttle_control/arrivals/process() +/obj/machinery/computer/shuttle_control/arrivals/process(delta_time) var/datum/shuttle/autodock/ferry/arrivals/shuttle = SSshuttle.shuttles[shuttle_tag] if(shuttle && shuttle.process_state == IDLE_STATE) shuttle.process() @@ -42,7 +42,7 @@ return FALSE return TRUE -/datum/shuttle/autodock/ferry/arrivals/process() +/datum/shuttle/autodock/ferry/arrivals/process(delta_time) if(process_state == IDLE_STATE) if(location) // If we're off-station (space). diff --git a/code/modules/shuttles/shuttle_autodock.dm b/code/modules/shuttles/shuttle_autodock.dm index e627b4d0dec..ce9b66f9248 100644 --- a/code/modules/shuttles/shuttle_autodock.dm +++ b/code/modules/shuttles/shuttle_autodock.dm @@ -114,7 +114,7 @@ Please ensure that long_jump() and short_jump() are only called from here. This applies to subtypes as well. Doing so will ensure that multiple jumps cannot be initiated in parallel. */ -/datum/shuttle/autodock/process() +/datum/shuttle/autodock/process(delta_time) update_helmets() switch(process_state) if (WAIT_LAUNCH) diff --git a/code/modules/shuttles/shuttles_web.dm b/code/modules/shuttles/shuttles_web.dm index 5b028b3c1fb..c9f877f803c 100644 --- a/code/modules/shuttles/shuttles_web.dm +++ b/code/modules/shuttles/shuttles_web.dm @@ -56,7 +56,7 @@ /datum/shuttle/autodock/web_shuttle/proc/build_destinations() return -/datum/shuttle/autodock/web_shuttle/process() +/datum/shuttle/autodock/web_shuttle/process(delta_time) if(moving_status == SHUTTLE_IDLE) if(web_master.autopath) // We're currently flying a path. autopilot_say("Continuing route.") @@ -495,7 +495,7 @@ icon_state = "airlock_sensor_standby" var/id_tag -/obj/machinery/shuttle_sensor/process() +/obj/machinery/shuttle_sensor/process(delta_time) return PROCESS_KILL //nty /obj/machinery/shuttle_sensor/proc/air_list() diff --git a/code/modules/spells/artifacts.dm b/code/modules/spells/artifacts.dm index dbb3b69ed41..58298784b3d 100644 --- a/code/modules/spells/artifacts.dm +++ b/code/modules/spells/artifacts.dm @@ -72,7 +72,7 @@ START_PROCESSING(SSobj, src) return -/obj/effect/rend/process() +/obj/effect/rend/process(delta_time) if(!spawn_fast) if(locate(/mob) in loc) return @@ -128,7 +128,7 @@ current_size = STAGE_FOUR allowed_size = STAGE_FOUR -/obj/singularity/wizard/process() +/obj/singularity/wizard/process(delta_time) move() eat() return diff --git a/code/modules/spells/spell_code.dm b/code/modules/spells/spell_code.dm index 4c050bbc84d..1e04ebc15a6 100644 --- a/code/modules/spells/spell_code.dm +++ b/code/modules/spells/spell_code.dm @@ -64,7 +64,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now //still_recharging_msg = "[name] is still recharging." charge_counter = charge_max -/spell/process() +/spell/process(delta_time) spawn while(charge_counter < charge_max) charge_counter++ sleep(1) diff --git a/code/modules/virus2/analyser.dm b/code/modules/virus2/analyser.dm index 9bb6ba9dd12..5be4c264142 100644 --- a/code/modules/virus2/analyser.dm +++ b/code/modules/virus2/analyser.dm @@ -26,7 +26,7 @@ user.visible_message("[user] adds \a [O] to \the [src]!", "You add \a [O] to \the [src]!") -/obj/machinery/disease2/diseaseanalyser/process() +/obj/machinery/disease2/diseaseanalyser/process(delta_time) if(stat & (NOPOWER|BROKEN)) return diff --git a/code/modules/virus2/centrifuge.dm b/code/modules/virus2/centrifuge.dm index 8731a399f27..5e659eb6833 100644 --- a/code/modules/virus2/centrifuge.dm +++ b/code/modules/virus2/centrifuge.dm @@ -80,7 +80,7 @@ ui.set_initial_data(data) ui.open() -/obj/machinery/computer/centrifuge/process() +/obj/machinery/computer/centrifuge/process(delta_time) ..() if (stat & (NOPOWER|BROKEN)) return diff --git a/code/modules/virus2/curer.dm b/code/modules/virus2/curer.dm index a901d648069..4f2b4a3844d 100644 --- a/code/modules/virus2/curer.dm +++ b/code/modules/virus2/curer.dm @@ -64,7 +64,7 @@ onclose(user, "computer") return -/obj/machinery/computer/curer/process() +/obj/machinery/computer/curer/process(delta_time) ..() if(stat & (NOPOWER|BROKEN)) diff --git a/code/modules/virus2/diseasesplicer.dm b/code/modules/virus2/diseasesplicer.dm index 6326657831d..9ab97622892 100644 --- a/code/modules/virus2/diseasesplicer.dm +++ b/code/modules/virus2/diseasesplicer.dm @@ -87,7 +87,7 @@ ui.set_initial_data(data) ui.open() -/obj/machinery/computer/diseasesplicer/process() +/obj/machinery/computer/diseasesplicer/process(delta_time) if(stat & (NOPOWER|BROKEN)) return diff --git a/code/modules/virus2/dishincubator.dm b/code/modules/virus2/dishincubator.dm index 40247cb3308..aa185b7fda7 100644 --- a/code/modules/virus2/dishincubator.dm +++ b/code/modules/virus2/dishincubator.dm @@ -91,7 +91,7 @@ ui.set_initial_data(data) ui.open() -/obj/machinery/disease2/incubator/process() +/obj/machinery/disease2/incubator/process(delta_time) if(dish && on && dish.virus2) use_power(50,EQUIP) if(!powered(EQUIP)) diff --git a/code/modules/virus2/isolator.dm b/code/modules/virus2/isolator.dm index dee319a6ebe..20ca58c3cfc 100644 --- a/code/modules/virus2/isolator.dm +++ b/code/modules/virus2/isolator.dm @@ -109,7 +109,7 @@ ui.set_initial_data(data) ui.open() -/obj/machinery/disease2/isolator/process() +/obj/machinery/disease2/isolator/process(delta_time) if (isolating > 0) isolating -= 1 if (isolating == 0) diff --git a/code/modules/vore/fluffstuff/custom_items.dm b/code/modules/vore/fluffstuff/custom_items.dm index 2d50a54b8ad..e81777731e6 100644 --- a/code/modules/vore/fluffstuff/custom_items.dm +++ b/code/modules/vore/fluffstuff/custom_items.dm @@ -436,7 +436,7 @@ process() //Nownownow return ..() //Okfine -/obj/item/clothing/accessory/collar/vmcrystal/process() +/obj/item/clothing/accessory/collar/vmcrystal/process(delta_time) check_owner() if((state > 1) || !owner) STOP_PROCESSING(SSobj, src) @@ -650,7 +650,7 @@ set_light(0) soundloop.stop() -/obj/item/storage/backpack/saddlebag/tempest/process() +/obj/item/storage/backpack/saddlebag/tempest/process(delta_time) if(!ambulance) STOP_PROCESSING(SSobj, src) return @@ -1444,7 +1444,7 @@ ready = FALSE update_icon() - + //Failure chance if(prob(failure_chance) && (beacons.len >= 2)) var/list/wrong_choices = beacons - destination.tele_name diff --git a/code/modules/xenoarcheaology/artifacts/artifact.dm b/code/modules/xenoarcheaology/artifacts/artifact.dm index f9679cc38df..5a17d170f5c 100644 --- a/code/modules/xenoarcheaology/artifacts/artifact.dm +++ b/code/modules/xenoarcheaology/artifacts/artifact.dm @@ -64,7 +64,7 @@ secondary_effect = null -/obj/machinery/artifact/process() +/obj/machinery/artifact/process(delta_time) var/turf/L = loc if(!istype(L)) // We're inside a container or on null turf, either way stop processing effects return diff --git a/code/modules/xenoarcheaology/artifacts/autocloner.dm b/code/modules/xenoarcheaology/artifacts/autocloner.dm index 40307cea807..17734672f1a 100644 --- a/code/modules/xenoarcheaology/artifacts/autocloner.dm +++ b/code/modules/xenoarcheaology/artifacts/autocloner.dm @@ -40,7 +40,7 @@ /mob/living/simple_mob/animal/goat) //todo: how the hell is the asteroid permanently powered? -/obj/machinery/auto_cloner/process() +/obj/machinery/auto_cloner/process(delta_time) if(powered(power_channel)) if(!previous_power_state) previous_power_state = 1 diff --git a/code/modules/xenoarcheaology/artifacts/replicator.dm b/code/modules/xenoarcheaology/artifacts/replicator.dm index a61ae8b1eae..9071f233196 100644 --- a/code/modules/xenoarcheaology/artifacts/replicator.dm +++ b/code/modules/xenoarcheaology/artifacts/replicator.dm @@ -82,7 +82,7 @@ [pick("front","side","top","bottom","rear","inside")] of [src]. A [pick("slot","funnel","chute","tube")] opens up in the \ [pick("front","side","top","bottom","rear","inside")]." -/obj/machinery/replicator/process() +/obj/machinery/replicator/process(delta_time) if(spawning_types.len && powered()) spawn_progress_time += world.time - last_process_time if(spawn_progress_time > max_spawn_time) diff --git a/code/modules/xenoarcheaology/effect.dm b/code/modules/xenoarcheaology/effect.dm index cb932bfc0ea..776f73db5d1 100644 --- a/code/modules/xenoarcheaology/effect.dm +++ b/code/modules/xenoarcheaology/effect.dm @@ -60,7 +60,7 @@ /datum/artifact_effect/proc/DoEffectPulse(var/atom/holder) /datum/artifact_effect/proc/UpdateMove() -/datum/artifact_effect/process() +/datum/artifact_effect/process(delta_time) if(chargelevel < chargelevelmax) chargelevel++ diff --git a/code/modules/xenoarcheaology/effects/forcefield.dm b/code/modules/xenoarcheaology/effects/forcefield.dm index 028eff3a75a..68c737dd85e 100644 --- a/code/modules/xenoarcheaology/effects/forcefield.dm +++ b/code/modules/xenoarcheaology/effects/forcefield.dm @@ -26,7 +26,7 @@ UpdateMove() return 1 -/datum/artifact_effect/forcefield/process() +/datum/artifact_effect/forcefield/process(delta_time) ..() for(var/obj/effect/energy_field/E in created_field) if(E.strength < 1) diff --git a/code/modules/xenoarcheaology/finds/special.dm b/code/modules/xenoarcheaology/finds/special.dm index ef7b839f373..f385e95d042 100644 --- a/code/modules/xenoarcheaology/finds/special.dm +++ b/code/modules/xenoarcheaology/finds/special.dm @@ -7,7 +7,7 @@ START_PROCESSING(SSobj, src) spawning_id = pick("blood","holywater","lube","stoxin","ethanol","ice","glycerol","fuel","cleaner") -/obj/item/reagent_containers/glass/replenishing/process() +/obj/item/reagent_containers/glass/replenishing/process(delta_time) reagents.add_reagent(spawning_id, 0.3) //a talking gas mask! @@ -20,7 +20,7 @@ . = ..() START_PROCESSING(SSobj, src) -/obj/item/clothing/mask/gas/poltergeist/process() +/obj/item/clothing/mask/gas/poltergeist/process(delta_time) if(heard_talk.len && istype(loc, /mob/living) && prob(10)) var/mob/living/M = loc M.say(pick(heard_talk)) @@ -52,7 +52,7 @@ . = ..() START_PROCESSING(SSobj, src) -/obj/item/vampiric/process() +/obj/item/vampiric/process(delta_time) //see if we've identified anyone nearby if(world.time - last_bloodcall > bloodcall_interval && nearby_mobs.len) var/mob/living/carbon/human/M = pop(nearby_mobs) @@ -140,7 +140,7 @@ loc_last_process = loc START_PROCESSING(SSobj, src) -/obj/effect/decal/cleanable/blood/splatter/animated/process() +/obj/effect/decal/cleanable/blood/splatter/animated/process(delta_time) if(target_turf && loc != target_turf) step_towards(src,target_turf) if(loc == loc_last_process) @@ -170,7 +170,7 @@ . = ..() START_PROCESSING(SSobj, src) -/obj/effect/shadow_wight/process() +/obj/effect/shadow_wight/process(delta_time) if(loc) loc = get_turf(pick(orange(1,src))) var/mob/living/carbon/M = locate() in loc diff --git a/code/modules/xenoarcheaology/finds/talking.dm b/code/modules/xenoarcheaology/finds/talking.dm index 8dbf157b3d0..7ebe531272c 100644 --- a/code/modules/xenoarcheaology/finds/talking.dm +++ b/code/modules/xenoarcheaology/finds/talking.dm @@ -15,7 +15,7 @@ if(holder_atom) START_PROCESSING(SSobj, src) -/datum/talking_atom/process() +/datum/talking_atom/process(delta_time) if(!holder_atom) STOP_PROCESSING(SSobj, src) diff --git a/code/modules/xenoarcheaology/tools/ano_device_battery.dm b/code/modules/xenoarcheaology/tools/ano_device_battery.dm index f9d9c6c1dba..49838c360e4 100644 --- a/code/modules/xenoarcheaology/tools/ano_device_battery.dm +++ b/code/modules/xenoarcheaology/tools/ano_device_battery.dm @@ -79,7 +79,7 @@ user << browse(dat, "window=anodevice;size=400x500") onclose(user, "anodevice") -/obj/item/anodevice/process() +/obj/item/anodevice/process(delta_time) if(activated) if(inserted_battery && inserted_battery.battery_effect && (inserted_battery.stored_charge > 0) ) //make sure the effect is active diff --git a/code/modules/xenoarcheaology/tools/artifact_analyser.dm b/code/modules/xenoarcheaology/tools/artifact_analyser.dm index d3c28107fe2..792912a0232 100644 --- a/code/modules/xenoarcheaology/tools/artifact_analyser.dm +++ b/code/modules/xenoarcheaology/tools/artifact_analyser.dm @@ -54,7 +54,7 @@ user.set_machine(src) onclose(user, "artanalyser") -/obj/machinery/artifact_analyser/process() +/obj/machinery/artifact_analyser/process(delta_time) if(scan_in_progress && world.time > scan_completion_time) scan_in_progress = 0 updateDialog() diff --git a/code/modules/xenoarcheaology/tools/artifact_harvester.dm b/code/modules/xenoarcheaology/tools/artifact_harvester.dm index d1d55489a88..4ab063abefa 100644 --- a/code/modules/xenoarcheaology/tools/artifact_harvester.dm +++ b/code/modules/xenoarcheaology/tools/artifact_harvester.dm @@ -71,7 +71,7 @@ user << browse(dat, "window=artharvester;size=450x500") onclose(user, "artharvester") -/obj/machinery/artifact_harvester/process() +/obj/machinery/artifact_harvester/process(delta_time) if(stat & (NOPOWER|BROKEN)) return diff --git a/code/modules/xenoarcheaology/tools/geosample_scanner.dm b/code/modules/xenoarcheaology/tools/geosample_scanner.dm index 2026c755854..52471e27727 100644 --- a/code/modules/xenoarcheaology/tools/geosample_scanner.dm +++ b/code/modules/xenoarcheaology/tools/geosample_scanner.dm @@ -162,7 +162,7 @@ // auto update every Master Controller tick ui.set_auto_update(1) -/obj/machinery/radiocarbon_spectrometer/process() +/obj/machinery/radiocarbon_spectrometer/process(delta_time) if(scanning) if(!scanned_item || scanned_item.loc != src) scanned_item = null @@ -360,4 +360,4 @@ scanned_item = null add_fingerprint(usr) - return 1 // update UIs attached to this object \ No newline at end of file + return 1 // update UIs attached to this object diff --git a/code/modules/xenoarcheaology/tools/suspension_generator.dm b/code/modules/xenoarcheaology/tools/suspension_generator.dm index 0f231edd4b9..440304076d1 100644 --- a/code/modules/xenoarcheaology/tools/suspension_generator.dm +++ b/code/modules/xenoarcheaology/tools/suspension_generator.dm @@ -16,7 +16,7 @@ qdel(cell) cell = new /obj/item/cell/high(src) -/obj/machinery/suspension_gen/process() +/obj/machinery/suspension_gen/process(delta_time) if(suspension_field) cell.charge -= power_use diff --git a/code/modules/xenoarcheaology/tools/tools.dm b/code/modules/xenoarcheaology/tools/tools.dm index 82c87014e86..e5a56c27805 100644 --- a/code/modules/xenoarcheaology/tools/tools.dm +++ b/code/modules/xenoarcheaology/tools/tools.dm @@ -235,7 +235,7 @@ STOP_PROCESSING(SSobj, src) return ..() -/obj/item/beacon_locator/process() +/obj/item/beacon_locator/process(delta_time) if(target_radio) setDir(get_dir(src,target_radio)) switch(get_dist(src,target_radio)) diff --git a/code/modules/xenobio2/machinery/gene_manipulators.dm b/code/modules/xenobio2/machinery/gene_manipulators.dm index b51a9e11125..18f03b682f0 100644 --- a/code/modules/xenobio2/machinery/gene_manipulators.dm +++ b/code/modules/xenobio2/machinery/gene_manipulators.dm @@ -89,7 +89,7 @@ return ..() -/obj/machinery/xenobio/process() +/obj/machinery/xenobio/process(delta_time) ..() if(!active) return diff --git a/maps/RandomZLevels/stationCollision.dm b/maps/RandomZLevels/stationCollision.dm index f6117e4c06c..322060b4e2e 100644 --- a/maps/RandomZLevels/stationCollision.dm +++ b/maps/RandomZLevels/stationCollision.dm @@ -175,7 +175,7 @@ var/sc_safecode5 = "[rand(0,9)]" /obj/machinery/singularity/narsie/sc_Narsie/admin_investigate_setup() return -/obj/machinery/singularity/narsie/sc_Narsie/process() +/obj/machinery/singularity/narsie/sc_Narsie/process(delta_time) eat() if(prob(25)) mezzer() diff --git a/maps/endeavor/endeavor_things.dm b/maps/endeavor/endeavor_things.dm index 7ec1e7d2bca..8d5b13d6f06 100644 --- a/maps/endeavor/endeavor_things.dm +++ b/maps/endeavor/endeavor_things.dm @@ -90,7 +90,7 @@ time_till_despawn = 10 SECONDS spawnpoint_type = /datum/spawnpoint/ferry -/obj/machinery/cryopod/robot/door/ferry/process() +/obj/machinery/cryopod/robot/door/ferry/process(delta_time) if(SSemergencyshuttle.online() || SSemergencyshuttle.returned()) // Transform into a door! But first despawn anyone inside time_till_despawn = 0 diff --git a/maps/endeavor/submaps/_endeavor_submaps.dm b/maps/endeavor/submaps/_endeavor_submaps.dm index 8843b4c39b2..278a2fe25ba 100644 --- a/maps/endeavor/submaps/_endeavor_submaps.dm +++ b/maps/endeavor/submaps/_endeavor_submaps.dm @@ -216,7 +216,7 @@ return INITIALIZE_HINT_QDEL START_PROCESSING(SSobj, src) -/obj/endeavor_away_spawner/process() +/obj/endeavor_away_spawner/process(delta_time) if(my_mob && my_mob.stat != DEAD) return //No need diff --git a/maps/nsv_triumph/submaps/_triumph_submaps.dm b/maps/nsv_triumph/submaps/_triumph_submaps.dm index 0a5f1cecfae..0cb0290751d 100644 --- a/maps/nsv_triumph/submaps/_triumph_submaps.dm +++ b/maps/nsv_triumph/submaps/_triumph_submaps.dm @@ -347,7 +347,7 @@ return INITIALIZE_HINT_QDEL START_PROCESSING(SSobj, src) -/obj/triumph_away_spawner/process() +/obj/triumph_away_spawner/process(delta_time) if(my_mob && my_mob.stat != DEAD) return //No need @@ -452,4 +452,4 @@ /datum/map_z_level/triumph_lateload/roguemines4 name = "Belt 4" flags = MAP_LEVEL_CONTACT|MAP_LEVEL_PLAYER - z = Z_LEVEL_ROGUEMINE_4 \ No newline at end of file + z = Z_LEVEL_ROGUEMINE_4 diff --git a/maps/nsv_triumph/triumph_phoronlock.dm b/maps/nsv_triumph/triumph_phoronlock.dm index f974d86b0bf..1c1efc08da6 100644 --- a/maps/nsv_triumph/triumph_phoronlock.dm +++ b/maps/nsv_triumph/triumph_phoronlock.dm @@ -19,7 +19,7 @@ obj/machinery/airlock_sensor/phoron name = "phoronlock sensor" var/previousPhoron -obj/machinery/airlock_sensor/phoron/process() +obj/machinery/airlock_sensor/phoron/process(delta_time) if(on) var/datum/gas_mixture/air_sample = return_air() var/pressure = round(air_sample.return_pressure(), 0.1) @@ -97,7 +97,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior var/target_temp = T20C var/heating_power = 150000 -/obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/phoronlock/process() +/obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/phoronlock/process(delta_time) ..() if(on) @@ -225,7 +225,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior // Note: This code doesn't wait for pumps and scrubbers to be offline like other code does // The idea is to make the doors open and close faster, since there isn't much harm really. // But lets evaluate how it actually works in the game. -/datum/computer/file/embedded_program/airlock/phoron/process() +/datum/computer/file/embedded_program/airlock/phoron/process(delta_time) switch(state) if(STATE_IDLE) if(target_state == TARGET_INOPEN) diff --git a/maps/nsv_triumph/triumph_things.dm b/maps/nsv_triumph/triumph_things.dm index 103357bd8ee..2e4a1578ca0 100644 --- a/maps/nsv_triumph/triumph_things.dm +++ b/maps/nsv_triumph/triumph_things.dm @@ -122,7 +122,7 @@ time_till_despawn = 10 SECONDS spawnpoint_type = /datum/spawnpoint/shuttle -/obj/machinery/cryopod/robot/door/shuttle/process() +/obj/machinery/cryopod/robot/door/shuttle/process(delta_time) if(SSemergencyshuttle.online() || SSemergencyshuttle.returned()) // Transform into a door! But first despawn anyone inside time_till_despawn = 0 diff --git a/maps/tether/submaps/_tether_submaps.dm b/maps/tether/submaps/_tether_submaps.dm index bc56789713a..55c3aacee87 100644 --- a/maps/tether/submaps/_tether_submaps.dm +++ b/maps/tether/submaps/_tether_submaps.dm @@ -353,7 +353,7 @@ return INITIALIZE_HINT_QDEL START_PROCESSING(SSobj, src) -/obj/tether_away_spawner/process() +/obj/tether_away_spawner/process(delta_time) if(my_mob && my_mob.stat != DEAD) return //No need diff --git a/maps/tether/tether_phoronlock.dm b/maps/tether/tether_phoronlock.dm index 4fea283c632..e8a1c180292 100644 --- a/maps/tether/tether_phoronlock.dm +++ b/maps/tether/tether_phoronlock.dm @@ -19,7 +19,7 @@ obj/machinery/airlock_sensor/phoron name = "phoronlock sensor" var/previousPhoron -obj/machinery/airlock_sensor/phoron/process() +obj/machinery/airlock_sensor/phoron/process(delta_time) if(on) var/datum/gas_mixture/air_sample = return_air() var/pressure = round(air_sample.return_pressure(), 0.1) @@ -97,7 +97,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior var/target_temp = T20C var/heating_power = 150000 -/obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/phoronlock/process() +/obj/machinery/portable_atmospherics/powered/scrubber/huge/stationary/phoronlock/process(delta_time) ..() if(on) @@ -225,7 +225,7 @@ obj/machinery/airlock_sensor/phoron/airlock_exterior // Note: This code doesn't wait for pumps and scrubbers to be offline like other code does // The idea is to make the doors open and close faster, since there isn't much harm really. // But lets evaluate how it actually works in the game. -/datum/computer/file/embedded_program/airlock/phoron/process() +/datum/computer/file/embedded_program/airlock/phoron/process(delta_time) switch(state) if(STATE_IDLE) if(target_state == TARGET_INOPEN) diff --git a/maps/tether/tether_things.dm b/maps/tether/tether_things.dm index fc51b47c391..d601933d6a6 100644 --- a/maps/tether/tether_things.dm +++ b/maps/tether/tether_things.dm @@ -229,7 +229,7 @@ time_till_despawn = 10 SECONDS spawnpoint_type = /datum/spawnpoint/tram -/obj/machinery/cryopod/robot/door/tram/process() +/obj/machinery/cryopod/robot/door/tram/process(delta_time) if(SSemergencyshuttle.online() || SSemergencyshuttle.returned()) // Transform into a door! But first despawn anyone inside time_till_despawn = 0 diff --git a/modular_citadel/code/modules/vore/fluffstuff/custom_items_cit.dm b/modular_citadel/code/modules/vore/fluffstuff/custom_items_cit.dm index e21c94c6d39..929af6fb7f4 100755 --- a/modular_citadel/code/modules/vore/fluffstuff/custom_items_cit.dm +++ b/modular_citadel/code/modules/vore/fluffstuff/custom_items_cit.dm @@ -22,7 +22,7 @@ STOP_PROCESSING(SSobj, src) return ..() //Okfine -/obj/item/clothing/accessory/collar/lifecrystal/process() +/obj/item/clothing/accessory/collar/lifecrystal/process(delta_time) check_owner() if((state > 1) || !owner) STOP_PROCESSING(SSobj, src)