From dffd2c87cd11b112fa75fd63f7ae752ba406a0e1 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 24 Nov 2015 22:57:33 +0000 Subject: [PATCH] Add upgraded tag to D2K production structures. --- mods/d2k/rules/player.yaml | 1 + mods/d2k/rules/structures.yaml | 55 ++++++++++++++++++++++++++++++++++ mods/d2k/sequences/misc.yaml | 3 ++ 3 files changed, 59 insertions(+) diff --git a/mods/d2k/rules/player.yaml b/mods/d2k/rules/player.yaml index 5b4cee568e..ffec06eb29 100644 --- a/mods/d2k/rules/player.yaml +++ b/mods/d2k/rules/player.yaml @@ -84,4 +84,5 @@ Player: Prerequisites: techlevel.low, techlevel.medium, techlevel.high, techlevel.superweapons EnemyWatcher: HarvesterInsurance: + GlobalUpgradeManager: diff --git a/mods/d2k/rules/structures.yaml b/mods/d2k/rules/structures.yaml index 06f9891cb6..a2d22fec38 100644 --- a/mods/d2k/rules/structures.yaml +++ b/mods/d2k/rules/structures.yaml @@ -84,6 +84,17 @@ construction_yard: Palette: d2k PrimaryBuilding: ProvidesPrerequisite@buildingname: + GlobalUpgradable: + Prerequisites: upgrade.conyard + Upgrades: stardecoration + WithDecoration@upgraded: + SelectionDecoration: true + Image: pips + Sequence: tag-upgraded + ReferencePoint: Top, Right + ZOffset: 256 + UpgradeTypes: stardecoration + UpgradeMinEnabledLevel: 1 wind_trap: Inherits: ^Building @@ -176,6 +187,17 @@ barracks: atreides: barracks.atreides ordos: barracks.ordos ProvidesPrerequisite@buildingname: + GlobalUpgradable: + Prerequisites: upgrade.barracks + Upgrades: stardecoration + WithDecoration@upgraded: + SelectionDecoration: true + Image: pips + Sequence: tag-upgraded + ReferencePoint: Top, Right + ZOffset: 256 + UpgradeTypes: stardecoration + UpgradeMinEnabledLevel: 1 refinery: Inherits: ^Building @@ -333,6 +355,17 @@ light_factory: Sequence: idle-top Power: Amount: -125 + GlobalUpgradable: + Prerequisites: upgrade.light + Upgrades: stardecoration + WithDecoration@upgraded: + SelectionDecoration: true + Image: pips + Sequence: tag-upgraded + ReferencePoint: Top, Right + ZOffset: 256 + UpgradeTypes: stardecoration + UpgradeMinEnabledLevel: 1 heavy_factory: Inherits: ^Building @@ -395,6 +428,17 @@ heavy_factory: ProvidesPrerequisite@buildingname: SelectionDecorations: VisualBounds: 96,96 + GlobalUpgradable: + Prerequisites: upgrade.heavy + Upgrades: stardecoration + WithDecoration@upgraded: + SelectionDecoration: true + Image: pips + Sequence: tag-upgraded + ReferencePoint: Top, Right + ZOffset: 256 + UpgradeTypes: stardecoration + UpgradeMinEnabledLevel: 1 outpost: Inherits: ^Building @@ -734,6 +778,17 @@ high_tech_factory: Amount: -75 SelectionDecorations: VisualBounds: 96,96 + GlobalUpgradable: + Prerequisites: upgrade.hightech + Upgrades: stardecoration + WithDecoration@upgraded: + SelectionDecoration: true + Image: pips + Sequence: tag-upgraded + ReferencePoint: Top, Right + ZOffset: 256 + UpgradeTypes: stardecoration + UpgradeMinEnabledLevel: 1 research_centre: Inherits: ^Building diff --git a/mods/d2k/sequences/misc.yaml b/mods/d2k/sequences/misc.yaml index ed4d05ad50..27381d3d54 100644 --- a/mods/d2k/sequences/misc.yaml +++ b/mods/d2k/sequences/misc.yaml @@ -111,6 +111,9 @@ pips: Start: 15 pip-green: DATA.R8 Start: 16 + tag-upgraded: DATA.R8 + Start: 110 + Offset: -8,-8 clock: idle: clock.shp