Skip to content

Commit

Permalink
Fixed issue with scientist contract.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Sep 2, 2015
1 parent 10c8e00 commit 70b6d7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ContractPack-FieldResearch 1.1.1
- Fixed issue with scientist contract under New Horizons (thanks zeropositivo).

ContractPack-FieldResearch 1.1.0
- Support for New Horizons.
- Make Hard Science waypoints more clear that they are only a suggestion.
Expand Down
16 changes: 3 additions & 13 deletions GameData/ContractPacks/FieldResearch/Scientist.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,10 @@ CONTRACT_TYPE
experienceTrait = Scientist
}

// Done a flyby of at least one child body
REQUIREMENT
{
type = Any

REQUIREMENT
{
type = FlyBy
targetBody = HomeWorld().Children().First()
}

REQUIREMENT
{
type = FlyBy
targetBody = HomeWorld().Children().Last()
}
type = Expression
expression = AllBodies().Where(cb => cb.Parent() == (@FieldResearch:homeIsMoon ? HomeWorld().Parent() : HomeWorld()) && cb.HaveReached()).Count() > 0
}
}
2 changes: 1 addition & 1 deletion GameData/ContractPacks/FieldResearch/Scraps.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CONTRACT_TYPE
{
type = List<CelestialBody>
validBodies = Prestige() == Trivial ? [ HomeWorld() ] : Prestige() == Significant ? @FieldResearch:l2Bodies.Random() : @FieldResearch:l3Bodies.Random()
validBodies = Prestige() == Trivial ? [ HomeWorld() ] : Prestige() == Significant ? @FieldResearch:l2Bodies : @FieldResearch:l3Bodies
}
DATA
Expand Down

0 comments on commit 70b6d7d

Please sign in to comment.