mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Mechanically enforces minimum age requirements for jobs (#7106)
Pretty much a port of Baystation12/Baystation12#27197
This commit is contained in:
@@ -102,6 +102,12 @@
|
||||
if(jobban_isbanned(player, rank))
|
||||
return FALSE
|
||||
|
||||
var/character_age = player.client.prefs.age
|
||||
var/datum/species/species = global.all_species[player.client.prefs.species]
|
||||
if((character_age < job.minimum_character_age) && !(species.spawn_flags & NO_AGE_MINIMUM))
|
||||
to_chat(player, "<span class='warning'>Your character is too young!</span>")
|
||||
return FALSE
|
||||
|
||||
var/position_limit = job.total_positions
|
||||
if(!latejoin)
|
||||
position_limit = job.spawn_positions
|
||||
|
||||
Reference in New Issue
Block a user