mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Machinery: Always use update_use_power()
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
/obj/machinery/power/supply_beacon/attack_hand(var/mob/user)
|
||||
|
||||
if(expended)
|
||||
use_power = 0
|
||||
update_use_power(USE_POWER_OFF)
|
||||
to_chat (user, "<span class='warning'>\The [src] has used up its charge.</span>")
|
||||
return
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
return
|
||||
set_light(3, 3, "#00CCAA")
|
||||
icon_state = "beacon_active"
|
||||
use_power = 1
|
||||
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 = 0
|
||||
use_power = USE_POWER_OFF
|
||||
target_drop_time = null
|
||||
if(user) to_chat(user, "<span class='notice'>You deactivate the beacon.</span>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user