mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-03 05:52:17 +00:00
Fixes workaround if someone has a savefile and is taken off the alien whitelist.
This commit is contained in:
@@ -393,7 +393,7 @@
|
||||
proc/create_character()
|
||||
spawning = 1
|
||||
var/mob/living/carbon/human/new_character // var/path/to/object/varname
|
||||
if(preferences.species == "Tajaran")
|
||||
if((preferences.species == "Tajaran") && (is_alien_whitelisted(src, "Tajaran")))
|
||||
new_character = new /mob/living/carbon/human/tajaran(loc) // varname = new /path/to/object(location_to_spawn_at)
|
||||
else
|
||||
new_character = new /mob/living/carbon/human(loc)
|
||||
@@ -407,7 +407,7 @@
|
||||
preferences.randomize_appearance_for(new_character)
|
||||
else
|
||||
preferences.copy_to(new_character)
|
||||
if(preferences.species == "Soghun") //This probably shouldn't be here, but I can't think of any other way
|
||||
if((preferences.species == "Soghun") && (is_alien_whitelisted(src, "Soghun"))) //This probably shouldn't be here, but I can't think of any other way
|
||||
new_character.mutantrace = "lizard"
|
||||
src << sound(null, repeat = 0, wait = 0, volume = 85, channel = 1)
|
||||
|
||||
|
||||
@@ -705,9 +705,9 @@ datum/preferences
|
||||
if("input")
|
||||
var/list/new_species = list("Human")
|
||||
if(config.usealienwhitelist) //If we're using the whitelist, make sure to check it!
|
||||
if((is_alien_whitelisted(user, "Soghun")) || ((user.client) && (user.client.holder) && (user.client.holder.level) && (user.client.holder.level >= 5))) //Check for Soghun and admins
|
||||
if(is_alien_whitelisted(user, "Soghun")) //Check for Soghun and admins
|
||||
new_species += "Soghun"
|
||||
if((is_alien_whitelisted(user, "Tajaran")) || ((user.client) && (user.client.holder) && (user.client.holder.level) && (user.client.holder.level >= 5))) //Check for Tajaran
|
||||
if(is_alien_whitelisted(user, "Tajaran")) //Check for Tajaran
|
||||
new_species += "Tajaran"
|
||||
else //Not using the whitelist? Aliens for everyone!
|
||||
new_species += "Tajaran"
|
||||
|
||||
Reference in New Issue
Block a user