Add selection tiers as inheritable templates

This commit is contained in:
Ivaylo Draganov
2019-07-09 00:08:07 +03:00
committed by reaperrr
parent 088919fecc
commit 93e42b0b27
17 changed files with 137 additions and 96 deletions

View File

@@ -163,18 +163,10 @@
AttackMove:
AssaultMoveCondition: assault-move
^FlatSelectionMode:
Selectable:
PriorityModifiers: Ctrl
^LowPrioritySelectionMode:
Selectable:
PriorityModifiers: Ctrl, Alt
^Vehicle:
Inherits@1: ^ExistsInWorld
Inherits@2: ^SpriteActor
Inherits@SELECTION_MODE: ^FlatSelectionMode
Inherits@selection: ^SelectableCombatUnit
Tooltip:
GenericName: Unit
Huntable:
@@ -279,7 +271,7 @@
Inherits@1: ^ExistsInWorld
Inherits@2: ^GainsExperience
Inherits@3: ^SpriteActor
Inherits@SELECTION_MODE: ^FlatSelectionMode
Inherits@selection: ^SelectableCombatUnit
Tooltip:
GenericName: Unit
Huntable:
@@ -374,6 +366,7 @@
^Building:
Inherits@1: ^ExistsInWorld
Inherits@2: ^SpriteActor
Inherits@selection: ^SelectableBuilding
Tooltip:
GenericName: Structure
Huntable:
@@ -381,8 +374,6 @@
Action: Kill
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Priority: 2
RevealsShroud:
Targetable:
TargetTypes: Ground, C4, Structure
@@ -464,6 +455,7 @@
^Defense:
Inherits: ^Building
Inherits@selection: ^SelectableCombatBuilding
WithSpriteTurret:
AttackTurreted:
RenderRangeCircle:
@@ -529,3 +521,26 @@
WithBuildingRepairDecoration:
Offsets:
powerdown: -10, 0
^SelectableCombatUnit:
Selectable:
Priority: 10
PriorityModifiers: Ctrl
^SelectableSupportUnit:
Selectable:
Priority: 8
PriorityModifiers: Ctrl, Alt
^SelectableEconomicUnit:
Selectable:
Priority: 6
PriorityModifiers: Ctrl, Alt
^SelectableCombatBuilding:
Selectable:
Priority: 4
^SelectableBuilding:
Selectable:
Priority: 2

View File

@@ -24,6 +24,7 @@ light_inf:
engineer:
Inherits: ^Infantry
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Infantry
BuildPaletteOrder: 30

View File

@@ -799,7 +799,6 @@ medium_gun_turret:
Selectable:
Bounds: 32,32
DecorationBounds: 32,40,0,-8
Priority: 3
Health:
HP: 27000
Armor:
@@ -847,7 +846,6 @@ large_gun_turret:
Selectable:
Bounds: 32,32
DecorationBounds: 32,40,0,-8
Priority: 3
Health:
HP: 30000
Armor:

View File

@@ -1,6 +1,6 @@
mcv:
Inherits: ^Tank
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableSupportUnit
Buildable:
Prerequisites: repair_pad, upgrade.heavy, ~techlevel.medium
Queue: Armor
@@ -14,7 +14,6 @@ mcv:
Name: Mobile Construction Vehicle
Selectable:
Class: mcv
Priority: 3
DecorationBounds: 42,42
Health:
HP: 45000
@@ -51,7 +50,7 @@ mcv:
harvester:
Inherits: ^Tank
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableEconomicUnit
Buildable:
Queue: Armor
Prerequisites: refinery
@@ -65,7 +64,6 @@ harvester:
Name: Spice Harvester
Selectable:
Class: harvester
Priority: 7
DecorationBounds: 42,42
Harvester:
PipCount: 7