mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Binary atmos devices alt-click toggle fix, space heater feedback text fix (#22328)
Fixes https://github.com/Aurorastation/Aurora.3/issues/22246 changes: - bugfix: "Binary atmos devices are again able to be toggled on/off by alt-clicking them." - bugfix: "Temp control units now display correct 'turned on/off' balloon text when toggled."
This commit is contained in:
@@ -136,8 +136,17 @@
|
||||
/obj/machinery/atmospherics/binary/AltClick(var/mob/user)
|
||||
if(src.anchored)
|
||||
if(!allowed(user))
|
||||
to_chat(user, SPAN_WARNING("Access denied."))
|
||||
return
|
||||
Topic(src, list("power" = "1"))
|
||||
balloon_alert(user, "Access denied.")
|
||||
return FALSE
|
||||
else if(stat && NOPOWER)
|
||||
balloon_alert(user, "No power!")
|
||||
return FALSE
|
||||
else if(stat && BROKEN)
|
||||
balloon_alert(user, "Broken!")
|
||||
return FALSE
|
||||
else
|
||||
update_use_power(!use_power)
|
||||
update_icon()
|
||||
return TRUE
|
||||
else
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user