mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 14:47:50 +01:00
This verb frees your job slot, removes you from the manifest, and removes your mind/body records so you can't be resleeved (if you do this sooner than 15 minutes, medical will not be nodified of your demise). This prevents you from respawning as that character (you can play any other character if you want). **People should start using this**, it's really helpful to people who want to play your job if you're not coming back. Just use it if you're done for the day, or want to switch characters, or whatever.
47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
/mob/new_player/proc/spawn_checks_vr()
|
|
var/pass = TRUE
|
|
|
|
//No OOC notes
|
|
if (config.allow_Metadata && client && client.prefs && (isnull(client.prefs.metadata) || length(client.prefs.metadata) < 15))
|
|
to_chat(src,"<span class='warning'>Please set informative OOC notes related to ERP preferences. Set them using the 'OOC Notes' button on the 'General' tab in character setup.</span>")
|
|
pass = FALSE
|
|
|
|
//Are they on the VERBOTEN LIST?
|
|
if (prevent_respawns.Find(client.prefs.real_name))
|
|
to_chat(src,"<span class='warning'>You've already quit the round as this character. You can't go back now that you've free'd your job slot. Play another character, or wait for the next round.</span>")
|
|
pass = FALSE
|
|
|
|
//Custom species checks
|
|
if (client && client.prefs && client.prefs.species == "Custom Species")
|
|
|
|
//Didn't name it
|
|
if(!client.prefs.custom_species)
|
|
pass = FALSE
|
|
to_chat(src,"<span class='warning'>You have to name your custom species. Do this on the VORE tab in character setup.</span>")
|
|
|
|
//Check traits/costs
|
|
var/list/megalist = client.prefs.pos_traits + client.prefs.neu_traits + client.prefs.neg_traits
|
|
var/points_left = client.prefs.starting_trait_points
|
|
var/traits_left = client.prefs.max_traits
|
|
for(var/T in megalist)
|
|
traits_left--
|
|
var/cost = traits_costs[T]
|
|
|
|
//A trait was removed from the game
|
|
if(isnull(cost))
|
|
pass = FALSE
|
|
to_chat(src,"<span class='warning'>Your custom species is not playable. One or more traits appear to have been removed from the game or renamed. Enter character setup to correct this.</span>")
|
|
break
|
|
else
|
|
points_left -= traits_costs[T]
|
|
|
|
//Went into negatives
|
|
if(points_left < 0 || traits_left < 0)
|
|
pass = FALSE
|
|
to_chat(src,"<span class='warning'>Your custom species is not playable. Reconfigure your traits on the VORE tab.</span>")
|
|
|
|
//Final popup notice
|
|
if (!pass)
|
|
alert(src,"There were problems with spawning your character. Check your message log for details.","Error","OK")
|
|
return pass
|