mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 16:48:10 +03:00
# Description By extremely popular demand(Both internally, and from our downstreams), this PR reimplements Part Upgrading. Since some of the systems that this PR touches were substantially changed since the removal of Parts, I had to do a lot of very in depth by-hand edits of individual systems. Shockingly, the only one that really proved any trouble was Cloning System, so I'm genuinely surprised wizden didn't substantially touch any of these codes since removing parts.. # Changelog 🆑 - add: Part Upgrading has returned! --------- Signed-off-by: VMSolidus <evilexecutive@gmail.com> Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using Content.Shared.Atmos;
|
|
using Content.Shared.Construction.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Atmos.Piping.Binary.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class GasRecyclerComponent : Component
|
|
{
|
|
[DataField("reacting")]
|
|
public Boolean Reacting { get; set; } = false;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("inlet")]
|
|
public string InletName { get; set; } = "inlet";
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("outlet")]
|
|
public string OutletName { get; set; } = "outlet";
|
|
|
|
[DataField]
|
|
public float MinTemp = 300 + Atmospherics.T0C;
|
|
|
|
[DataField]
|
|
public float BaseMinTemp = 300 + Atmospherics.T0C;
|
|
|
|
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
|
public string MachinePartMinTemp = "Capacitor";
|
|
|
|
[DataField]
|
|
public float PartRatingMinTempMultiplier = 0.95f;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float MinPressure = 30 * Atmospherics.OneAtmosphere;
|
|
|
|
[DataField]
|
|
public float BaseMinPressure = 30 * Atmospherics.OneAtmosphere;
|
|
|
|
[DataField(customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>))]
|
|
public string MachinePartMinPressure = "Manipulator";
|
|
|
|
[DataField]
|
|
public float PartRatingMinPressureMultiplier = 0.8f;
|
|
}
|
|
}
|