Remove the default notification from Infiltrates.

This commit is contained in:
Paul Chote
2018-11-24 23:07:52 +00:00
committed by Oliver Brakmann
parent 451a38338b
commit 7ddcc2e958
4 changed files with 10 additions and 3 deletions

View File

@@ -23,9 +23,10 @@ namespace OpenRA.Mods.Cnc.Traits
{ {
public class InfiltratesInfo : ConditionalTraitInfo public class InfiltratesInfo : ConditionalTraitInfo
{ {
public readonly BitSet<TargetableType> Types; public readonly BitSet<TargetableType> Types = default(BitSet<TargetableType>);
[VoiceReference] public readonly string Voice = "Action"; [VoiceReference]
public readonly string Voice = "Action";
[Desc("What diplomatic stances can be infiltrated by this actor.")] [Desc("What diplomatic stances can be infiltrated by this actor.")]
public readonly Stance ValidStances = Stance.Neutral | Stance.Enemy; public readonly Stance ValidStances = Stance.Neutral | Stance.Enemy;
@@ -36,7 +37,7 @@ namespace OpenRA.Mods.Cnc.Traits
[NotificationReference("Speech")] [NotificationReference("Speech")]
[Desc("Notification to play when a building is infiltrated.")] [Desc("Notification to play when a building is infiltrated.")]
public readonly string Notification = "BuildingInfiltrated"; public readonly string Notification = null;
[Desc("Experience to grant to the infiltrating player.")] [Desc("Experience to grant to the infiltrating player.")]
public readonly int PlayerExperience = 0; public readonly int PlayerExperience = 0;

View File

@@ -76,6 +76,9 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
}), }),
new TraitWrapper("PowerManager", new Dictionary<string, string> { new TraitWrapper("PowerManager", new Dictionary<string, string> {
{ "SpeechNotification", "LowPower" } { "SpeechNotification", "LowPower" }
}),
new TraitWrapper("Infiltrates", new Dictionary<string, string> {
{ "Notification", "BuildingInfiltrated" }
}) })
}; };

View File

@@ -289,6 +289,7 @@ SPY:
DisguisedCondition: disguise DisguisedCondition: disguise
Infiltrates: Infiltrates:
Types: SpyInfiltrate Types: SpyInfiltrate
Notification: BuildingInfiltrated
PlayerExperience: 50 PlayerExperience: 50
AutoTarget: AutoTarget:
InitialStance: HoldFire InitialStance: HoldFire
@@ -525,6 +526,7 @@ THF:
Passenger: Passenger:
PipType: Blue PipType: Blue
Infiltrates: Infiltrates:
Notification: BuildingInfiltrated
PlayerExperience: 50 PlayerExperience: 50
Voiced: Voiced:
VoiceSet: ThiefVoice VoiceSet: ThiefVoice

View File

@@ -79,6 +79,7 @@ CHAMSPY:
RequiresCondition: disguise RequiresCondition: disguise
Infiltrates: Infiltrates:
Types: SpyInfiltrate Types: SpyInfiltrate
Notification: BuildingInfiltrated
-WithInfantryBody: -WithInfantryBody:
WithDisguisingInfantryBody: WithDisguisingInfantryBody:
IdleSequences: idle1,idle2 IdleSequences: idle1,idle2