mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-08-22 04:28:09 +01:00
Attempt to prevent players joining with neither OOC notes nor flavour
-> Added a check on the "Default" robot flavour text for players joining as robot. Default is overwritten by module specific text, but anyone setting those specific ones up most likely has a default one anyway. -> Added a check for OOC notes texts for ghosts trying to activate a ghost pod or getting ghost even popups. -> Mouses and drones have not been included for either as some players prefer to play them sneakily. Can be discussed.
This commit is contained in:
@@ -7,10 +7,15 @@
|
||||
return TRUE
|
||||
|
||||
//No Flavor Text
|
||||
if (config.require_flavor && !client?.prefs?.flavor_texts["general"] && !(J.mob_type & JOB_SILICON))
|
||||
if (config.require_flavor && !(J.mob_type & JOB_SILICON) && (!client?.prefs?.flavor_texts["general"] || length(client.prefs.flavor_texts["general"]) < 30))
|
||||
to_chat(src,"<span class='warning'>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.</span>")
|
||||
pass = FALSE
|
||||
|
||||
//No Robot Flavor Text
|
||||
if (config.require_flavor && (J.mob_type & JOB_SILICON) && (!client?.prefs?.flavour_texts_robot["Default"] || length(client.prefs.flavour_texts_robot["Default"]) < 30))
|
||||
to_chat(src,"<span class='warning'>Please set your default robot flavor text to give a basic description of your character. Set it using the 'Set Robot Flavor text' button on the 'General' tab in character setup, and choosing 'Default' category.</span>")
|
||||
pass = FALSE
|
||||
|
||||
//No OOC notes
|
||||
if (config.allow_Metadata && (!client?.prefs?.metadata || length(client.prefs.metadata) < 15))
|
||||
to_chat(src,"<span class='warning'>Please set informative OOC notes related to RP/ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup.</span>")
|
||||
@@ -72,4 +77,4 @@
|
||||
//Final popup notice
|
||||
if (!pass)
|
||||
tgui_alert_async(src,"There were problems with spawning your character. Check your message log for details.","Error")
|
||||
return pass
|
||||
return pass
|
||||
|
||||
Reference in New Issue
Block a user