mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Machinery: Always use update_use_power()
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
icon_state = "control"
|
||||
anchored = 1
|
||||
density = 1
|
||||
use_power = 1
|
||||
use_power = USE_POWER_IDLE
|
||||
idle_power_usage = 100
|
||||
active_power_usage = 1000
|
||||
|
||||
@@ -211,10 +211,10 @@
|
||||
/obj/machinery/power/am_control_unit/proc/toggle_power()
|
||||
active = !active
|
||||
if(active)
|
||||
use_power = 2
|
||||
update_use_power(USE_POWER_ACTIVE)
|
||||
visible_message("The [src.name] starts up.")
|
||||
else
|
||||
use_power = 1
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
visible_message("The [src.name] shuts down.")
|
||||
update_icon()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user