[MIRROR] Show a message when you are unable to succumb (#939)

* Show a message when you are unable to succumb (#53753)

Show a message when you are unable to succumb.
This way you know why the command failed.

* Show a message when you are unable to succumb

Co-authored-by: NightRed <nightred@gmail.com>
This commit is contained in:
SkyratBot
2020-09-23 14:55:41 +02:00
committed by GitHub
co-authored by NightRed
parent 45056310a4
commit b927ee3fe8
+1
View File
@@ -391,6 +391,7 @@
/mob/living/verb/succumb(whispered as null)
set hidden = TRUE
if (!CAN_SUCCUMB(src))
to_chat(src, text="You are unable to succumb to death! This life continues.", type=MESSAGE_TYPE_INFO)
return
log_message("Has [whispered ? "whispered his final words" : "succumbed to death"] with [round(health, 0.1)] points of health!", LOG_ATTACK)
adjustOxyLoss(health - HEALTH_THRESHOLD_DEAD)