From 87cff1f6f1fd30f08eda95ce917eabceb6d4ee27 Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Sun, 30 Mar 2025 12:08:29 +0300 Subject: [PATCH] Localise DummyBot --- OpenRA.Mods.Common/Traits/Player/DummyBot.cs | 4 +++- mods/ra/maps/fort-lonestar/map.ftl | 2 +- mods/ra/maps/fort-lonestar/rules.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Player/DummyBot.cs b/OpenRA.Mods.Common/Traits/Player/DummyBot.cs index 64a6de7b81..a98cc51643 100644 --- a/OpenRA.Mods.Common/Traits/Player/DummyBot.cs +++ b/OpenRA.Mods.Common/Traits/Player/DummyBot.cs @@ -17,8 +17,10 @@ namespace OpenRA.Mods.Common.Traits [TraitLocation(SystemActors.Player)] public sealed class DummyBotInfo : TraitInfo, IBotInfo { + [FieldLoader.Require] + [FluentReference] [Desc("Human-readable name this bot uses.")] - public readonly string Name = "Unnamed Bot"; + public readonly string Name = null; [FieldLoader.Require] [Desc("Internal id for this bot.")] diff --git a/mods/ra/maps/fort-lonestar/map.ftl b/mods/ra/maps/fort-lonestar/map.ftl index 186db41629..0aac7310c4 100644 --- a/mods/ra/maps/fort-lonestar/map.ftl +++ b/mods/ra/maps/fort-lonestar/map.ftl @@ -22,5 +22,5 @@ actor-sniper = actor-mig-bomber-name = MiG Bomber ## rules.yaml +bot-lonestarai-name = Lonestar AI actor-powerproxy-parabombs-description = A MiG bomber drops a load of parachuted bombs on your target. - diff --git a/mods/ra/maps/fort-lonestar/rules.yaml b/mods/ra/maps/fort-lonestar/rules.yaml index 19305e34ba..1a5212fecd 100644 --- a/mods/ra/maps/fort-lonestar/rules.yaml +++ b/mods/ra/maps/fort-lonestar/rules.yaml @@ -114,7 +114,7 @@ Player: -ModularBot@NavalAI: -ModularBot@TurtleAI: DummyBot@LonestarAI: - Name: Lonestar AI + Name: bot-lonestarai-name Type: lonestar LobbyPrerequisiteCheckbox@GLOBALFACTUNDEPLOY: Visible: False