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