Allow mouse suicide

Lets player controlled mice suicide.
This commit is contained in:
Lumi
2019-07-06 10:47:38 +10:00
parent d62ebf83e0
commit c8a1bd2755
+16
View File
@@ -229,3 +229,19 @@
setCloneLoss(100, FALSE)
updatehealth()
/mob/living/simple_animal/mouse/verb/suicide()
set hidden = 1
if(stat == 2)
to_chat(src, "You're already dead!")
return
if(suiciding)
to_chat(src, "You're already committing suicide! Be patient!")
return
var/confirm = alert("Are you sure you want to commit suicide?", "Confirm Suicide", "Yes", "No")
if(confirm == "Yes")
suiciding = 1
to_chat(viewers(src), "<span class='danger'>[src] is playing dead permanently! It looks like [p_theyre()] trying to commit suicide.</span>")
adjustOxyLoss(max(100 - getBruteLoss(100), 0))