mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
# 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>
27 lines
962 B
C#
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);
|
|
}
|
|
}
|