mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
Enforces species jobs restrictions through mechanics (#7691)
This commit is contained in:
@@ -286,6 +286,11 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
|
||||
if (jobban_isbanned(src,rank))
|
||||
return FALSE
|
||||
|
||||
if(job.blacklisted_species) // check for restricted species
|
||||
var/datum/species/S = all_species[client.prefs.species]
|
||||
if(S.name in job.blacklisted_species)
|
||||
return FALSE
|
||||
|
||||
var/datum/faction/faction = SSjobs.name_factions[client.prefs.faction] || SSjobs.default_faction
|
||||
if (!(job.type in faction.allowed_role_types))
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user