diff --git a/code/controllers/configuration_vr.dm b/code/controllers/configuration_vr.dm index 673cff74fc..cde9c7c963 100644 --- a/code/controllers/configuration_vr.dm +++ b/code/controllers/configuration_vr.dm @@ -9,6 +9,7 @@ var/limit_interns = -1 //Unlimited by default var/limit_visitors = -1 //Unlimited by default var/pto_cap = 100 //Hours + var/require_flavor = FALSE /hook/startup/proc/read_vs_config() var/list/Lines = file2list("config/config.txt") @@ -55,5 +56,6 @@ config.time_off = TRUE if ("pto_job_change") config.pto_job_change = TRUE - + if ("require_flavor") + config.require_flavor = TRUE return 1 diff --git a/code/modules/client/preference_setup/general/06_flavor.dm b/code/modules/client/preference_setup/general/06_flavor.dm index 452752cee8..f03281d0d6 100644 --- a/code/modules/client/preference_setup/general/06_flavor.dm +++ b/code/modules/client/preference_setup/general/06_flavor.dm @@ -59,7 +59,7 @@ switch(href_list["flavor_text"]) if("open") if("general") - var/msg = sanitize(input(usr,"Give a general description of your character. This will be shown regardless of clothing, and may include OOC notes and preferences.","Flavor Text",html_decode(pref.flavor_texts[href_list["flavor_text"]])) as message, extra = 0) + var/msg = sanitize(input(usr,"Give a general description of your character. This will be shown regardless of clothings.","Flavor Text",html_decode(pref.flavor_texts[href_list["flavor_text"]])) as message, extra = 0) //VOREStation Edit: separating out OOC notes if(CanUseTopic(user)) pref.flavor_texts[href_list["flavor_text"]] = msg else diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 389b24f19f..90c8f40ec0 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -632,7 +632,7 @@ src << browse(null, "window=flavor_changes") return if("general") - var/msg = sanitize(input(usr,"Update the general description of your character. This will be shown regardless of clothing, and may include OOC notes and preferences.","Flavor Text",html_decode(flavor_texts[href_list["flavor_change"]])) as message, extra = 0) + var/msg = sanitize(input(usr,"Update the general description of your character. This will be shown regardless of clothing.","Flavor Text",html_decode(flavor_texts[href_list["flavor_change"]])) as message, extra = 0) //VOREStation Edit: separating out OOC notes flavor_texts[href_list["flavor_change"]] = msg return else diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 8882274f7c..52c3b9f0ec 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -317,7 +317,7 @@ set src in usr if(usr != src) usr << "No." - var/msg = sanitize(input(usr,"Set the flavor text in your 'examine' verb. Can also be used for OOC notes about your character.","Flavor Text",html_decode(flavor_text)) as message|null, extra = 0) + var/msg = sanitize(input(usr,"Set the flavor text in your 'examine' verb.","Flavor Text",html_decode(flavor_text)) as message|null, extra = 0) //VOREStation Edit: separating out OOC notes if(msg != null) flavor_text = msg diff --git a/code/modules/mob/new_player/new_player_vr.dm b/code/modules/mob/new_player/new_player_vr.dm index 10ad4dba14..0be1ba819b 100644 --- a/code/modules/mob/new_player/new_player_vr.dm +++ b/code/modules/mob/new_player/new_player_vr.dm @@ -1,6 +1,11 @@ /mob/new_player/proc/spawn_checks_vr() var/pass = TRUE + //No Flavor Text + if (config.require_flavor && client && client.prefs && client.prefs.flavor_texts && !client.prefs.flavor_texts["general"]) + to_chat(src,"Please set your general flavor text to give a basic description of your character. Set it using the 'Set Flavor text' button on the 'General' tab in character setup, and choosing 'General' category.") + pass = FALSE + //No OOC notes if (config.allow_Metadata && client && client.prefs && (isnull(client.prefs.metadata) || length(client.prefs.metadata) < 15)) to_chat(src,"Please set informative OOC notes related to ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup.") diff --git a/config/example/config.txt b/config/example/config.txt index 7e47fd7248..06e02d14fc 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -416,6 +416,9 @@ ENGINE_MAP Supermatter Engine,Edison's Bane # If 'time off' system is on, controls whether or not players can switch on/off duty midround using timeclocks # PTO_JOB_CHANGE +# Forbids players from joining if they have no set General flavor text +# REQUIRE_FLAVOR + # Applies a limit to the number of assistants and visitors respectively # LIMIT_INTERNS 6 # LIMIT_VISITORS 6