Skip to content

Commit

Permalink
Prevent level 5 kerbals from being chosen for training missions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Darineth committed Nov 22, 2016
1 parent 93aa9b9 commit 3c62d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion KerbalAcademyAdvancedPiloting.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{
type = Kerbal
uniquenessCheck = CONTRACT_ACTIVE
trainee = AllKerbals().Where(m => m.ExperienceTrait() == "Pilot" && m.Type() == Crew && m.RosterStatus() == Available && m.ExperienceLevel()>0).SelectUnique()
trainee = AllKerbals().Where(m => m.ExperienceTrait() == "Pilot" && m.Type() == Crew && m.RosterStatus() == Available && m.ExperienceLevel()>0 && m.ExperienceLevel()<5).SelectUnique()
title = Must have a Pilot available in the roster.
}

Expand Down
2 changes: 1 addition & 1 deletion KerbalAcademyEngineeringSchool.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{
type = Kerbal
uniquenessCheck = CONTRACT_ACTIVE
trainee = AllKerbals().Where(m => m.ExperienceTrait() == "Engineer" && m.Type() == Crew && m.RosterStatus() == Available && m.ExperienceLevel()>0).Random()
trainee = AllKerbals().Where(m => m.ExperienceTrait() == "Engineer" && m.Type() == Crew && m.RosterStatus() == Available && m.ExperienceLevel()>0 && m.ExperienceLevel()<5).Random()
title = Must have an engineer available in the roster.
}

Expand Down
2 changes: 1 addition & 1 deletion KerbalAcademyFieldScience.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
type = Kerbal
uniquenessCheck = CONTRACT_ACTIVE
trainee = AllKerbals().Where(m => m.ExperienceTrait() == "Scientist" && m.Type() == Crew && m.RosterStatus() == Available && m.ExperienceLevel()>0).Random()
trainee = AllKerbals().Where(m => m.ExperienceTrait() == "Scientist" && m.Type() == Crew && m.RosterStatus() == Available && m.ExperienceLevel()>0 && m.ExperienceLevel()<5).Random()
title = Must have a scientist who is level 1 or higher.
}

Expand Down

0 comments on commit 3c62d77

Please sign in to comment.