Pass at removing empty process() on game/machinery

This commit is contained in:
Daniel García Baldomir
2015-03-14 21:38:23 +01:00
parent a50bebcbae
commit 2e571e5448
16 changed files with 9 additions and 45 deletions

View File

@@ -17,9 +17,6 @@
/*/obj/machinery/bodyscanner/allow_drop()
return 0*/
/obj/machinery/bodyscanner/process()
return
/obj/machinery/bodyscanner/relaymove(mob/user as mob)
if (user.stat)
return

View File

@@ -15,8 +15,6 @@
var/cooldown_on = 0
req_access = list(access_ai_upload)
/obj/machinery/ai_slipper/process()
return
/obj/machinery/ai_slipper/New()
..()

View File

@@ -23,8 +23,6 @@
var/datum/wires/autolathe/wires = null
/obj/machinery/autolathe/process()
return
/obj/machinery/autolathe/New()

View File

@@ -14,8 +14,6 @@
var/build_eff = 1
var/eat_eff = 1
/obj/machinery/biogenerator/process()
return
/obj/machinery/biogenerator/New()
..()

View File

@@ -23,9 +23,6 @@
"liver" = list(/obj/item/organ/liver, 50)
)
/obj/machinery/bioprinter/process()
return
/obj/machinery/bioprinter/prosthetics
name = "prosthetics fabricator"
desc = "It's a machine that prints prosthetic organs."

View File

@@ -10,8 +10,6 @@
idle_power_usage = 2
active_power_usage = 4
/obj/machinery/button/process()
return
/obj/machinery/button/attack_ai(mob/user as mob)
return src.attack_hand(user)

View File

@@ -34,8 +34,6 @@
idle_power_usage = 2
active_power_usage = 4
/obj/machinery/door_control/process()
return
/obj/machinery/door_control/attack_ai(mob/user as mob)
if(wires & 2)

View File

@@ -13,9 +13,6 @@ var/list/doppler_arrays = list()
doppler_arrays -= src
..()
/obj/machinery/doppler_array/process()
return PROCESS_KILL
/obj/machinery/doppler_array/proc/sense_explosion(var/x0,var/y0,var/z0,var/devastation_range,var/heavy_impact_range,var/light_impact_range,var/took)
if(stat & NOPOWER) return
if(z != z0) return

View File

@@ -12,6 +12,8 @@
var/strength = 10 //How weakened targets are when flashed.
var/base_state = "mflash"
anchored = 1
use_power = 1
idle_power_usage = 2
/obj/machinery/flasher/portable //Portable version of the flasher. Only flashes when anchored
name = "portable flasher"
@@ -22,9 +24,6 @@
base_state = "pflash"
density = 1
/obj/machinery/flasher/process()
return
/*
/obj/machinery/flasher/New()
sleep(4) //<--- What the fuck are you doing? D=

View File

@@ -173,9 +173,6 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
idle_power_usage = 5
active_power_usage = 100
/obj/machinery/hologram/process()
return
//Destruction procs.
/obj/machinery/hologram/ex_act(severity)
switch(severity)

View File

@@ -5,7 +5,9 @@
icon = 'icons/obj/holosign.dmi'
icon_state = "sign_off"
layer = 4
use_power = 1
idle_power_usage = 2
active_power_usage = 4
var/lit = 0
var/id = null
var/on_icon = "sign_on"
@@ -14,12 +16,9 @@
if (stat & (BROKEN|NOPOWER))
return
lit = !lit
use_power = lit ? 1 : 0
use_power = lit ? 2 : 1
update_icon()
/obj/machinery/holosign/process()
return
/obj/machinery/holosign/update_icon()
if (!lit)
icon_state = "sign_off"

View File

@@ -53,9 +53,10 @@
var/last_spark = 0
var/base_state = "migniter"
anchored = 1
use_power = 1
idle_power_usage = 2
active_power_usage = 4
/obj/machinery/sparker/process()
return
/obj/machinery/sparker/New()
..()

View File

@@ -35,8 +35,6 @@ datum/track/New(var/title_name, var/audio)
new/datum/track("Trai`Tor", 'sound/music/traitor.ogg'),
)
/obj/machinery/media/jukebox/process()
return
/obj/machinery/media/jukebox/Del()
StopPlaying()

View File

@@ -39,7 +39,4 @@
if(stat & (BROKEN|NOPOWER))
return
drive()
..(severity)
/obj/machinery/mass_driver/process()
return
..(severity)

View File

@@ -11,9 +11,6 @@
idle_power_usage = 40
active_power_usage = 10000
/obj/machinery/robotic_fabricator/process()
return
/obj/machinery/robotic_fabricator/attackby(var/obj/item/O as obj, var/mob/user as mob)
if (istype(O, /obj/item/stack/sheet/metal))
var/obj/item/stack/sheet/metal/M = O

View File

@@ -175,8 +175,6 @@
active_power_usage = 2000
var/obj/machinery/computer/teleporter/com
/obj/machinery/teleport/hub/process()
return
/obj/machinery/teleport/hub/New()
..()
@@ -314,9 +312,6 @@
active_power_usage = 2000
var/obj/machinery/teleport/hub/com
/obj/machinery/teleport/station/process()
return
/obj/machinery/teleport/station/New()
..()
overlays.Cut()