mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Allow mouse suicide
Lets player controlled mice suicide.
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user