Skip to content

Commit

Permalink
Fixed issue with satellite contracts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrossignol committed Jul 25, 2016
1 parent 7e5c7ee commit 0efb172
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 271 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ContractPack-RemoteTech 2.1.1
- Fixed issue where inner/outer system sat contracts can never be offered.

ContractPack-RemoteTech 2.1.0
- Rework for Contract Configurator 1.15.x
- Fixed DDS settings on agency icon.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"NAME":"Contract Pack: RemoteTech",
"URL":"https://raw.githubusercontent.com/jrossignol/ContractPack-RemoteTech/master/GameData/ContractPacks/RemoteTech/ContractPack-RemoteTech.version",
"DOWNLOAD":"https://github.com/jrossignol/ContractPack-RemoteTech/releases",
"CHANGE_LOG_URL":"https://raw.githubusercontent.com/jrossignol/ContractPack-RemoteTech/2.1.0/CHANGES.txt",
"CHANGE_LOG_URL":"https://raw.githubusercontent.com/jrossignol/ContractPack-RemoteTech/2.1.1/CHANGES.txt",
"GITHUB":{
"USERNAME":"jrossignol",
"REPOSITORY":"ContractPack-RemoteTech",
Expand All @@ -11,13 +11,13 @@
"VERSION":{
"MAJOR":2,
"MINOR":1,
"PATCH":0,
"PATCH":1,
"BUILD":0
},
"KSP_VERSION":{
"MAJOR":1,
"MINOR":1,
"PATCH":0
"PATCH":3
},
"KSP_VERSION_MIN":{
"MAJOR":1,
Expand Down
274 changes: 8 additions & 266 deletions GameData/ContractPacks/RemoteTech/EverythingSat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -91,141 +91,12 @@ CONTRACT_TYPE:NEEDS[RemoteTech]
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(0)
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(1)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 1
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(2)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 2
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(3)
targetBody = @target
REQUIREMENT
ITERATOR
{
type = Expression
expression = @/allBodies.Count() > 3
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(4)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 4
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(5)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 5
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(6)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 6
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(7)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 7
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(8)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 8
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(9)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 9
type = CelestialBody
target = @/targetBodies
}
}
}
Expand Down Expand Up @@ -266,141 +137,12 @@ CONTRACT_TYPE:NEEDS[RemoteTech]
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(0)
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(1)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 1
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(2)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 2
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(3)
targetBody = @target
REQUIREMENT
ITERATOR
{
type = Expression
expression = @/allBodies.Count() > 3
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(4)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 4
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(5)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 5
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(6)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 6
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(7)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 7
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(8)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 8
}
}
PARAMETER
{
name = HasAntenna
type = HasAntenna
antennaType = Dish
targetBody = @/allBodies.ElementAt(9)
REQUIREMENT
{
type = Expression
expression = @/allBodies.Count() > 9
type = CelestialBody
target = @/targetBodies
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion GameData/ContractPacks/RemoteTech/InnerSystemSat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ CONTRACT_TYPE:NEEDS[RemoteTech]
type = HasAntenna
antennaType = Dish
targetBody = @target
ITERATOR
{
type = CelestialBody
targetBody = @/targetBodies
target = @/targetBodies
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion GameData/ContractPacks/RemoteTech/OuterSystemSat.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ CONTRACT_TYPE:NEEDS[RemoteTech]
type = HasAntenna

antennaType = Dish
targetBody = @target

ITERATOR
{
type = CelestialBody
targetBody = @/targetBodies
target = @/targetBodies
}
}
}
Expand Down

0 comments on commit 0efb172

Please sign in to comment.