BRUTAL Part 1 - No proc var/ in procs

This commit is contained in:
AffectedArc07
2021-02-01 14:10:08 +00:00
parent 1d89138436
commit f5f97882cf
533 changed files with 1558 additions and 1554 deletions
+2 -2
View File
@@ -854,7 +854,7 @@
// to_chat(world, "[area.power_equip]")
area.power_change()
/obj/machinery/power/apc/proc/can_use(var/mob/user, var/loud = 0) //used by attack_hand() and Topic()
/obj/machinery/power/apc/proc/can_use(mob/user, loud = 0) //used by attack_hand() and Topic()
if(user.can_admin_interact())
return 1
@@ -1255,7 +1255,7 @@
picked_light.flicker()
/obj/machinery/power/apc/proc/autoset(var/val, var/on)
/obj/machinery/power/apc/proc/autoset(val, on)
if(on==0)
if(val==2) // if on, return off
return 0
+1 -1
View File
@@ -24,5 +24,5 @@
else
..()
/obj/structure/cable/heavyduty/cable_color(var/colorC)
/obj/structure/cable/heavyduty/cable_color(colorC)
return
+1 -1
View File
@@ -532,7 +532,7 @@
* Flicker routine for the light.
* Called by invoke_async so the parent proc can return immediately.
*/
/obj/machinery/light/proc/flicker_event(var/amount)
/obj/machinery/light/proc/flicker_event(amount)
if(on && status == LIGHT_OK)
for(var/i = 0; i < amount; i++)
if(status != LIGHT_OK)
+4 -4
View File
@@ -264,7 +264,7 @@
sheet_left = 0
..()
/obj/machinery/power/port_gen/pacman/emag_act(var/remaining_charges, var/mob/user)
/obj/machinery/power/port_gen/pacman/emag_act(remaining_charges, mob/user)
if(active && prob(25))
explode() //if they're foolish enough to emag while it's running
@@ -272,7 +272,7 @@
emagged = 1
return 1
/obj/machinery/power/port_gen/pacman/attackby(var/obj/item/O as obj, var/mob/user as mob)
/obj/machinery/power/port_gen/pacman/attackby(obj/item/O as obj, mob/user as mob)
if(istype(O, sheet_path))
var/obj/item/stack/addstack = O
var/amount = min((max_sheets - sheets), addstack.amount)
@@ -316,11 +316,11 @@
..()
ui_interact(user)
/obj/machinery/power/port_gen/pacman/attack_ai(var/mob/user as mob)
/obj/machinery/power/port_gen/pacman/attack_ai(mob/user as mob)
add_hiddenprint(user)
return attack_hand(user)
/obj/machinery/power/port_gen/pacman/attack_ghost(var/mob/user)
/obj/machinery/power/port_gen/pacman/attack_ghost(mob/user)
return attack_hand(user)
/obj/machinery/power/port_gen/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = TRUE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.default_state)
+1 -1
View File
@@ -73,7 +73,7 @@
// returns true if the area has power on given channel (or doesn't require power).
// defaults to power_channel
/obj/machinery/proc/powered(var/chan = -1) // defaults to power_channel
/obj/machinery/proc/powered(chan = -1) // defaults to power_channel
if(!loc)
return FALSE
if(!use_power)
+2 -2
View File
@@ -116,7 +116,7 @@
return 1
/obj/machinery/power/emitter/emp_act(var/severity)//Emitters are hardened but still might have issues
/obj/machinery/power/emitter/emp_act(severity)//Emitters are hardened but still might have issues
// add_load(1000)
/* if((severity == 1)&&prob(1)&&prob(1))
if(src.active)
@@ -262,7 +262,7 @@
return ..()
/obj/machinery/power/emitter/emag_act(var/mob/living/user as mob)
/obj/machinery/power/emitter/emag_act(mob/living/user as mob)
if(!emagged)
locked = 0
emagged = 1
@@ -174,7 +174,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 0
/obj/structure/particle_accelerator/proc/report_ready(var/obj/O)
/obj/structure/particle_accelerator/proc/report_ready(obj/O)
if(O && (O == master))
if(construction_state >= 3)
return 1
@@ -187,7 +187,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 0
/obj/structure/particle_accelerator/proc/connect_master(var/obj/O)
/obj/structure/particle_accelerator/proc/connect_master(obj/O)
if(O && istype(O,/obj/machinery/particle_accelerator/control_box))
if(O.dir == dir)
master = O
@@ -123,7 +123,7 @@
part.strength = strength
part.update_icon()
/obj/machinery/particle_accelerator/control_box/proc/add_strength(var/s)
/obj/machinery/particle_accelerator/control_box/proc/add_strength(s)
if(assembled)
strength++
if(strength > strength_upper_limit)
@@ -137,7 +137,7 @@
investigate_log("increased to <font color='red'>[strength]</font> by [usr.key]","singulo")
strength_change()
/obj/machinery/particle_accelerator/control_box/proc/remove_strength(var/s)
/obj/machinery/particle_accelerator/control_box/proc/remove_strength(s)
if(assembled)
strength--
if(strength < 0)
@@ -218,7 +218,7 @@
return 0
/obj/machinery/particle_accelerator/control_box/proc/check_part(var/turf/T, var/type)
/obj/machinery/particle_accelerator/control_box/proc/check_part(turf/T, type)
if(!(T)||!(type))
return 0
var/obj/structure/particle_accelerator/PA = locate(/obj/structure/particle_accelerator) in T
@@ -22,7 +22,7 @@
..()
return
/obj/structure/particle_accelerator/particle_emitter/proc/set_delay(var/delay)
/obj/structure/particle_accelerator/particle_emitter/proc/set_delay(delay)
if(delay && delay >= 0)
fire_delay = delay
return 1
@@ -28,7 +28,7 @@
allow_spin = 0
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF
/obj/singularity/New(loc, var/starting_energy = 50, var/temp = 0)
/obj/singularity/New(loc, starting_energy = 50, temp = 0)
//CARN: admin-alert for chuckle-fuckery.
admin_investigate_setup()
+2 -2
View File
@@ -451,12 +451,12 @@
smoke.start()
/obj/machinery/power/smes/proc/inputting(var/do_input)
/obj/machinery/power/smes/proc/inputting(do_input)
input_attempt = do_input
if(!input_attempt)
inputting = 0
/obj/machinery/power/smes/proc/outputting(var/do_output)
/obj/machinery/power/smes/proc/outputting(do_output)
output_attempt = do_output
if(!output_attempt)
outputting = 0
+6 -6
View File
@@ -29,7 +29,7 @@
return ..()
//set the control of the panel to a given computer if closer than SOLAR_MAX_DIST
/obj/machinery/power/solar/proc/set_control(var/obj/machinery/power/solar_control/SC)
/obj/machinery/power/solar/proc/set_control(obj/machinery/power/solar_control/SC)
if(!SC || (get_dist(src, SC) > SOLAR_MAX_DIST))
return 0
control = SC
@@ -42,7 +42,7 @@
control.connected_panels.Remove(src)
control = null
/obj/machinery/power/solar/proc/Make(var/obj/item/solar_assembly/S)
/obj/machinery/power/solar/proc/Make(obj/item/solar_assembly/S)
if(!S)
S = new /obj/item/solar_assembly(src)
S.glass_type = /obj/item/stack/sheet/glass
@@ -142,7 +142,7 @@
unset_control()
update_icon()
/obj/machinery/power/solar/fake/New(var/turf/loc, var/obj/item/solar_assembly/S)
/obj/machinery/power/solar/fake/New(turf/loc, obj/item/solar_assembly/S)
..(loc, S, 0)
/obj/machinery/power/solar/fake/process()
@@ -190,7 +190,7 @@
var/tracker = 0
var/glass_type = null
/obj/item/solar_assembly/attack_hand(var/mob/user)
/obj/item/solar_assembly/attack_hand(mob/user)
if(!anchored && isturf(loc)) // You can't pick it up
..()
@@ -202,7 +202,7 @@
glass_type = null
/obj/item/solar_assembly/attackby(var/obj/item/W, var/mob/user, params)
/obj/item/solar_assembly/attackby(obj/item/W, mob/user, params)
if(!anchored && isturf(loc))
if(istype(W, /obj/item/wrench))
@@ -487,7 +487,7 @@
set_panels(cdir)
//rotates the panel to the passed angle
/obj/machinery/power/solar_control/proc/set_panels(var/cdir)
/obj/machinery/power/solar_control/proc/set_panels(cdir)
for(var/obj/machinery/power/solar/S in connected_panels)
S.adir = cdir //instantly rotates the panel
+2 -2
View File
@@ -77,7 +77,7 @@
else
connect_to_network()
/obj/machinery/power/tesla_coil/tesla_act(var/power)
/obj/machinery/power/tesla_coil/tesla_act(power)
if(anchored && !panel_open)
being_shocked = 1
//don't lose arc power when it's not connected to anything
@@ -133,7 +133,7 @@
. = TRUE
default_deconstruction_crowbar(user, I)
/obj/machinery/power/grounding_rod/tesla_act(var/power)
/obj/machinery/power/grounding_rod/tesla_act(power)
if(anchored && !panel_open)
flick("grounding_rodhit", src)
else
+1 -1
View File
@@ -63,7 +63,7 @@
. += "The amount of orbiting mini-balls is [len]."
/obj/singularity/energy_ball/proc/move_the_basket_ball(var/move_amount)
/obj/singularity/energy_ball/proc/move_the_basket_ball(move_amount)
//we face the last thing we zapped, so this lets us favor that direction a bit
var/first_move = dir
for(var/i in 0 to move_amount)
+1 -1
View File
@@ -199,7 +199,7 @@
//Checks to see if there's 1 line or 2, adds text-icons-numbers/letters over display
// Stolen from status_display
/obj/machinery/treadmill_monitor/proc/update_display(var/line1, var/line2)
/obj/machinery/treadmill_monitor/proc/update_display(line1, line2)
line1 = uppertext(line1)
line2 = uppertext(line2)
var/new_text = {"<div style="font-size:[FONT_SIZE];color:[FONT_COLOR];font:'[FONT_STYLE]';text-align:center;" valign="top">[line1]<br>[line2]</div>"}
+1 -1
View File
@@ -351,7 +351,7 @@
/obj/machinery/computer/turbine_computer/locate_machinery()
compressor = locate(/obj/machinery/power/compressor) in range(5, src)
/obj/machinery/computer/turbine_computer/attack_hand(var/mob/user as mob)
/obj/machinery/computer/turbine_computer/attack_hand(mob/user as mob)
if(..())
return