From 0e1bc262b11c0aaefb751216a7b48d33f07da121 Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Thu, 15 Jan 2015 13:31:26 +1300 Subject: [PATCH] Combine PDOX and PDOX.Germany to respect BuildLimit: 1 (Fixes #7330) --- mods/ra/rules/structures.yaml | 41 +++++++++++++++++++++-------------- mods/ra/rules/world.yaml | 2 +- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/mods/ra/rules/structures.yaml b/mods/ra/rules/structures.yaml index 875e40c599..62510ce7dc 100644 --- a/mods/ra/rules/structures.yaml +++ b/mods/ra/rules/structures.yaml @@ -305,7 +305,7 @@ PDOX: Buildable: Queue: Defense BuildPaletteOrder: 120 - Prerequisites: atek, ~structures.allies, ~!structures.germany, ~techlevel.unrestricted + Prerequisites: atek, ~structures.allies, ~techlevel.unrestricted BuildLimit: 1 Valued: Cost: 1500 @@ -326,7 +326,15 @@ PDOX: Range: 10c0 Bib: HasMinibib: Yes - ChronoshiftPower: + ProvidesCustomPrerequisite@germany: + Race: germany + Prerequisite: pdox.germany + ProvidesCustomPrerequisite@germanstructure: + RequiresPrerequisites: structures.germany + Prerequisite: pdox.germany + ChronoshiftPower@chronoshift: + OrderName: Chronoshift + Prerequisites: !pdox.germany Icon: chrono ChargeTime: 120 Description: Chronoshift @@ -338,6 +346,21 @@ PDOX: Duration: 20 KillCargo: yes DisplayRadarPing: True + ChronoshiftPower@advancedchronoshift: + OrderName: AdvancedChronoshift + Prerequisites: pdox.germany + Icon: chrono + ChargeTime: 120 + Description: Advanced Chronoshift + LongDesc: Teleports a large group of units across\nthe map for 20 seconds. + SelectTargetSound: slcttgt1.aud + InsufficientPowerSound: nopowr1.aud + BeginChargeSound: chrochr1.aud + EndChargeSound: chrordy1.aud + Duration: 20 + KillCargo: yes + DisplayRadarPing: True + Range: 2 SupportPowerChargeBar: -AcceptsSupplies: Power: @@ -345,20 +368,6 @@ PDOX: MustBeDestroyed: RequiredForShortGame: false -PDOX.Germany: - Inherits: PDOX - Buildable: - Prerequisites: atek, ~structures.germany, ~techlevel.unrestricted - RenderBuilding: - Image: pdox - Tooltip: - Name: Advanced Chronosphere - Description: Teleports a large group of units across the\nmap for a short time. Requires power to operate.\n Special Ability: Chronoshift\n\nMaximum 1 can be built - ChronoshiftPower: - Description: Advanced Chronoshift - LongDesc: Teleports a large group of units across the\nmap for 20 seconds. - Range: 2 - TSLA: Inherits: ^Defense Buildable: diff --git a/mods/ra/rules/world.yaml b/mods/ra/rules/world.yaml index 8cffc74687..86008373b6 100644 --- a/mods/ra/rules/world.yaml +++ b/mods/ra/rules/world.yaml @@ -110,7 +110,7 @@ World: Name: Germany Race: germany Side: Allies - Description: Germany: Technology\nSpecial Structure: Advanced Chronosphere\nSpecial Unit: Chrono Tank + Description: Germany: Technology\nSpecial Ability: Advanced Chronoshift\nSpecial Unit: Chrono Tank Country@4: Name: Soviet Race: soviet