PrimaryBuilding notification now optional.
This commit is contained in:
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly string PrimaryCondition = null;
|
||||
|
||||
[Desc("The speech notification to play when selecting a primary building.")]
|
||||
public readonly string SelectionNotification = "PrimaryBuildingSelected";
|
||||
public readonly string SelectionNotification = null;
|
||||
|
||||
[Desc("List of production queues for which the primary flag should be set.",
|
||||
"If empty, the list given in the `Produces` property of the `Production` trait will be used.")]
|
||||
|
||||
@@ -103,6 +103,7 @@ construction_yard:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
ProductionQueues: Building
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProvidesPrerequisite@buildingname:
|
||||
GrantConditionOnPrerequisite:
|
||||
Prerequisites: upgrade.conyard
|
||||
@@ -211,6 +212,7 @@ barracks:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
ProductionQueues: Infantry
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
ProvidesPrerequisite@atreides:
|
||||
Prerequisite: barracks.atreides
|
||||
@@ -411,6 +413,7 @@ light_factory:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
ProductionQueues: Vehicle
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
ProvidesPrerequisite@atreides:
|
||||
Prerequisite: light.atreides
|
||||
@@ -497,6 +500,7 @@ heavy_factory:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
ProductionQueues: Armor
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
ProvidesPrerequisite@atreides:
|
||||
Prerequisite: heavy.atreides
|
||||
@@ -659,6 +663,7 @@ starport:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
ProductionQueues: Starport
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProvidesPrerequisite@atreides:
|
||||
Prerequisite: starport.atreides
|
||||
Factions: atreides
|
||||
@@ -920,6 +925,7 @@ high_tech_factory:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
ProductionQueues: Aircraft
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
Exit:
|
||||
SpawnOffset: 0,0,728
|
||||
ExitCell: 0,0
|
||||
@@ -1102,6 +1108,7 @@ palace:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
RequiresCondition: atreides || ordos
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
WithTextDecoration@primary:
|
||||
RequiresSelection: true
|
||||
Text: PRIMARY
|
||||
|
||||
@@ -187,6 +187,7 @@ SPEN:
|
||||
Produces: Ship, Submarine
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
-SpawnActorsOnSell:
|
||||
RepairsUnits:
|
||||
HpPerStep: 1000
|
||||
@@ -302,6 +303,7 @@ SYRD:
|
||||
Produces: Ship, Boat
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
-SpawnActorsOnSell:
|
||||
RepairsUnits:
|
||||
HpPerStep: 1000
|
||||
@@ -1027,6 +1029,7 @@ WEAP:
|
||||
Prerequisite: vehicles.ukraine
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
Power:
|
||||
Amount: -30
|
||||
@@ -1287,6 +1290,7 @@ HPAD:
|
||||
ProductionBar:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
Power:
|
||||
Amount: -10
|
||||
ProvidesPrerequisite@allies:
|
||||
@@ -1455,6 +1459,7 @@ AFLD:
|
||||
SupportPowerChargeBar:
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
Power:
|
||||
Amount: -20
|
||||
ProvidesPrerequisite@buildingname:
|
||||
@@ -1642,6 +1647,7 @@ BARR:
|
||||
Produces: Infantry, Soldier
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
ProvidesPrerequisite:
|
||||
Prerequisite: barracks
|
||||
@@ -1721,6 +1727,7 @@ KENN:
|
||||
Produces: Infantry, Dog
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
-SpawnActorsOnSell:
|
||||
Power:
|
||||
@@ -1778,6 +1785,7 @@ TENT:
|
||||
Produces: Infantry, Soldier
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
ProvidesPrerequisite@barracks:
|
||||
Prerequisite: barracks
|
||||
|
||||
@@ -103,6 +103,7 @@ GAPILE:
|
||||
PauseOnCondition: empdisable
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
WithIdleOverlay@LIGHTS:
|
||||
Sequence: idle-lights
|
||||
@@ -163,6 +164,7 @@ GAWEAP:
|
||||
PauseOnCondition: empdisable
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
WithIdleOverlay@ROOF:
|
||||
Sequence: idle-roof
|
||||
@@ -218,6 +220,7 @@ GAHPAD:
|
||||
PauseOnCondition: empdisable
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
Reservable:
|
||||
RepairsUnits:
|
||||
HpPerStep: 1000
|
||||
|
||||
@@ -117,6 +117,7 @@ NAHAND:
|
||||
PauseOnCondition: empdisable
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
WithIdleOverlay@LIGHTS:
|
||||
Sequence: idle-lights
|
||||
@@ -175,6 +176,7 @@ NAWEAP:
|
||||
PauseOnCondition: empdisable
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
ProductionBar:
|
||||
WithIdleOverlay@ROOF:
|
||||
Sequence: idle-roof
|
||||
@@ -226,6 +228,7 @@ NAHPAD:
|
||||
PauseOnCondition: empdisable
|
||||
PrimaryBuilding:
|
||||
PrimaryCondition: primary
|
||||
SelectionNotification: PrimaryBuildingSelected
|
||||
Reservable:
|
||||
RepairsUnits:
|
||||
HpPerStep: 1000
|
||||
|
||||
Reference in New Issue
Block a user