Gas Condensers (#22436)

Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
This commit is contained in:
Nemanja
2023-12-13 22:35:44 -05:00
committed by GitHub
parent 0f2e9ef4df
commit 0917a9d380
21 changed files with 294 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using Content.Server.Atmos.Piping.Unary.EntitySystems;
namespace Content.Server.Atmos.Piping.Unary.Components;
/// <summary>
/// Used for an entity that converts moles of gas into units of reagent.
/// </summary>
[RegisterComponent]
[Access(typeof(GasCondenserSystem))]
public sealed partial class GasCondenserComponent : Component
{
/// <summary>
/// The ID for the pipe node.
/// </summary>
[DataField]
public string Inlet = "pipe";
/// <summary>
/// The ID for the solution.
/// </summary>
[DataField]
public string SolutionId = "tank";
/// <summary>
/// For a condenser, how many U of reagents are given per each mole of gas.
/// </summary>
/// <remarks>
/// Derived from a standard of 500u per canister:
/// 400u / 1871.71051 moles per canister
/// </remarks>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float MolesToReagentMultiplier = 0.2137f;
}