Merge pull request #10614 from Putnam3145/suicide_option

Made suicide a config flag
This commit is contained in:
Ghom
2020-01-20 03:24:00 +01:00
committed by GitHub
4 changed files with 9 additions and 1 deletions
+3
View File
@@ -207,6 +207,9 @@
message_admins("[key_name(src)] (job: [src.job ? "[src.job]" : "None"]) [is_special_character(src) ? "(ANTAG!) " : ""][ghosting ? "ghosted" : "committed suicide"] at [AREACOORD(src)].")
/mob/living/proc/canSuicide()
if(!CONFIG_GET(flag/suicide_allowed))
to_chat(src, "Suicide is not enabled in the config.")
return FALSE
switch(stat)
if(CONSCIOUS)
return TRUE