Automatic Open tests (#1142)

* auto eng obt

* Update CP14RoundEndSystem.CBT.cs

* Update CP14EdSystem.cs

* cbt cbt!

* Update CP14RoundEndSystem.CBT.cs
This commit is contained in:
Ed
2025-04-15 23:09:49 +03:00
committed by GitHub
parent c61a76fa69
commit b40cbfb5d7
10 changed files with 141 additions and 45 deletions

View File

@@ -1,10 +1,13 @@
using Content.Shared.CCVar;
using Content.Shared.Localizations;
using Robust.Client.GameObjects;
using Robust.Shared.Configuration;
namespace Content.Client._CP14.Localization;
public sealed class CP14LocalizationVisualsSystem : EntitySystem
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
public override void Initialize()
{
base.Initialize();
@@ -19,7 +22,7 @@ public sealed class CP14LocalizationVisualsSystem : EntitySystem
foreach (var (map, pDictionary) in visuals.Comp.MapStates)
{
if (!pDictionary.TryGetValue(ContentLocalizationManager.Culture, out var state))
if (!pDictionary.TryGetValue(_cfg.GetCVar(CCVars.Language), out var state))
return;
if (sprite.LayerMapTryGet(map, out _))