Makes xenowear species WL check species

Makes loadout xenowear species whitelists check the selected species of the character instead of whether or not the client key is whitelisted for the species.
This commit is contained in:
Verkister
2021-04-23 18:00:44 +03:00
committed by GitHub
parent 482fca82c9
commit 76d2a40936
@@ -66,7 +66,7 @@ var/list/gear_datums = list()
for(var/gear_name in gear_datums)
var/datum/gear/G = gear_datums[gear_name]
if(G.whitelisted && !is_alien_whitelisted(preference_mob, GLOB.all_species[G.whitelisted]))
if(G.whitelisted != pref.species)
continue
if(max_cost && G.cost > max_cost)
continue