Fix missing init-only modifier.

This commit is contained in:
Matthias Mailänder
2023-03-05 11:03:39 +01:00
committed by Gustas
parent 1692f32ffc
commit 43d1a20d8c
3 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string Notification = "BaseAttack";
[Desc("Text notification to display.")]
public string TextNotification = null;
public readonly string TextNotification = null;
[NotificationReference("Speech")]
[Desc("Speech notification to play to allies when under attack.",
@@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string AllyNotification = null;
[Desc("Text notification to display to allies when under attack.")]
public string AllyTextNotification = null;
public readonly string AllyTextNotification = null;
public override object Create(ActorInitializer init) { return new BaseAttackNotifier(init.Self, this); }
}

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string Notification = "HarvesterAttack";
[Desc("Text notification to display.")]
public string TextNotification = null;
public readonly string TextNotification = null;
public override object Create(ActorInitializer init) { return new HarvesterAttackNotifier(init.Self, this); }
}

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string Notification = null;
[Desc("Text notification to display.")]
public string TextNotification = null;
public readonly string TextNotification = null;
[Desc("Whether to show the cash tick indicators rising from the actor.")]
public readonly bool ShowTicks = true;