mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
removes all var/ in procs (#12738)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/obj/item/modular_computer/proc/power_failure(var/malfunction = 0)
|
||||
/obj/item/modular_computer/proc/power_failure(malfunction = 0)
|
||||
if(enabled) // Shut down the computer
|
||||
visible_message(span_danger("\The [src]'s screen flickers briefly and then goes dark."))
|
||||
if(active_program)
|
||||
@@ -8,7 +8,7 @@
|
||||
shutdown_computer(0)
|
||||
|
||||
// Tries to use power from battery. Passing 0 as parameter results in this proc returning whether battery is functional or not.
|
||||
/obj/item/modular_computer/proc/battery_power(var/power_usage = 0)
|
||||
/obj/item/modular_computer/proc/battery_power(power_usage = 0)
|
||||
apc_powered = FALSE
|
||||
if(!battery_module || !battery_module.check_functionality() || battery_module.battery.charge <= 0)
|
||||
return FALSE
|
||||
@@ -23,7 +23,7 @@
|
||||
..()
|
||||
|
||||
// Tries to use power from APC, if present.
|
||||
/obj/item/modular_computer/proc/apc_power(var/power_usage = 0)
|
||||
/obj/item/modular_computer/proc/apc_power(power_usage = 0)
|
||||
apc_powered = TRUE
|
||||
// Tesla link was originally limited to machinery only, but this probably works too, and the benefit of being able to power all devices from an APC outweights
|
||||
// the possible minor performance loss.
|
||||
|
||||
Reference in New Issue
Block a user