mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +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
|
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))
|
src.set_flow_rate = max(0, min(air1.volume, new_flow_rate))
|
||||||
if(href_list["power"])
|
if(href_list["power"])
|
||||||
use_power=!use_power
|
update_use_power(!use_power)
|
||||||
src.update_icon()
|
src.update_icon()
|
||||||
src.updateUsrDialog()
|
src.updateUsrDialog()
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -161,7 +161,7 @@
|
|||||||
|
|
||||||
container.reagents.remove_reagent("biomass", possible_list[choice][2])
|
container.reagents.remove_reagent("biomass", possible_list[choice][2])
|
||||||
|
|
||||||
use_power = USE_POWER_ACTIVE
|
update_use_power(USE_POWER_ACTIVE)
|
||||||
printing = 1
|
printing = 1
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@
|
|||||||
|
|
||||||
sleep(print_delay)
|
sleep(print_delay)
|
||||||
|
|
||||||
use_power = USE_POWER_IDLE
|
update_use_power(USE_POWER_IDLE)
|
||||||
printing = 0
|
printing = 0
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@
|
|||||||
if(istype(L))
|
if(istype(L))
|
||||||
L.tracking_cancelled()
|
L.tracking_cancelled()
|
||||||
current_camera = null
|
current_camera = null
|
||||||
use_power = USE_POWER_IDLE
|
update_use_power(USE_POWER_IDLE)
|
||||||
|
|
||||||
//Camera control: mouse.
|
//Camera control: mouse.
|
||||||
/atom/DblClick()
|
/atom/DblClick()
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
return
|
return
|
||||||
set_light(3, 3, "#00CCAA")
|
set_light(3, 3, "#00CCAA")
|
||||||
icon_state = "beacon_active"
|
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>")
|
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)
|
/obj/machinery/power/supply_beacon/proc/deactivate(var/mob/user, var/permanent)
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
else
|
else
|
||||||
icon_state = "beacon"
|
icon_state = "beacon"
|
||||||
set_light(0)
|
set_light(0)
|
||||||
use_power = USE_POWER_OFF
|
update_use_power(USE_POWER_OFF)
|
||||||
target_drop_time = null
|
target_drop_time = null
|
||||||
if(user) to_chat(user, "<span class='notice'>You deactivate the beacon.</span>")
|
if(user) to_chat(user, "<span class='notice'>You deactivate the beacon.</span>")
|
||||||
|
|
||||||
|
|||||||
@@ -48,13 +48,13 @@
|
|||||||
plant = prepare_icon(emagged ? "emagged" : null)
|
plant = prepare_icon(emagged ? "emagged" : null)
|
||||||
overlays += plant
|
overlays += plant
|
||||||
set_light(2)
|
set_light(2)
|
||||||
use_power = USE_POWER_ACTIVE
|
update_use_power(USE_POWER_ACTIVE)
|
||||||
|
|
||||||
/obj/machinery/holoplant/proc/deactivate()
|
/obj/machinery/holoplant/proc/deactivate()
|
||||||
overlays -= plant
|
overlays -= plant
|
||||||
QDEL_NULL(plant)
|
QDEL_NULL(plant)
|
||||||
set_light(0)
|
set_light(0)
|
||||||
use_power = USE_POWER_OFF
|
update_use_power(USE_POWER_OFF)
|
||||||
|
|
||||||
/obj/machinery/holoplant/power_change()
|
/obj/machinery/holoplant/power_change()
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -301,7 +301,7 @@
|
|||||||
|
|
||||||
last_change = world.time
|
last_change = world.time
|
||||||
active = 1
|
active = 1
|
||||||
use_power = USE_POWER_ACTIVE
|
update_use_power(USE_POWER_ACTIVE)
|
||||||
|
|
||||||
for(var/item in holographic_objs)
|
for(var/item in holographic_objs)
|
||||||
derez(item)
|
derez(item)
|
||||||
@@ -362,7 +362,7 @@
|
|||||||
|
|
||||||
last_gravity_change = world.time
|
last_gravity_change = world.time
|
||||||
active = 1
|
active = 1
|
||||||
use_power = USE_POWER_IDLE
|
update_use_power(USE_POWER_IDLE)
|
||||||
|
|
||||||
if(A.has_gravity)
|
if(A.has_gravity)
|
||||||
A.gravitychange(0)
|
A.gravitychange(0)
|
||||||
@@ -377,4 +377,4 @@
|
|||||||
linkedholodeck.gravitychange(1)
|
linkedholodeck.gravitychange(1)
|
||||||
|
|
||||||
active = 0
|
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)
|
update_use_power(USE_POWER_ACTIVE)
|
||||||
set_light(brightness_range, brightness_power, brightness_color)
|
set_light(brightness_range, brightness_power, brightness_color)
|
||||||
else if(has_emergency_power(LIGHT_EMERGENCY_POWER_USE) && !turned_off())
|
else if(has_emergency_power(LIGHT_EMERGENCY_POWER_USE) && !turned_off())
|
||||||
use_power = 1
|
update_use_power(USE_POWER_IDLE)
|
||||||
emergency_mode = TRUE
|
emergency_mode = TRUE
|
||||||
START_PROCESSING(SSobj, src)
|
START_PROCESSING(SSobj, src)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user