From 834e4bfe9cba836bdd8666a05281ef820d69f04e Mon Sep 17 00:00:00 2001 From: penev92 Date: Fri, 17 Apr 2015 15:13:36 +0300 Subject: [PATCH] Fix building prerequisites in TS --- mods/ts/rules/gdi-structures.yaml | 8 ++++++++ mods/ts/rules/gdi-support.yaml | 2 +- mods/ts/rules/nod-structures.yaml | 5 +++++ mods/ts/rules/shared-structures.yaml | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/mods/ts/rules/gdi-structures.yaml b/mods/ts/rules/gdi-structures.yaml index f2cba934c5..e6d95f9a48 100644 --- a/mods/ts/rules/gdi-structures.yaml +++ b/mods/ts/rules/gdi-structures.yaml @@ -58,6 +58,7 @@ GAPOWR: UpgradeTypes: powrup.b UpgradeMinEnabledLevel: 1 Amount: 50 + ProvidesCustomPrerequisite@buildingname: GAPILE: Inherits: ^Building @@ -100,6 +101,7 @@ GAPILE: Sequence: idle-flag Power: Amount: -20 + ProvidesCustomPrerequisite@buildingname: GAWEAP: Inherits: ^Building @@ -146,6 +148,7 @@ GAWEAP: Sequence: bib Power: Amount: -30 + ProvidesCustomPrerequisite@buildingname: GAHPAD: Inherits: ^Building @@ -185,6 +188,7 @@ GAHPAD: Amount: -10 Selectable: Bounds: 88, 66, 0, -5 + ProvidesCustomPrerequisite@buildingname: GADEPT: Inherits: ^Building @@ -224,6 +228,7 @@ GADEPT: UseDeathTypeSuffix: false Power: Amount: -30 + ProvidesCustomPrerequisite@buildingname: GARADR: Inherits: ^Building @@ -264,6 +269,7 @@ GARADR: TargetTypes: Ground, C4, SpyInfiltrate Power: Amount: -50 + ProvidesCustomPrerequisite@buildingname: GATECH: Inherits: ^Building @@ -293,6 +299,7 @@ GATECH: Sequence: idle-lights Power: Amount: -150 + ProvidesCustomPrerequisite@buildingname: GAPLUG: Inherits: ^Building @@ -365,3 +372,4 @@ GAPLUG: UpgradeTypes: plug.ioncannonb UpgradeMinEnabledLevel: 1 Sequence: idle-ioncannonb + ProvidesCustomPrerequisite@buildingname: diff --git a/mods/ts/rules/gdi-support.yaml b/mods/ts/rules/gdi-support.yaml index e367a15e5a..2e952049f2 100644 --- a/mods/ts/rules/gdi-support.yaml +++ b/mods/ts/rules/gdi-support.yaml @@ -23,7 +23,6 @@ GAWALL: LineBuild: NodeTypes: wall, turret - GACTWR: Inherits: ^Building Valued: @@ -128,6 +127,7 @@ GACTWR: tower.vulcan: tower, tower.vulcan tower.rocket: tower, tower.rocket tower.sam: tower, tower.sam + ProvidesCustomPrerequisite@buildingname: GAVULC: Inherits: ^BuildingPlug diff --git a/mods/ts/rules/nod-structures.yaml b/mods/ts/rules/nod-structures.yaml index b6ec13164a..5f036c9548 100644 --- a/mods/ts/rules/nod-structures.yaml +++ b/mods/ts/rules/nod-structures.yaml @@ -107,6 +107,7 @@ NAHAND: Sequence: production-light Power: Amount: -20 + ProvidesCustomPrerequisite@buildingname: NAWEAP: Inherits: ^Building @@ -149,6 +150,7 @@ NAWEAP: Sequence: bib Power: Amount: -30 + ProvidesCustomPrerequisite@buildingname: NAHPAD: Inherits: ^Building @@ -188,6 +190,7 @@ NAHPAD: Amount: -10 Selectable: Bounds: 78, 54, 0, -8 + ProvidesCustomPrerequisite@buildingname: NARADR: Inherits: ^Building @@ -228,6 +231,7 @@ NARADR: TargetTypes: Ground, C4, SpyInfiltrate Power: Amount: -50 + ProvidesCustomPrerequisite@buildingname: NATECH: Inherits: ^Building @@ -257,6 +261,7 @@ NATECH: Sequence: idle-lights Power: Amount: -150 + ProvidesCustomPrerequisite@buildingname: NASTLH: Inherits: ^Building diff --git a/mods/ts/rules/shared-structures.yaml b/mods/ts/rules/shared-structures.yaml index 75da7a2d7f..2636f36fdc 100644 --- a/mods/ts/rules/shared-structures.yaml +++ b/mods/ts/rules/shared-structures.yaml @@ -93,6 +93,7 @@ PROC: Palette: effect Power: Amount: -30 + ProvidesCustomPrerequisite@buildingname: GASILO: Inherits: ^Building