mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 05:46:34 +01:00
Whitelist backend changes (#4996)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game Whitelist are run by name, so renaming a whitelisted species also needs an update to the WL as well. Removes a shitty gimmick of a mirror most people dont have access to because its a fucking nightmare of conditions we partially removed and a fix for both runtimes and uninteded stat cheating <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and it's effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 del: Removed the code behind the raider mirror fix: fixed the shadekin traits applying to non shadekin config: changed WL using Species ID rather than name refactor: changed character species to always have a superspecies_id /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
species_paths = list()
|
||||
species_names = list()
|
||||
playable_species = list()
|
||||
whitelisted_species = list()
|
||||
custom_species_bases = list()
|
||||
var/static/list/blacklisted_icon_ids = list(SPECIES_ID_CUSTOM, SPECIES_ID_PROMETHEAN)
|
||||
var/static/list/whitelisted_icon_ids = list(SPECIES_ID_VULPKANIN, SPECIES_ID_XENOMORPH_HUNTER)
|
||||
@@ -41,17 +40,15 @@
|
||||
species_names[S.name] = S
|
||||
species_paths[path] = S
|
||||
|
||||
if(S.species_spawn_flags & SPECIES_SPAWN_WHITELISTED)
|
||||
whitelisted_species += S.name
|
||||
|
||||
if(!(S.species_spawn_flags & SPECIES_SPAWN_SPECIAL))
|
||||
playable_species += S.name
|
||||
playable_species += S.uid
|
||||
if((!(S.species_spawn_flags & (SPECIES_SPAWN_WHITELISTED | SPECIES_SPAWN_SPECIAL)) && !(S.get_species_id() in blacklisted_icon_ids)) || (S.get_species_id() in whitelisted_icon_ids))
|
||||
custom_species_bases += S.name
|
||||
|
||||
tim_sort(species_lookup, /proc/cmp_auto_compare, TRUE)
|
||||
tim_sort(species_names, /proc/cmp_auto_compare, TRUE)
|
||||
tim_sort(species_lookup, /proc/cmp_auto_compare, TRUE)
|
||||
tim_sort(whitelisted_species, /proc/cmp_auto_compare)
|
||||
tim_sort(playable_species, /proc/cmp_auto_compare)
|
||||
tim_sort(custom_species_bases, /proc/cmp_auto_compare)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user