Another take at a new whitelist system (#8887)

* Another take at a new whitelist system

* fixes

* Fixes usage

* Adds python script to reassemble the glorious new whitelist
This commit is contained in:
Atermonera
2023-03-18 00:13:07 -08:00
committed by GitHub
parent bcc0ecb2a1
commit 2cee4d6a57
10 changed files with 221 additions and 248 deletions

View File

@@ -78,7 +78,7 @@ var/global/list/valid_bloodtypes = list("A+", "A-", "B+", "B-", "AB+", "AB-", "O
// That last list is entirely arbitrary. Take complaints up with Kholdstare.
if((istype(client) && check_rights(R_ADMIN | R_EVENT | R_FUN, 0, client)) || \
(LAZYLEN(instance.species_allowed) && species && (species in instance.species_allowed)) || \
(config.genemod_whitelist && client.is_whitelisted(/whitelist/genemod) && LAZYLEN(instance.whitelist_allowed) && (species in instance.whitelist_allowed)))
(config.genemod_whitelist && client.is_whitelisted("Genemods") && LAZYLEN(instance.whitelist_allowed) && (species in instance.whitelist_allowed)))
.[instance.name] = instance
/datum/category_item/player_setup_item/general/body