made suicide a config flag

This commit is contained in:
Putnam
2020-01-19 03:44:45 -08:00
parent c1e9618757
commit 1bdb515592
3 changed files with 7 additions and 0 deletions

View File

@@ -408,3 +408,5 @@
/datum/config_entry/number/dropped_modes
config_entry_value = 3
/datum/config_entry/flag/suicide_allowed

View File

@@ -207,6 +207,8 @@
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))
return FALSE
switch(stat)
if(CONSCIOUS)
return TRUE

View File

@@ -597,3 +597,6 @@ MODETIER_VOTING
## Number of modes dropped by the modetier vote during mode selection, after vote.
DROPPED_MODES 3
## Whether the suicide verb is allowed.
# SUICIDE_ALLOWED