From 704e3656b42ae4c3f5cbdef640a91ae989aa7c76 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 29 Mar 2015 19:33:44 +0100 Subject: [PATCH] Implement Ion Cannon Uplink upgrade. --- mods/ts/rules/structures.yaml | 44 ++++++++++++++++++++++++++++--- mods/ts/sequences/structures.yaml | 12 +++++++++ 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/mods/ts/rules/structures.yaml b/mods/ts/rules/structures.yaml index a839f00463..bd4c842663 100644 --- a/mods/ts/rules/structures.yaml +++ b/mods/ts/rules/structures.yaml @@ -1325,16 +1325,16 @@ NAMISL: GAPLUG: Inherits: ^Building Valued: - Cost: 1800 + Cost: 1000 Tooltip: Name: GDI Upgrade Center - Description: Provides the Orbital Ion Cannon support power.\nRequires power to operate. + Description: Can be upgraded for additional technology Selectable: Bounds: 115,120,0,-20 Buildable: BuildPaletteOrder: 100 Prerequisites: proc, gatech - Queue: Defense + Queue: Building Building: Footprint: xxx xxx Dimensions: 2,3 @@ -1355,6 +1355,8 @@ GAPLUG: RevealsShroud: Range: 6c0 IonCannonPower: + UpgradeTypes: plug.ioncannon + UpgradeMinEnabledLevel: 1 Icon: ioncannon Effect: ionbeam ChargeTime: 180 @@ -1370,6 +1372,42 @@ GAPLUG: SupportPowerChargeBar: Power: Amount: -150 + Power@ioncannon: + UpgradeTypes: plug.ioncannon + UpgradeMinEnabledLevel: 1 + Amount: -100 + Pluggable@pluga: + Offset: 0,2 + Upgrades: + plug.ioncannon: plug.ioncannon, plug.ioncannona + WithIdleOverlay@ioncannona: + UpgradeTypes: plug.ioncannona + UpgradeMinEnabledLevel: 1 + Sequence: idle-ioncannona + Pluggable@plugb: + Offset: 1,2 + Upgrades: + plug.ioncannon: plug.ioncannon, plug.ioncannonb + WithIdleOverlay@ioncannonb: + UpgradeTypes: plug.ioncannonb + UpgradeMinEnabledLevel: 1 + Sequence: idle-ioncannonb + +GAPLUG3: + Inherits: ^BuildingPlug + Valued: + Cost: 1500 + Tooltip: + Name: Ion Cannon Uplink + Description: Enables use of the Ion Cannon + Buildable: + Queue: Defense + BuildPaletteOrder: 1000 + Prerequisites: gaplug, gatech, ~structures.gdi + Plug: + Type: plug.ioncannon + Power: + Amount: -100 ANYPOWER: Tooltip: diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index 4b6236e2a9..ce81145fc3 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -1015,9 +1015,21 @@ gaplug: Start: 8 Length: 8 Tick: 120 + idle-ioncannona: gaplug_f + Length: 15 + Tick: 120 + Reverses: true + Offset: -12, -42 + idle-ioncannonb: gaplug_f + Length: 15 + Reverses: true + Tick: 120 make: gtplugmk Length: 17 ShadowStart: 17 icon: plugicon Offset: 0, 0 UseTilesetCode: false + +gaplug3: + icon: rad3icon \ No newline at end of file