mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Cleanup up all instances of using var/ definitions in proc parameters. (#240)
* Cleanup up all instances of using var/ definitions in proc parameters. (#52728) * var/list cleanup * The rest of the owl * plushvar bad * Can't follow my own advice. * Cleanup up all instances of using var/ definitions in proc parameters. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -604,7 +604,7 @@
|
||||
return TRUE
|
||||
|
||||
|
||||
/obj/machinery/light/proc/flicker(var/amount = rand(10, 20))
|
||||
/obj/machinery/light/proc/flicker(amount = rand(10, 20))
|
||||
set waitfor = 0
|
||||
if(flickering)
|
||||
return
|
||||
|
||||
@@ -79,7 +79,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)
|
||||
@@ -214,7 +214,7 @@
|
||||
. += C
|
||||
return .
|
||||
|
||||
/proc/update_cable_icons_on_turf(var/turf/T)
|
||||
/proc/update_cable_icons_on_turf(turf/T)
|
||||
for(var/obj/structure/cable/C in T.contents)
|
||||
C.update_icon()
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
/proc/ending_helper()
|
||||
SSticker.force_ending = 1
|
||||
|
||||
/proc/cult_ending_helper(var/ending_type = 0)
|
||||
/proc/cult_ending_helper(ending_type = 0)
|
||||
if(ending_type == 2) //narsie fukkin died
|
||||
Cinematic(CINEMATIC_CULT_FAIL,world,CALLBACK(GLOBAL_PROC,/proc/ending_helper))
|
||||
else if(ending_type) //no explosion
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/machinery/power/grounding_rod/zap_act(var/power)
|
||||
/obj/machinery/power/grounding_rod/zap_act(power)
|
||||
if(anchored && !panel_open)
|
||||
flick("grounding_rodhit", src)
|
||||
zap_buckle_check(power)
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
. += "There are [orbiting_balls.len] mini-balls orbiting it."
|
||||
|
||||
|
||||
/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/move_bias = pick(GLOB.alldirs)
|
||||
for(var/i in 0 to move_amount)
|
||||
|
||||
Reference in New Issue
Block a user