From 173fbd247025985652e6078760d1691ffcee5f7a Mon Sep 17 00:00:00 2001 From: Lumi Date: Mon, 15 Jul 2019 09:53:12 +1000 Subject: [PATCH] Updates mouse suicide code Fixing stat == DEAD and suiciding = TRUE, tested to work, thanks Couls!! --- code/game/verbs/suicide.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/verbs/suicide.dm b/code/game/verbs/suicide.dm index befef870564..0b171dac199 100644 --- a/code/game/verbs/suicide.dm +++ b/code/game/verbs/suicide.dm @@ -232,7 +232,7 @@ /mob/living/simple_animal/mouse/verb/suicide() set hidden = 1 - if(stat == 2) + if(stat == DEAD) to_chat(src, "You're already dead!") return if(suiciding) @@ -242,6 +242,6 @@ var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No") if(confirm == "Yes") - suiciding = 1 + suiciding = TRUE visible_message("[src] is playing dead permanently! It looks like [p_theyre()] trying to commit suicide.") adjustOxyLoss(max(100 - getBruteLoss(100), 0)) \ No newline at end of file