Health sensor's detect death mode triggers on -100 health, not -90 (#40103)

* Health sensor's detect death mode triggers on -100 health, not -90

* Health sensor's detect death mode triggers on -100 health, not -90
This commit is contained in:
jegub
2018-09-05 11:10:56 -04:00
committed by Jordan Brown
parent 568672aea7
commit 45837cc849
+4 -4
View File
@@ -8,7 +8,7 @@
var/scanning = FALSE
var/health_scan
var/alarm_health = 0
var/alarm_health = HEALTH_THRESHOLD_CRIT
/obj/item/assembly/health/examine(mob/user)
..()
@@ -31,11 +31,11 @@
return secured
/obj/item/assembly/health/multitool_act(mob/living/user, obj/item/I)
if(alarm_health == 0)
alarm_health = -90
if(alarm_health == HEALTH_THRESHOLD_CRIT)
alarm_health = HEALTH_THRESHOLD_DEAD
to_chat(user, "<span class='notice'>You toggle [src] to \"detect death\" mode.</span>")
else
alarm_health = 0
alarm_health = HEALTH_THRESHOLD_CRIT
to_chat(user, "<span class='notice'>You toggle [src] to \"detect critical state\" mode.</span>")
return TRUE