Merge pull request #3147 from CHOMPStationBot/upstream-merge-11702

[MIRROR] Brings back character age restrictions for certain roles
This commit is contained in:
Nadyr
2021-10-27 19:29:48 -04:00
committed by GitHub
+4 -3
View File
@@ -166,11 +166,12 @@
///Assigns minimum age by race & brain type. Code says Positronic = mechanical and Drone = digital because nothing can be simple.
///Will first check based on brain type, then based on species.
/datum/job/proc/get_min_age(species_name, brain_type)
return 18 // VOREStation Edit - Minimum character age by rules anyway, might as well return 18 instead of 0 or 1 or whatever.
//return (brain_type && LAZYACCESS(min_age_by_species, brain_type)) || LAZYACCESS(min_age_by_species, species_name) || minimum_character_age //VOREStation Edit
return minimum_character_age // VOREStation Edit - Minimum character age by rules is 18, return default which is standard for all species
//return (brain_type && LAZYACCESS(min_age_by_species, brain_type)) || LAZYACCESS(min_age_by_species, species_name) || minimum_character_age //VOREStation Removal
/datum/job/proc/get_ideal_age(species_name, brain_type)
return (brain_type && LAZYACCESS(ideal_age_by_species, brain_type)) || LAZYACCESS(ideal_age_by_species, brain_type) || ideal_character_age
return ideal_character_age // VOREStation Edit - Minimum character age by rules is 18, return default which is standard for all species
//return (brain_type && LAZYACCESS(ideal_age_by_species, brain_type)) || LAZYACCESS(ideal_age_by_species, brain_type) || ideal_character_age //VOREStation Removal
/datum/job/proc/is_species_banned(species_name, brain_type)
return FALSE // VOREStation Edit - Any species can be any job.