mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-30 20:07:00 +01:00
jfc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
#undef RAD_AMOUNT_EXTREME
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
viewers(user) << "<span class='danger'>[user] is impaling [T.himself] with the [src.name]! It looks like [T.he] [T.is] trying to commit suicide.</span>"
|
||||
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))
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
#undef METEOR_DELAY
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
wearer.nutrition = max(wearer.nutrition - 20, 0)
|
||||
|
||||
@@ -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."
|
||||
user << "Your aura will now heal [heal_allies_only ? "your allies" : "everyone"] near you."
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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++
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
adjust_instability(3)
|
||||
|
||||
@@ -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, "<span class='danger'>You feel almost like you're melting from the inside!</span>")
|
||||
|
||||
|
||||
adjust_instability(2)
|
||||
adjust_instability(2)
|
||||
|
||||
@@ -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
|
||||
#undef SIPHON_CORE_TO_ENERGY
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
updateicon()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -249,7 +249,7 @@
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/sleeper/process()
|
||||
/obj/machinery/sleeper/process(delta_time)
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
if(occupant)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
qdel(src)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
onclose(user, "computer")
|
||||
return
|
||||
|
||||
/obj/machinery/computer/aifixer/process()
|
||||
/obj/machinery/computer/aifixer/process(delta_time)
|
||||
if(..())
|
||||
src.updateDialog()
|
||||
return
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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("<span class='warning'>\The [src] flashes a few times before turning red.</span>")
|
||||
icon_state = "guest_invalid"
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
return
|
||||
|
||||
|
||||
/obj/machinery/computer/pod/process()
|
||||
/obj/machinery/computer/pod/process(delta_time)
|
||||
if(!..())
|
||||
return
|
||||
if(timing)
|
||||
|
||||
@@ -285,7 +285,7 @@
|
||||
else
|
||||
stat &= ~NOPOWER
|
||||
|
||||
/obj/machinery/computer3/process()
|
||||
/obj/machinery/computer3/process(delta_time)
|
||||
auto_use_power()
|
||||
power_change()
|
||||
update_icon()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
popup.open()
|
||||
return
|
||||
|
||||
/datum/file/program/prisoner/process()
|
||||
/datum/file/program/prisoner/process(delta_time)
|
||||
if(!..())
|
||||
interact()
|
||||
return
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
..()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/machinery/iv_drip/process()
|
||||
/obj/machinery/iv_drip/process(delta_time)
|
||||
set background = 1
|
||||
|
||||
if(attached)
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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--
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
to_chat(user, "<span class='warning'>It is missing a tank!</span>")
|
||||
|
||||
|
||||
/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)
|
||||
|
||||
@@ -141,7 +141,7 @@
|
||||
to_chat(user, "<span class='warning'>\The [src] cannot hold more [S.name].</span>")
|
||||
return 1
|
||||
|
||||
/obj/machinery/partslathe/process()
|
||||
/obj/machinery/partslathe/process(delta_time)
|
||||
..()
|
||||
if(stat)
|
||||
update_icon()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -908,7 +908,7 @@
|
||||
updateUsrDialog()
|
||||
return
|
||||
|
||||
/obj/machinery/suit_cycler/process()
|
||||
/obj/machinery/suit_cycler/process(delta_time)
|
||||
|
||||
if(electrified > 0)
|
||||
electrified--
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user