[MIRROR] Makes it clear that the health sensor cannot be activated while unsecured [MDB IGNORE] (#10203)

* Makes it clear that the health sensor cannot be activated while unsecured (#63529)

* Makes it clear that the health sensor cannot be activated while unsecured

Co-authored-by: Seth Scherer <supernovaa41@gmx.com>
This commit is contained in:
SkyratBot
2021-12-22 23:41:30 +01:00
committed by GitHub
parent aea40b189b
commit b3d5a6840e
+4 -1
View File
@@ -71,5 +71,8 @@
/obj/item/assembly/health/attack_self(mob/user)
. = ..()
to_chat(user, span_notice("You toggle [src] [src.scanning ? "off" : "on"]."))
if (secured)
balloon_alert(user, "scanning [scanning ? "disabled" : "enabled"]")
else
balloon_alert(user, span_warning("secure it first!"))
toggle_scan()