Files
wwdpublic/Content.Server/Cargo/Systems/CargoSystem.CVars.cs
VMSolidus 42145993f8 Fix Double Trade Station Bug (#351)
# Description

This fixes a bug introduced inadvertently by
https://github.com/Simple-Station/Einstein-Engines/pull/344 by adding a
CVar that makes it a choice to be made by our downstreams. Also, welcome
to our new CVar standard where they should be included in other systems.

---------

Co-authored-by: Danger Revolution! <142105406+DangerRevolution@users.noreply.github.com>
2024-05-12 06:22:03 +01:00

27 lines
962 B
C#

using Robust.Shared.Configuration;
namespace Content.Server.Cargo.Systems
{
public sealed partial class CargoSystem
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
}
[CVarDefs]
public sealed class CargoCVars
{
/// <summary>
/// Determines if a trade station spawns in its own FTL map.
/// </summary>
/// <remarks>
/// Set this to true if and only if you are disabling the normal spawning method.
/// Otherwise you get two trade stations.
/// This does NOTHING to the trade station that spawns on the default map.
/// To change that, in Resources/Prototypes/Entities/Stations/base.yml;
/// comment out the "trade:" section.
/// </remarks>
public static readonly CVarDef<bool> CreateCargoMap =
CVarDef.Create("cargo.tradestation_spawns_in_ftl_map", false, CVar.SERVERONLY);
}
}