Updates mouse suicide code

Fixing stat  == DEAD and suiciding = TRUE, tested to work, thanks Couls!!
This commit is contained in:
Lumi
2019-07-15 09:53:12 +10:00
parent 6dba992ca2
commit 173fbd2470
+2 -2
View File
@@ -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("<span class='danger'>[src] is playing dead permanently! It looks like [p_theyre()] trying to commit suicide.</span>")
adjustOxyLoss(max(100 - getBruteLoss(100), 0))