Files
crystall-punk-14/Content.Client/_CP14/Shitcode/CP14EdSystem.cs
Ed f787bb5ea4 Ice bow artifact (#1200)
* pvs

* fix tradepost

* ice bow artifact
2025-04-19 17:24:57 +03:00

28 lines
946 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Content.Shared.CCVar;
using Robust.Shared;
using Robust.Shared.Configuration;
namespace Content.Client._CP14.Shitcode;
/// <summary>
/// Эта система - сборник разного мелкого барахла, который слишком мелкий чтобы иметь свои собственные системы. В идеале в будущем разнести по отдельным файлам.
/// </summary>
public sealed class CP14EdSystem : EntitySystem
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
public override void Initialize()
{
_cfg.SetCVar(CVars.EntitiesCategoryFilter, "ForkFiltered");
_cfg.OnValueChanged(CCVars.Language, OnLanguageChange, true);
_cfg.SetCVar(CVars.LocCultureName, _cfg.GetCVar(CCVars.Language));
}
private void OnLanguageChange(string obj)
{
_cfg.SetCVar(CVars.LocCultureName, obj);
}
}