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

@@ -138,13 +138,12 @@ OILB:
MOBILETENT:
Inherits: ^Vehicle
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableSupportUnit
Valued:
Cost: 2000
Tooltip:
Name: Mobile Tent
Selectable:
Priority: 4
DecorationBounds: 21,21
SelectionDecorations:
Health:

View File

@@ -224,20 +224,12 @@
GivesBounty:
RequiresCondition: global-bounty
^FlatSelectionMode:
Selectable:
PriorityModifiers: Ctrl
^LowPrioritySelectionMode:
Selectable:
PriorityModifiers: Ctrl, Alt
^Vehicle:
Inherits@1: ^ExistsInWorld
Inherits@2: ^IronCurtainable
Inherits@3: ^SpriteActor
Inherits@bounty: ^GlobalBounty
Inherits@SELECTION_MODE: ^FlatSelectionMode
Inherits@selection: ^SelectableCombatUnit
Huntable:
OwnerLostAction:
Action: Kill
@@ -321,7 +313,7 @@
Inherits@3: ^InfantryExperienceHospitalOverrides
Inherits@4: ^SpriteActor
Inherits@bounty: ^GlobalBounty
Inherits@SELECTION_MODE: ^FlatSelectionMode
Inherits@selection: ^SelectableCombatUnit
Huntable:
OwnerLostAction:
Action: Kill
@@ -492,7 +484,7 @@
Inherits@3: ^IronCurtainable
Inherits@4: ^SpriteActor
Inherits@bounty: ^GlobalBounty
Inherits@SELECTION_MODE: ^FlatSelectionMode
Inherits@selection: ^SelectableCombatUnit
Huntable:
OwnerLostAction:
Action: Kill
@@ -544,7 +536,7 @@
Inherits@1: ^ExistsInWorld
Inherits@4: ^SpriteActor
Inherits@bounty: ^GlobalBounty
Inherits@SELECTION_MODE: ^FlatSelectionMode
Inherits@selection: ^SelectableCombatUnit
Huntable:
OwnerLostAction:
Action: Kill
@@ -641,10 +633,9 @@
Inherits@3: ^SpriteActor
Inherits@shape: ^1x1Shape
Inherits@bounty: ^GlobalBounty
Inherits@selection: ^SelectableBuilding
SelectionDecorations:
WithSpriteControlGroupDecoration:
Selectable:
Priority: 3
Targetable:
TargetTypes: Ground, C4, DetonateAttack, Structure
Building:
@@ -729,6 +720,7 @@
^Defense:
Inherits: ^Building
Inherits@selection: ^SelectableCombatBuilding
Selectable:
Bounds: 24,24
Targetable:
@@ -1242,3 +1234,26 @@
Types: SpyInfiltrate
Power:
RequiresCondition: !disabled
^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

@@ -242,7 +242,7 @@ E4:
E6:
Inherits: ^Soldier
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Infantry
BuildAtProductionType: Soldier
@@ -283,8 +283,6 @@ E6:
EnterBlockedCursor: move-blocked
Voiced:
VoiceSet: EngineerVoice
Selectable:
Priority: 5
-AttackFrontal:
SPY:

View File

@@ -286,7 +286,7 @@ ARTY:
HARV:
Inherits: ^Vehicle
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableEconomicUnit
Buildable:
Queue: Vehicle
BuildPaletteOrder: 110
@@ -298,7 +298,6 @@ HARV:
Name: Ore Truck
GenericName: Harvester
Selectable:
Priority: 7
DecorationBounds: 42,42
SelectionDecorations:
Harvester:
@@ -340,7 +339,7 @@ HARV:
MCV:
Inherits: ^Vehicle
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Vehicle
BuildPaletteOrder: 210
@@ -352,7 +351,6 @@ MCV:
Tooltip:
Name: Mobile Construction Vehicle
Selectable:
Priority: 4
DecorationBounds: 42,42
SelectionDecorations:
Health:
@@ -467,7 +465,7 @@ APC:
MNLY:
Inherits: ^TrackedVehicle
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Vehicle
BuildPaletteOrder: 310
@@ -479,8 +477,6 @@ MNLY:
Name: Minelayer
UpdatesPlayerStatistics:
AddToArmyValue: true
Selectable:
Priority: 5
Health:
HP: 30000
Armor:
@@ -511,7 +507,7 @@ MNLY:
TRUK:
Inherits: ^Vehicle
Inherits@SELECTION_MODE: ^LowPrioritySelectionMode
Inherits@selection: ^SelectableSupportUnit
Buildable:
Queue: Vehicle
BuildPaletteOrder: 410
@@ -521,8 +517,6 @@ TRUK:
Cost: 500
Tooltip:
Name: Supply Truck
Selectable:
Priority: 6
Health:
HP: 11000
Armor: