Localise DummyBot

This commit is contained in:
Gustas
2025-03-30 12:08:29 +03:00
committed by Paul Chote
parent 39aec39364
commit 87cff1f6f1
3 changed files with 5 additions and 3 deletions

View File

@@ -17,8 +17,10 @@ namespace OpenRA.Mods.Common.Traits
[TraitLocation(SystemActors.Player)] [TraitLocation(SystemActors.Player)]
public sealed class DummyBotInfo : TraitInfo, IBotInfo public sealed class DummyBotInfo : TraitInfo, IBotInfo
{ {
[FieldLoader.Require]
[FluentReference]
[Desc("Human-readable name this bot uses.")] [Desc("Human-readable name this bot uses.")]
public readonly string Name = "Unnamed Bot"; public readonly string Name = null;
[FieldLoader.Require] [FieldLoader.Require]
[Desc("Internal id for this bot.")] [Desc("Internal id for this bot.")]

View File

@@ -22,5 +22,5 @@ actor-sniper =
actor-mig-bomber-name = MiG Bomber actor-mig-bomber-name = MiG Bomber
## rules.yaml ## rules.yaml
bot-lonestarai-name = Lonestar AI
actor-powerproxy-parabombs-description = A MiG bomber drops a load of parachuted bombs on your target. actor-powerproxy-parabombs-description = A MiG bomber drops a load of parachuted bombs on your target.

View File

@@ -114,7 +114,7 @@ Player:
-ModularBot@NavalAI: -ModularBot@NavalAI:
-ModularBot@TurtleAI: -ModularBot@TurtleAI:
DummyBot@LonestarAI: DummyBot@LonestarAI:
Name: Lonestar AI Name: bot-lonestarai-name
Type: lonestar Type: lonestar
LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY: LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY:
Visible: False Visible: False