Extracted Repairing notification to RepairableBuilding.
This commit is contained in:
@@ -43,6 +43,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("The condition to grant to self while being repaired.")]
|
||||
public readonly string RepairCondition = null;
|
||||
|
||||
public readonly string RepairingNotification = null;
|
||||
|
||||
public override object Create(ActorInitializer init) { return new RepairableBuilding(init.Self, this); }
|
||||
}
|
||||
|
||||
@@ -112,7 +114,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return;
|
||||
|
||||
Repairers.Add(player);
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, player, "Speech", "Repairing", player.Faction.InternalName);
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, player, "Speech", Info.RepairingNotification, player.Faction.InternalName);
|
||||
UpdateCondition(self);
|
||||
}
|
||||
|
||||
|
||||
@@ -734,6 +734,7 @@
|
||||
RepairPercent: 40
|
||||
RepairStep: 1400
|
||||
PlayerExperience: 15
|
||||
RepairingNotification: Repairing
|
||||
WithDeathAnimation:
|
||||
DeathSequence: dead
|
||||
UseDeathTypeSuffix: false
|
||||
@@ -793,6 +794,7 @@
|
||||
RepairPercent: 40
|
||||
RepairStep: 1400
|
||||
PlayerExperience: 15
|
||||
RepairingNotification: Repairing
|
||||
EngineerRepairable:
|
||||
RevealsShroud:
|
||||
Range: 3c0
|
||||
|
||||
@@ -399,6 +399,7 @@
|
||||
RepairableBuilding:
|
||||
RepairStep: 500
|
||||
PlayerExperience: 25
|
||||
RepairingNotification: Repairing
|
||||
SpawnActorsOnSell:
|
||||
ActorTypes: light_inf
|
||||
MustBeDestroyed:
|
||||
|
||||
@@ -644,6 +644,7 @@
|
||||
RepairableBuilding:
|
||||
RepairStep: 700
|
||||
PlayerExperience: 25
|
||||
RepairingNotification: Repairing
|
||||
EngineerRepairable:
|
||||
AcceptsDeliveredCash:
|
||||
WithMakeAnimation:
|
||||
|
||||
@@ -354,6 +354,7 @@
|
||||
RepairableBuilding:
|
||||
RepairStep: 700
|
||||
PlayerExperience: 25
|
||||
RepairingNotification: Repairing
|
||||
WithDeathAnimation:
|
||||
DeathSequence: dead
|
||||
UseDeathTypeSuffix: false
|
||||
|
||||
Reference in New Issue
Block a user