From c8a1bd27558a1a689f7b1433e6d5bc66cf61881f Mon Sep 17 00:00:00 2001 From: Lumi Date: Sat, 6 Jul 2019 10:47:38 +1000 Subject: [PATCH] Allow mouse suicide Lets player controlled mice suicide. --- code/game/verbs/suicide.dm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/code/game/verbs/suicide.dm b/code/game/verbs/suicide.dm index 8febe20e840..5b3d7e03283 100644 --- a/code/game/verbs/suicide.dm +++ b/code/game/verbs/suicide.dm @@ -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), "[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