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:
Batrachophreno
2026-04-24 21:42:08 +00:00
committed by GitHub
parent d912aa9fcc
commit 0a8e73af8d
3 changed files with 18 additions and 4 deletions
@@ -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
. = ..()