Skip to content

Commit

Permalink
Remove backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Dec 15, 2016
1 parent 5e4abf9 commit 623b431
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ContractPack-Tourism 1.5.2
- Fixed compatibility with Galileo planet pack.
- Fixed broken backwards compatibility with hotel/casino contracts.

ContractPack-Tourism 1.5.1
- Added a minAltitude parameter on the sub-orbital flight to make it more clear (thanks Deimos Rast).
Expand Down
4 changes: 2 additions & 2 deletions GameData/ContractPacks/Tourism/Attraction.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ CONTRACT_TYPE

requiredValue = false

validHotels = $Tourism_Hotels.Add(Space Hotel).Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).EmptyCrewSpace() >= 10)
validCasinos = $Tourism_Casinos.Add(Space Casino).Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).EmptyCrewSpace() >= 10)
validHotels = $Tourism_Hotels.Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).EmptyCrewSpace() >= 10)
validCasinos = $Tourism_Casinos.Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).EmptyCrewSpace() >= 10)
}

DATA
Expand Down
4 changes: 2 additions & 2 deletions GameData/ContractPacks/Tourism/AttractionReturnHome.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ CONTRACT_TYPE

requiredValue = false

validHotels = $Tourism_Hotels.Add(Space Hotel).Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).Crew().Where(k => k.Type() == Tourist).Count() >= 10)
validCasinos = $Tourism_Casinos.Add(Space Casino).Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).Crew().Where(k => k.Type() == Tourist).Count() >= 10)
validHotels = $Tourism_Hotels.Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).Crew().Where(k => k.Type() == Tourist).Count() >= 10)
validCasinos = $Tourism_Casinos.Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).Crew().Where(k => k.Type() == Tourist).Count() >= 10)
}

DATA
Expand Down

0 comments on commit 623b431

Please sign in to comment.