mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 13:42:44 +00:00
adds vatborn age req and species job bans
This commit is contained in:
@@ -23,8 +23,10 @@ var/datum/announcement/minor/captain_announcement = new(do_newscast = 1)
|
|||||||
economic_modifier = 20
|
economic_modifier = 20
|
||||||
|
|
||||||
minimum_character_age = 25
|
minimum_character_age = 25
|
||||||
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10)
|
min_age_by_species = list(SPECIES_HUMAN_VATBORN = 12)
|
||||||
/// ideal_character_age = 70 // Old geezer captains ftw
|
ideal_character_age = 70 // Old geezer captains ftw
|
||||||
|
ideal_age_by_species = list(SPECIES_HUMAN_VATBORN = 55) /// Vatborn live shorter, no other race eligible for captain besides human/skrell
|
||||||
|
banned_job_species = list(SPECIES_UNATHI, SPECIES_TAJ, SPECIES_DIONA, SPECIES_PROMETHEAN, SPECIES_ZADDAT, "mechanical", "digital")
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/captain
|
outfit_type = /decl/hierarchy/outfit/job/captain
|
||||||
job_description = "The Site Manager manages the other Command Staff, and through them the rest of the station. Though they have access to everything, \
|
job_description = "The Site Manager manages the other Command Staff, and through them the rest of the station. Though they have access to everything, \
|
||||||
@@ -68,8 +70,10 @@ var/datum/announcement/minor/captain_announcement = new(do_newscast = 1)
|
|||||||
economic_modifier = 10
|
economic_modifier = 10
|
||||||
|
|
||||||
minimum_character_age = 25
|
minimum_character_age = 25
|
||||||
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10)
|
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10, SPECIES_HUMAN_VATBORN = 12)
|
||||||
/// ideal_character_age = 50
|
ideal_character_age = 50
|
||||||
|
ideal_age_by_species = list(SPECIES_UNATHI = 140, SPECIES_TESHARI = 27, "mechanical" = 20, SPECIES_HUMAN_VATBORN = 20)
|
||||||
|
banned_job_species = list(SPECIES_PROMETHEAN, SPECIES_ZADDAT, "digital", SPECIES_DIONA)
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/hop
|
outfit_type = /decl/hierarchy/outfit/job/hop
|
||||||
job_description = "The Head of Personnel manages the Service department, the Exploration team, and most other civilians. They also \
|
job_description = "The Head of Personnel manages the Service department, the Exploration team, and most other civilians. They also \
|
||||||
|
|||||||
@@ -99,6 +99,7 @@
|
|||||||
economic_modifier = 5
|
economic_modifier = 5
|
||||||
access = list(access_maint_tunnels, access_mailsorting, access_cargo, access_cargo_bot, access_qm, access_mining, access_mining_station)
|
access = list(access_maint_tunnels, access_mailsorting, access_cargo, access_cargo_bot, access_qm, access_mining, access_mining_station)
|
||||||
minimal_access = list(access_maint_tunnels, access_mailsorting, access_cargo, access_cargo_bot, access_qm, access_mining, access_mining_station)
|
minimal_access = list(access_maint_tunnels, access_mailsorting, access_cargo, access_cargo_bot, access_qm, access_mining, access_mining_station)
|
||||||
|
banned_job_species = list("digital", SPECIES_PROMETHEAN)
|
||||||
|
|
||||||
ideal_character_age = 40
|
ideal_character_age = 40
|
||||||
|
|
||||||
@@ -231,6 +232,7 @@
|
|||||||
access = list(access_lawyer, access_sec_doors, access_maint_tunnels, access_heads)
|
access = list(access_lawyer, access_sec_doors, access_maint_tunnels, access_heads)
|
||||||
minimal_access = list(access_lawyer, access_sec_doors, access_heads)
|
minimal_access = list(access_lawyer, access_sec_doors, access_heads)
|
||||||
minimal_player_age = 7
|
minimal_player_age = 7
|
||||||
|
banned_job_species = list(SPECIES_PROMETHEAN, SPECIES_UNATHI, SPECIES_DIONA, SPECIES_TESHARI, SPECIES_ZADDAT, "digital")
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/internal_affairs_agent
|
outfit_type = /decl/hierarchy/outfit/job/internal_affairs_agent
|
||||||
job_description = "An Internal Affairs Agent makes sure that the crew is following Standard Operating Procedure. They also \
|
job_description = "An Internal Affairs Agent makes sure that the crew is following Standard Operating Procedure. They also \
|
||||||
|
|||||||
@@ -17,8 +17,10 @@
|
|||||||
economic_modifier = 10
|
economic_modifier = 10
|
||||||
|
|
||||||
minimum_character_age = 25
|
minimum_character_age = 25
|
||||||
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10)
|
min_age_by_species = list(SPECIES_UNATHI = 70, "mechanical" = 10, SPECIES_HUMAN_VATBORN = 12)
|
||||||
/// ideal_character_age = 50
|
ideal_character_age = 50
|
||||||
|
ideal_age_by_species = list(SPECIES_UNATHI = 140, "mechanical" = 20, SPECIES_HUMAN_VATBORN = 20)
|
||||||
|
banned_job_species = list(SPECIES_TESHARI, SPECIES_DIONA, SPECIES_PROMETHEAN, SPECIES_ZADDAT, "digital")
|
||||||
|
|
||||||
|
|
||||||
access = list(access_engine, access_engine_equip, access_tech_storage, access_maint_tunnels,
|
access = list(access_engine, access_engine_equip, access_tech_storage, access_maint_tunnels,
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
var/minimum_character_age = 0
|
var/minimum_character_age = 0
|
||||||
var/list/min_age_by_species = null
|
var/list/min_age_by_species = null
|
||||||
var/ideal_character_age = 30
|
var/ideal_character_age = 30
|
||||||
|
var/list/ideal_age_by_species = null
|
||||||
|
var/list/banned_job_species = null
|
||||||
var/has_headset = TRUE //Do people with this job need to be given headsets and told how to use them? E.g. Cyborgs don't.
|
var/has_headset = TRUE //Do people with this job need to be given headsets and told how to use them? E.g. Cyborgs don't.
|
||||||
|
|
||||||
var/account_allowed = 1 // Does this job type come with a station account?
|
var/account_allowed = 1 // Does this job type come with a station account?
|
||||||
@@ -164,4 +166,15 @@
|
|||||||
///Assigns minimum age by race & brain type. Code says Positronic = mechanical and Drone = digital because nothing can be simple.
|
///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.
|
///Will first check based on brain type, then based on species.
|
||||||
/datum/job/proc/get_min_age(species_name, brain_type)
|
/datum/job/proc/get_min_age(species_name, brain_type)
|
||||||
return (brain_type && LAZYACCESS(min_age_by_species, brain_type)) || LAZYACCESS(min_age_by_species, species_name) || minimum_character_age
|
return (brain_type && LAZYACCESS(min_age_by_species, brain_type)) || LAZYACCESS(min_age_by_species, species_name) || minimum_character_age
|
||||||
|
|
||||||
|
/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
|
||||||
|
|
||||||
|
/datum/job/proc/is_species_banned(species_name, brain_type)
|
||||||
|
if(banned_job_species == null)
|
||||||
|
return
|
||||||
|
if(species_name in banned_job_species)
|
||||||
|
return TRUE
|
||||||
|
if(brain_type in banned_job_species)
|
||||||
|
return TRUE
|
||||||
@@ -23,9 +23,11 @@
|
|||||||
access_keycard_auth, access_sec_doors, access_psychiatrist, access_eva, access_external_airlocks, access_maint_tunnels)
|
access_keycard_auth, access_sec_doors, access_psychiatrist, access_eva, access_external_airlocks, access_maint_tunnels)
|
||||||
|
|
||||||
minimum_character_age = 25
|
minimum_character_age = 25
|
||||||
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10)
|
min_age_by_species = list(SPECIES_UNATHI = 70, "mechanical" = 10, SPECIES_HUMAN_VATBORN = 12)
|
||||||
minimal_player_age = 10
|
minimal_player_age = 10
|
||||||
// ideal_character_age = 50
|
ideal_character_age = 50
|
||||||
|
ideal_age_by_species = list(SPECIES_UNATHI = 140, "mechanical" = 20, SPECIES_HUMAN_VATBORN = 20)
|
||||||
|
banned_job_species = list(SPECIES_TESHARI, SPECIES_DIONA, SPECIES_PROMETHEAN, SPECIES_ZADDAT, "digital")
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/medical/cmo
|
outfit_type = /decl/hierarchy/outfit/job/medical/cmo
|
||||||
job_description = "The CMO manages the Medical department and is a position requiring experience and skill; their goal is to ensure that their \
|
job_description = "The CMO manages the Medical department and is a position requiring experience and skill; their goal is to ensure that their \
|
||||||
@@ -163,6 +165,7 @@
|
|||||||
job_description = "A Psychiatrist provides mental health services to crew members in need. They may also be called upon to determine whatever \
|
job_description = "A Psychiatrist provides mental health services to crew members in need. They may also be called upon to determine whatever \
|
||||||
ails the mentally unwell, frequently under Security supervision. They understand the effects of various psychoactive drugs."
|
ails the mentally unwell, frequently under Security supervision. They understand the effects of various psychoactive drugs."
|
||||||
alt_titles = list("Psychologist" = /datum/alt_title/psychologist)
|
alt_titles = list("Psychologist" = /datum/alt_title/psychologist)
|
||||||
|
banned_job_species = list(SPECIES_PROMETHEAN, SPECIES_DIONA)
|
||||||
|
|
||||||
//Psychiatrist Alt Titles
|
//Psychiatrist Alt Titles
|
||||||
/datum/alt_title/psychologist
|
/datum/alt_title/psychologist
|
||||||
@@ -191,6 +194,7 @@
|
|||||||
job_description = "A Paramedic is primarily concerned with the recovery of patients who are unable to make it to the Medical Department on their own. \
|
job_description = "A Paramedic is primarily concerned with the recovery of patients who are unable to make it to the Medical Department on their own. \
|
||||||
They may also be called upon to keep patients stable when Medical is busy or understaffed."
|
They may also be called upon to keep patients stable when Medical is busy or understaffed."
|
||||||
alt_titles = list("Emergency Medical Technician" = /datum/alt_title/emt)
|
alt_titles = list("Emergency Medical Technician" = /datum/alt_title/emt)
|
||||||
|
banned_job_species = list(SPECIES_DIONA)
|
||||||
|
|
||||||
minimum_character_age = 1
|
minimum_character_age = 1
|
||||||
min_age_by_species = list(SPECIES_PROMETHEAN = 2)
|
min_age_by_species = list(SPECIES_PROMETHEAN = 2)
|
||||||
|
|||||||
@@ -26,8 +26,10 @@
|
|||||||
|
|
||||||
minimum_character_age = 25
|
minimum_character_age = 25
|
||||||
minimal_player_age = 14
|
minimal_player_age = 14
|
||||||
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10)
|
min_age_by_species = list(SPECIES_UNATHI = 70, "mechanical" = 10, SPECIES_HUMAN_VATBORN = 12)
|
||||||
/// ideal_character_age = 50
|
ideal_character_age = 50
|
||||||
|
ideal_age_by_species = list(SPECIES_UNATHI = 140, "mechanical" = 20, SPECIES_HUMAN_VATBORN = 20)
|
||||||
|
banned_job_species = list(SPECIES_TESHARI, SPECIES_DIONA, SPECIES_PROMETHEAN, SPECIES_ZADDAT, "digital")
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/science/rd
|
outfit_type = /decl/hierarchy/outfit/job/science/rd
|
||||||
job_description = "The Research Director manages and maintains the Research department. They are required to ensure the safety of the entire crew, \
|
job_description = "The Research Director manages and maintains the Research department. They are required to ensure the safety of the entire crew, \
|
||||||
@@ -57,6 +59,8 @@
|
|||||||
economic_modifier = 7
|
economic_modifier = 7
|
||||||
access = list(access_robotics, access_tox, access_tox_storage, access_research, access_xenobiology, access_xenoarch)
|
access = list(access_robotics, access_tox, access_tox_storage, access_research, access_xenobiology, access_xenoarch)
|
||||||
minimal_access = list(access_tox, access_tox_storage, access_research, access_xenoarch)
|
minimal_access = list(access_tox, access_tox_storage, access_research, access_xenoarch)
|
||||||
|
min_age_by_species = list(SPECIES_PROMETHEAN = 2)
|
||||||
|
banned_job_species = list("digital")
|
||||||
|
|
||||||
minimal_player_age = 14
|
minimal_player_age = 14
|
||||||
|
|
||||||
@@ -100,6 +104,7 @@
|
|||||||
economic_modifier = 7
|
economic_modifier = 7
|
||||||
access = list(access_robotics, access_tox, access_tox_storage, access_research, access_xenobiology, access_hydroponics)
|
access = list(access_robotics, access_tox, access_tox_storage, access_research, access_xenobiology, access_hydroponics)
|
||||||
minimal_access = list(access_research, access_xenobiology, access_hydroponics, access_tox_storage)
|
minimal_access = list(access_research, access_xenobiology, access_hydroponics, access_tox_storage)
|
||||||
|
banned_job_species = list("digital")
|
||||||
|
|
||||||
minimal_player_age = 14
|
minimal_player_age = 14
|
||||||
minimum_character_age = 1
|
minimum_character_age = 1
|
||||||
@@ -135,6 +140,7 @@
|
|||||||
minimal_player_age = 7
|
minimal_player_age = 7
|
||||||
minimum_character_age = 1
|
minimum_character_age = 1
|
||||||
min_age_by_species = list(SPECIES_PROMETHEAN = 2)
|
min_age_by_species = list(SPECIES_PROMETHEAN = 2)
|
||||||
|
banned_job_species = list("digital")
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/science/roboticist
|
outfit_type = /decl/hierarchy/outfit/job/science/roboticist
|
||||||
job_description = "A Roboticist maintains and repairs the station's synthetics, including crew with prosthetic limbs. \
|
job_description = "A Roboticist maintains and repairs the station's synthetics, including crew with prosthetic limbs. \
|
||||||
|
|||||||
@@ -24,8 +24,11 @@
|
|||||||
access_research, access_engine, access_mining, access_medical, access_construction, access_mailsorting,
|
access_research, access_engine, access_mining, access_medical, access_construction, access_mailsorting,
|
||||||
access_heads, access_hos, access_RC_announce, access_keycard_auth, access_gateway, access_external_airlocks)
|
access_heads, access_hos, access_RC_announce, access_keycard_auth, access_gateway, access_external_airlocks)
|
||||||
minimum_character_age = 25
|
minimum_character_age = 25
|
||||||
min_age_by_species = list(SPECIES_UNATHI = 70, SPECIES_TESHARI = 20, "mechanical" = 10)
|
min_age_by_species = list(SPECIES_HUMAN_VATBORN = 12)
|
||||||
minimal_player_age = 14
|
minimal_player_age = 14
|
||||||
|
ideal_character_age = 50
|
||||||
|
ideal_age_by_species = list(SPECIES_HUMAN_VATBORN = 20)
|
||||||
|
banned_job_species = list(SPECIES_TESHARI, SPECIES_DIONA, SPECIES_PROMETHEAN, SPECIES_ZADDAT, "digital", SPECIES_UNATHI, "mechanical")
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/security/hos
|
outfit_type = /decl/hierarchy/outfit/job/security/hos
|
||||||
job_description = " The Head of Security manages the Security Department, keeping the station safe and making sure the rules are followed. They are expected to \
|
job_description = " The Head of Security manages the Security Department, keeping the station safe and making sure the rules are followed. They are expected to \
|
||||||
@@ -59,6 +62,7 @@
|
|||||||
access = list(access_security, access_eva, access_sec_doors, access_brig, access_armory, access_maint_tunnels, access_morgue, access_external_airlocks)
|
access = list(access_security, access_eva, access_sec_doors, access_brig, access_armory, access_maint_tunnels, access_morgue, access_external_airlocks)
|
||||||
minimal_access = list(access_security, access_eva, access_sec_doors, access_brig, access_armory, access_maint_tunnels, access_external_airlocks)
|
minimal_access = list(access_security, access_eva, access_sec_doors, access_brig, access_armory, access_maint_tunnels, access_external_airlocks)
|
||||||
minimal_player_age = 5
|
minimal_player_age = 5
|
||||||
|
banned_job_species = list(SPECIES_ZADDAT, SPECIES_PROMETHEAN, SPECIES_TESHARI, SPECIES_DIONA)
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/security/warden
|
outfit_type = /decl/hierarchy/outfit/job/security/warden
|
||||||
job_description = "The Warden watches over the physical Security Department, making sure the Brig and Armoury are secure and in order at all times. They oversee \
|
job_description = "The Warden watches over the physical Security Department, making sure the Brig and Armoury are secure and in order at all times. They oversee \
|
||||||
@@ -83,6 +87,7 @@
|
|||||||
minimal_access = list(access_security, access_sec_doors, access_forensics_lockers, access_morgue, access_maint_tunnels, access_eva, access_external_airlocks)
|
minimal_access = list(access_security, access_sec_doors, access_forensics_lockers, access_morgue, access_maint_tunnels, access_eva, access_external_airlocks)
|
||||||
economic_modifier = 5
|
economic_modifier = 5
|
||||||
minimal_player_age = 3
|
minimal_player_age = 3
|
||||||
|
banned_job_species = list(SPECIES_ZADDAT, SPECIES_PROMETHEAN, SPECIES_DIONA)
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/security/detective
|
outfit_type = /decl/hierarchy/outfit/job/security/detective
|
||||||
job_description = "A Detective works to help Security find criminals who have not properly been identified, through interviews and forensic work. \
|
job_description = "A Detective works to help Security find criminals who have not properly been identified, through interviews and forensic work. \
|
||||||
@@ -112,6 +117,7 @@
|
|||||||
access = list(access_security, access_eva, access_sec_doors, access_brig, access_maint_tunnels, access_morgue, access_external_airlocks)
|
access = list(access_security, access_eva, access_sec_doors, access_brig, access_maint_tunnels, access_morgue, access_external_airlocks)
|
||||||
minimal_access = list(access_security, access_eva, access_sec_doors, access_brig, access_maint_tunnels, access_external_airlocks)
|
minimal_access = list(access_security, access_eva, access_sec_doors, access_brig, access_maint_tunnels, access_external_airlocks)
|
||||||
minimal_player_age = 3
|
minimal_player_age = 3
|
||||||
|
banned_job_species = list(SPECIES_ZADDAT, SPECIES_TESHARI, SPECIES_DIONA)
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/security/officer
|
outfit_type = /decl/hierarchy/outfit/job/security/officer
|
||||||
job_description = "A Security Officer is concerned with maintaining the safety and security of the station as a whole, dealing with external threats and \
|
job_description = "A Security Officer is concerned with maintaining the safety and security of the station as a whole, dealing with external threats and \
|
||||||
|
|||||||
@@ -91,9 +91,12 @@ var/global/datum/controller/occupations/job_master
|
|||||||
if(!job.player_old_enough(player.client))
|
if(!job.player_old_enough(player.client))
|
||||||
Debug("FOC player not old enough, Player: [player]")
|
Debug("FOC player not old enough, Player: [player]")
|
||||||
continue
|
continue
|
||||||
if(job.minimum_character_age && (player.client.prefs.age < job.minimum_character_age))
|
if(job.minimum_character_age && (player.client.prefs.age < job.get_min_age(player.client.prefs.species, player.client.prefs.organ_data["brain"])))
|
||||||
Debug("FOC character not old enough, Player: [player]")
|
Debug("FOC character not old enough, Player: [player]")
|
||||||
continue
|
continue
|
||||||
|
if(job.is_species_banned(player.client.prefs.species, player.client.prefs.organ_data["brain"]) == TRUE)
|
||||||
|
Debug("FOC character species invalid for job, Player: [player]")
|
||||||
|
continue
|
||||||
if(flag && !(player.client.prefs.be_special & flag))
|
if(flag && !(player.client.prefs.be_special & flag))
|
||||||
Debug("FOC flag failed, Player: [player], Flag: [flag], ")
|
Debug("FOC flag failed, Player: [player], Flag: [flag], ")
|
||||||
continue
|
continue
|
||||||
@@ -108,7 +111,10 @@ var/global/datum/controller/occupations/job_master
|
|||||||
if(!job)
|
if(!job)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if(job.minimum_character_age && (player.client.prefs.age < job.minimum_character_age))
|
if(job.minimum_character_age && (player.client.prefs.age < job.get_min_age(player.client.prefs.species, player.client.prefs.organ_data["brain"])))
|
||||||
|
continue
|
||||||
|
|
||||||
|
if(job.is_species_banned(player.client.prefs.species, player.client.prefs.organ_data["brain"]) == TRUE)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if(istype(job, GetJob("Assistant"))) // We don't want to give him assistant, that's boring!
|
if(istype(job, GetJob("Assistant"))) // We don't want to give him assistant, that's boring!
|
||||||
@@ -157,20 +163,18 @@ var/global/datum/controller/occupations/job_master
|
|||||||
if(!V.client) continue
|
if(!V.client) continue
|
||||||
var/age = V.client.prefs.age
|
var/age = V.client.prefs.age
|
||||||
|
|
||||||
if(age < job.minimum_character_age) // Nope.
|
if(age < job.get_min_age(V.client.prefs.species, V.client.prefs.organ_data["brain"])) // Nope.
|
||||||
continue
|
continue
|
||||||
|
|
||||||
switch(age)
|
var/idealage = job.get_ideal_age(V.client.prefs.species, V.client.prefs.organ_data["brain"])
|
||||||
if(job.minimum_character_age to (job.minimum_character_age+10))
|
var/agediff = abs(idealage - age) // Compute the absolute difference in age from target
|
||||||
weightedCandidates[V] = 3 // Still a bit young.
|
switch(agediff) /// If the math sucks, it's because I almost failed algebra in high school.
|
||||||
if((job.minimum_character_age+10) to (job.ideal_character_age-10))
|
if(20 to INFINITY)
|
||||||
weightedCandidates[V] = 6 // Better.
|
weightedCandidates[V] = 3 // Too far off
|
||||||
if((job.ideal_character_age-10) to (job.ideal_character_age+10))
|
if(10 to 20)
|
||||||
weightedCandidates[V] = 10 // Great.
|
weightedCandidates[V] = 6 // Nearer the mark, but not quite
|
||||||
if((job.ideal_character_age+10) to (job.ideal_character_age+20))
|
if(0 to 10)
|
||||||
weightedCandidates[V] = 6 // Still good.
|
weightedCandidates[V] = 10 // On the mark
|
||||||
if((job.ideal_character_age+20) to INFINITY)
|
|
||||||
weightedCandidates[V] = 3 // Geezer.
|
|
||||||
else
|
else
|
||||||
// If there's ABSOLUTELY NOBODY ELSE
|
// If there's ABSOLUTELY NOBODY ELSE
|
||||||
if(candidates.len == 1) weightedCandidates[V] = 1
|
if(candidates.len == 1) weightedCandidates[V] = 1
|
||||||
|
|||||||
@@ -123,8 +123,11 @@
|
|||||||
var/available_in_days = job.available_in_days(user.client)
|
var/available_in_days = job.available_in_days(user.client)
|
||||||
. += "<del>[rank]</del></td></a><td> \[IN [(available_in_days)] DAYS]</td></tr>"
|
. += "<del>[rank]</del></td></a><td> \[IN [(available_in_days)] DAYS]</td></tr>"
|
||||||
continue
|
continue
|
||||||
|
if(job.is_species_banned(user.client.prefs.species, user.client.prefs.organ_data["brain"]) == TRUE)
|
||||||
|
. += "<del>[rank]</del></td></a><td> \[THIS RACE/BRAIN TYPE CANNOT TAKE THIS ROLE.\]</td></tr>"
|
||||||
|
continue
|
||||||
if(job.minimum_character_age && user.client && (user.client.prefs.age < job.get_min_age(user.client.prefs.species, user.client.prefs.organ_data["brain"])))
|
if(job.minimum_character_age && user.client && (user.client.prefs.age < job.get_min_age(user.client.prefs.species, user.client.prefs.organ_data["brain"])))
|
||||||
. += "<del>[rank]</del></td></a><td> \[MINIMUM CHARACTER AGE FOR SELECTED RACE & BRAIN TYPE: [job.get_min_age(user.client.prefs.species, user.client.prefs.organ_data["brain"])]\]</td></tr>"
|
. += "<del>[rank]</del></td></a><td> \[MINIMUM CHARACTER AGE FOR SELECTED RACE/BRAIN TYPE: [job.get_min_age(user.client.prefs.species, user.client.prefs.organ_data["brain"])]\]</td></tr>"
|
||||||
continue
|
continue
|
||||||
if((pref.job_civilian_low & ASSISTANT) && job.type != /datum/job/assistant)
|
if((pref.job_civilian_low & ASSISTANT) && job.type != /datum/job/assistant)
|
||||||
. += "<font color=grey>[rank]</font></a></td><td></td></tr>"
|
. += "<font color=grey>[rank]</font></a></td><td></td></tr>"
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ var/const/access_explorer = 43
|
|||||||
economic_modifier = 4
|
economic_modifier = 4
|
||||||
access = list(access_explorer, access_research)
|
access = list(access_explorer, access_research)
|
||||||
minimal_access = list(access_explorer, access_research)
|
minimal_access = list(access_explorer, access_research)
|
||||||
|
banned_job_species = list(SPECIES_ZADDAT)
|
||||||
|
|
||||||
outfit_type = /decl/hierarchy/outfit/job/explorer2
|
outfit_type = /decl/hierarchy/outfit/job/explorer2
|
||||||
job_description = "An Explorer searches for interesting things on the surface of Sif, and returns them to the station."
|
job_description = "An Explorer searches for interesting things on the surface of Sif, and returns them to the station."
|
||||||
|
|||||||
Reference in New Issue
Block a user