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 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.")]
public readonly Stance ValidStances = Stance.Neutral | Stance.Enemy;
@@ -36,7 +37,7 @@ namespace OpenRA.Mods.Cnc.Traits
[NotificationReference("Speech")]
[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.")]
public readonly int PlayerExperience = 0;

View File

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

View File

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

View File

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