This commit is contained in:
BIGZi0348
2024-12-28 18:22:04 +03:00
parent b9f7f147ca
commit eb43311fb5
2 changed files with 15 additions and 13 deletions

View File

@@ -7,6 +7,7 @@ using Content.Server._White.GhostRecruitment;
using Content.Server.GameTicking.Components; using Content.Server.GameTicking.Components;
using Content.Shared.Administration.Logs; using Content.Shared.Administration.Logs;
using Content.Shared.Database; using Content.Shared.Database;
using Content.Shared._White;
using Content.Shared._White.GhostRecruitment; using Content.Shared._White.GhostRecruitment;
using JetBrains.Annotations; using JetBrains.Annotations;
using Robust.Server.GameObjects; using Robust.Server.GameObjects;
@@ -147,7 +148,8 @@ public sealed class ERTRecruitmentRule : StationEventSystem<ERTRecruitmentRuleCo
private void OnRoundStart(RoundStartingEvent ev) private void OnRoundStart(RoundStartingEvent ev)
{ {
//if (_cfgManager.GetCVar(WhiteCVars.LoadErtMap)) // Disabled in dev - Resources/ConfigPresets/Build/development.toml
if (_cfgManager.GetCVar(WhiteCVars.LoadErtMap))
SpawnMap(); SpawnMap();
} }

View File

@@ -313,7 +313,7 @@ public sealed class WhiteCVars
/// <summary> /// <summary>
/// Should load a ERT map? /// Should load a ERT map?
/// </summary> /// </summary>
public static readonly CVarDef<bool> LoadErtMap = CVarDef.Create("white.ert_load", false, CVar.SERVERONLY); public static readonly CVarDef<bool> LoadErtMap = CVarDef.Create("white.ert_load", true, CVar.SERVERONLY);
public static readonly CVarDef<bool> LogChatActions = public static readonly CVarDef<bool> LogChatActions =
CVarDef.Create("white.log_to_chat", true, CVar.CLIENT | CVar.ARCHIVE | CVar.REPLICATED); CVarDef.Create("white.log_to_chat", true, CVar.CLIENT | CVar.ARCHIVE | CVar.REPLICATED);