Miners' prototype have been changed to reflect this (I read somewhere that we have about 1 atmos tick/0.5s, my tests show more like 1/0.53 but that looks close enough). This also means that miner's spawnAmount is now expressed in mol/s. See: #18781
36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using Content.Shared.Atmos;
|
|
|
|
namespace Content.Server.Atmos.Piping.Other.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class GasMinerComponent : Component
|
|
{
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
public bool Broken { get; set; } = false;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("maxExternalAmount")]
|
|
public float MaxExternalAmount { get; set; } = float.PositiveInfinity;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("maxExternalPressure")]
|
|
public float MaxExternalPressure { get; set; } = Atmospherics.GasMinerDefaultMaxExternalPressure;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("spawnGas")]
|
|
public Gas? SpawnGas { get; set; } = null;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("spawnTemperature")]
|
|
public float SpawnTemperature { get; set; } = Atmospherics.T20C;
|
|
|
|
/// <summary>
|
|
/// Number of moles created per second when the miner is working.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("spawnAmount")]
|
|
public float SpawnAmount { get; set; } = Atmospherics.MolesCellStandard * 20f;
|
|
}
|
|
}
|