Skip to content

Commit

Permalink
[#12] Support for new horizons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Aug 7, 2015
1 parent 649fc5a commit da7f9fe
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ContractPack-Tourism 1.2.0
- Tourist contracts no longer ask for as many tourists at once until bigger pods get unlocked.
- Reduced grindiness - advanced tourism contracts no longer require lots of tourist contracts to be done.
- Support for New Horizons.

ContractPack-Tourism 1.1.8
- Fixed badly broken investor tour contract (thanks BT3).
Expand Down
2 changes: 1 addition & 1 deletion GameData/ContractPacks/Tourism/GasGiantMoons.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CONTRACT_TYPE
// Level 3 prestige
prestige = Exceptional

targetBody = AllBodies().Where(b => !b.HasSurface() && b.IsPlanet() && b.Children().Count() > 0).Random()
targetBody = AllBodies().Where(b => !b.HasSurface() && b.IsPlanet() && b.Children().Count() > 0 && b != HomeWorld().Parent()).Random()

agent = Kerbal Space Tourism

Expand Down
9 changes: 8 additions & 1 deletion GameData/ContractPacks/Tourism/Moons.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CONTRACT_TYPE
// Level 2 prestige
prestige = Significant

targetBody = HomeWorld().Children().Random()
targetBody = @parentBody.Children().Random()

agent = Kerbal Space Tourism

Expand All @@ -26,6 +26,13 @@ CONTRACT_TYPE
rewardReputation = 1.0
failureReputation = 10.0
DATA
{
type = CelestialBody
parentBody = HomeWorld().Parent().IsPlanet() ? HomeWorld().Parent() : HomeWorld()
}
PARAMETER
{
name = VesselParameterGroup
Expand Down
80 changes: 78 additions & 2 deletions GameData/ContractPacks/Tourism/TwoMoons.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CONTRACT_TYPE
// Level 3 prestige
prestige = Exceptional
targetBody = HomeWorld()
targetBody = HomeWorld().Parent().IsPlanet() ? HomeWorld().Parent() : HomeWorld()
agent = Kerbal Space Tourism
Expand Down Expand Up @@ -66,7 +66,75 @@ CONTRACT_TYPE
disableOnStateChange = true

maxAltitude = @/targetBody.Children().Last().Radius() / 2.0
targetBody = @/targetBody.Children().Last()
targetBody = @/targetBody.Children().ElementAt(1)
}

PARAMETER
{
name = ReachState
type = ReachState

disableOnStateChange = true

maxAltitude = @/targetBody.Children().Last().Radius() / 2.0
targetBody = @/targetBody.Children().ElementAt(2)

REQUIREMENT
{
type = Expression
expression= @/targetBody.Children().Count() > 2
}
}

PARAMETER
{
name = ReachState
type = ReachState

disableOnStateChange = true

maxAltitude = @/targetBody.Children().Last().Radius() / 2.0
targetBody = @/targetBody.Children().ElementAt(3)

REQUIREMENT
{
type = Expression
expression= @/targetBody.Children().Count() > 3
}
}

PARAMETER
{
name = ReachState
type = ReachState

disableOnStateChange = true

maxAltitude = @/targetBody.Children().Last().Radius() / 2.0
targetBody = @/targetBody.Children().ElementAt(4)

REQUIREMENT
{
type = Expression
expression= @/targetBody.Children().Count() > 4
}
}

PARAMETER
{
name = ReachState
type = ReachState

disableOnStateChange = true

maxAltitude = @/targetBody.Children().Last().Radius() / 2.0
targetBody = @/targetBody.Children().ElementAt(5)

REQUIREMENT
{
type = Expression
expression= @/targetBody.Children().Count() > 5
}
}
}

Expand Down Expand Up @@ -106,6 +174,14 @@ CONTRACT_TYPE
expression = TouristMoonsCount > 0 || OrbitedBodies().Count() > 2
}

REQUIREMENT
{
name = Expression
type = Expression

expression = @/targetBody.Children().Count() > 1
}

REQUIREMENT
{
name = AnyStarter
Expand Down

0 comments on commit da7f9fe

Please sign in to comment.