mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Fix remaining code that directly modified use_power to call update_use_power.
This commit is contained in:
@@ -185,7 +185,7 @@
|
||||
var/new_flow_rate = input(usr,"Enter new flow rate (0-[air1.volume]L/s)","Flow Rate Control",src.set_flow_rate) as num
|
||||
src.set_flow_rate = max(0, min(air1.volume, new_flow_rate))
|
||||
if(href_list["power"])
|
||||
use_power=!use_power
|
||||
update_use_power(!use_power)
|
||||
src.update_icon()
|
||||
src.updateUsrDialog()
|
||||
/*
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
|
||||
container.reagents.remove_reagent("biomass", possible_list[choice][2])
|
||||
|
||||
use_power = USE_POWER_ACTIVE
|
||||
update_use_power(USE_POWER_ACTIVE)
|
||||
printing = 1
|
||||
update_icon()
|
||||
|
||||
@@ -169,7 +169,7 @@
|
||||
|
||||
sleep(print_delay)
|
||||
|
||||
use_power = USE_POWER_IDLE
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
printing = 0
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@
|
||||
if(istype(L))
|
||||
L.tracking_cancelled()
|
||||
current_camera = null
|
||||
use_power = USE_POWER_IDLE
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
|
||||
//Camera control: mouse.
|
||||
/atom/DblClick()
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
return
|
||||
set_light(3, 3, "#00CCAA")
|
||||
icon_state = "beacon_active"
|
||||
use_power = USE_POWER_IDLE
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
if(user) to_chat(user, "<span class='notice'>You activate the beacon. The supply drop will be dispatched soon.</span>")
|
||||
|
||||
/obj/machinery/power/supply_beacon/proc/deactivate(var/mob/user, var/permanent)
|
||||
@@ -90,7 +90,7 @@
|
||||
else
|
||||
icon_state = "beacon"
|
||||
set_light(0)
|
||||
use_power = USE_POWER_OFF
|
||||
update_use_power(USE_POWER_OFF)
|
||||
target_drop_time = null
|
||||
if(user) to_chat(user, "<span class='notice'>You deactivate the beacon.</span>")
|
||||
|
||||
|
||||
@@ -48,13 +48,13 @@
|
||||
plant = prepare_icon(emagged ? "emagged" : null)
|
||||
overlays += plant
|
||||
set_light(2)
|
||||
use_power = USE_POWER_ACTIVE
|
||||
update_use_power(USE_POWER_ACTIVE)
|
||||
|
||||
/obj/machinery/holoplant/proc/deactivate()
|
||||
overlays -= plant
|
||||
QDEL_NULL(plant)
|
||||
set_light(0)
|
||||
use_power = USE_POWER_OFF
|
||||
update_use_power(USE_POWER_OFF)
|
||||
|
||||
/obj/machinery/holoplant/power_change()
|
||||
..()
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
|
||||
last_change = world.time
|
||||
active = 1
|
||||
use_power = USE_POWER_ACTIVE
|
||||
update_use_power(USE_POWER_ACTIVE)
|
||||
|
||||
for(var/item in holographic_objs)
|
||||
derez(item)
|
||||
@@ -362,7 +362,7 @@
|
||||
|
||||
last_gravity_change = world.time
|
||||
active = 1
|
||||
use_power = USE_POWER_IDLE
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
|
||||
if(A.has_gravity)
|
||||
A.gravitychange(0)
|
||||
@@ -377,4 +377,4 @@
|
||||
linkedholodeck.gravitychange(1)
|
||||
|
||||
active = 0
|
||||
use_power = USE_POWER_IDLE
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
|
||||
@@ -438,7 +438,7 @@ var/global/list/light_type_cache = list()
|
||||
update_use_power(USE_POWER_ACTIVE)
|
||||
set_light(brightness_range, brightness_power, brightness_color)
|
||||
else if(has_emergency_power(LIGHT_EMERGENCY_POWER_USE) && !turned_off())
|
||||
use_power = 1
|
||||
update_use_power(USE_POWER_IDLE)
|
||||
emergency_mode = TRUE
|
||||
START_PROCESSING(SSobj, src)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user