From 623b431c6c22f7434d950681a5077b4517e1cc75 Mon Sep 17 00:00:00 2001 From: Jeremie Rossignol Date: Wed, 14 Dec 2016 22:04:02 -0700 Subject: [PATCH] Remove backwards compatibility. --- CHANGES.txt | 1 + GameData/ContractPacks/Tourism/Attraction.cfg | 4 ++-- GameData/ContractPacks/Tourism/AttractionReturnHome.cfg | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 0acdac3..6403bb2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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). diff --git a/GameData/ContractPacks/Tourism/Attraction.cfg b/GameData/ContractPacks/Tourism/Attraction.cfg index 3e3f910..409f4d2 100644 --- a/GameData/ContractPacks/Tourism/Attraction.cfg +++ b/GameData/ContractPacks/Tourism/Attraction.cfg @@ -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 diff --git a/GameData/ContractPacks/Tourism/AttractionReturnHome.cfg b/GameData/ContractPacks/Tourism/AttractionReturnHome.cfg index c65ed35..fc12665 100644 --- a/GameData/ContractPacks/Tourism/AttractionReturnHome.cfg +++ b/GameData/ContractPacks/Tourism/AttractionReturnHome.cfg @@ -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