Ghostrole Whitelist Cleanup (#14064)

This commit is contained in:
Werner
2022-05-23 12:43:28 +02:00
committed by GitHub
parent 39a114c7ec
commit a61e7d63cb
9 changed files with 43 additions and 25 deletions
-9
View File
@@ -22,8 +22,6 @@
var/count = 0 //How ofen has this spawner been used
var/req_perms = null //What permission flags are required to use this spawner
var/req_perms_edit = R_ADMIN
var/req_head_whitelist = FALSE //If a head of staff whitelist is required
var/req_species_whitelist = null //Name/Datum of the species whitelist that is required, or null
var/enabled = TRUE //If the spawnpoint is enabled
var/enable_chance = null //If set to a value other than null, has the set chance to become enabled
var/enable_dmessage = TRUE //The message to send to deadchat if the ghostspawner is enabled or TRUE for a default message
@@ -63,17 +61,10 @@
if(loc_type == GS_LOC_ATOM && !length(spawn_atoms))
return "No spawn atoms available"
if(req_head_whitelist && !check_whitelist(user))
return "Missing Head of Staff Whitelist"
var/ban_reason = jobban_isbanned(user,jobban_job)
if(jobban_job && ban_reason)
return "[ban_reason]"
if(req_species_whitelist)
if(!is_alien_whitelisted(user, req_species_whitelist))
return "Missing Species Whitelist"
if(observers_only && !isobserver(user))
return "Observers Only"
@@ -28,8 +28,6 @@
name = "Kataphract-Hopeful Klaxan"
desc = "Display honour in everything you do. Be an excellent person. Learn how to be a proper Kataphract by your fellow Unathi."
max_count = 1
uses_species_whitelist = TRUE
req_species_whitelist = SPECIES_VAURCA_WARRIOR
spawnpoints = list("kataphract_klax")
@@ -42,8 +40,6 @@
name = "Kataphract Knight"
desc = "Display honour in everything you do. Be an excellent person. Be a co-leader of the Kataphract Chapter, along with the other knight."
max_count = 2
uses_species_whitelist = TRUE
req_species_whitelist = SPECIES_UNATHI
mob_name_prefix = "Saa "
@@ -18,7 +18,6 @@
special_role = "Kosmostrelki"
respawn_flag = null
extra_languages = list(LANGUAGE_SIIK_MAAS)
uses_species_whitelist = FALSE
away_site = TRUE
/datum/ghostspawner/human/pra_cosmonaut/commissar
@@ -33,7 +32,6 @@
outfit = /datum/outfit/admin/pra_cosmonaut/commissar
possible_species = list(SPECIES_TAJARA, SPECIES_TAJARA_MSAI)
req_species_whitelist = SPECIES_TAJARA
/datum/outfit/admin/pra_cosmonaut
name = "Kosmostrelki"
@@ -37,7 +37,5 @@
max_count = 1
outfit = /datum/outfit/admin/ert/fsf/synth
mob_name_prefix = null
uses_species_whitelist = TRUE
req_species_whitelist = SPECIES_IPC
possible_species = list(SPECIES_IPC)
@@ -22,10 +22,8 @@
mob_name_prefix = "Alm."
max_count = 1
uses_species_whitelist = TRUE
outfit = /datum/outfit/admin/ert/pra_cosmonaut/commissar
possible_species = list(SPECIES_TAJARA, SPECIES_TAJARA_MSAI)
req_species_whitelist = SPECIES_TAJARA
/datum/ghostspawner/human/ert/pra_cosmonaut/leader
@@ -70,4 +68,4 @@
max_count = 1
outfit = /datum/outfit/admin/ert/pra_cosmonaut/engineer
possible_species = list(SPECIES_TAJARA, SPECIES_TAJARA_MSAI, SPECIES_TAJARA_ZHAN)
possible_species = list(SPECIES_TAJARA, SPECIES_TAJARA_MSAI, SPECIES_TAJARA_ZHAN)
@@ -20,8 +20,6 @@
max_count = 1
outfit = /datum/outfit/admin/ert/kataphract/klax
mob_name_prefix = "Zosaa "
uses_species_whitelist = TRUE
req_species_whitelist = SPECIES_VAURCA_WARRIOR // Kataphract K'lax would be more difficult
possible_species = list(SPECIES_VAURCA_WARRIOR)
extra_languages = list(LANGUAGE_VAURCA)
@@ -18,7 +18,6 @@
assigned_role = "Zeng-Hu Survivor"
special_role = "Zeng-Hu Survivor"
respawn_flag = null
uses_species_whitelist = TRUE
/datum/outfit/admin/zenghu_survivor
name = "Zeng-Hu Employee"