mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +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>
30 lines
853 B
C#
30 lines
853 B
C#
namespace Content.Server.Chemistry.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class SolutionHeaterComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How much heat is added per second to the solution, with no upgrades.
|
|
/// </summary>
|
|
[DataField]
|
|
public float BaseHeatPerSecond = 120;
|
|
|
|
/// <summary>
|
|
/// How much heat is added per second to the solution, taking upgrades into account.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
public float HeatPerSecond;
|
|
|
|
/// <summary>
|
|
/// The machine part that affects the heat multiplier.
|
|
/// </summary>
|
|
[DataField]
|
|
public string MachinePartHeatMultiplier = "Capacitor";
|
|
|
|
/// <summary>
|
|
/// How much each upgrade multiplies the heat by.
|
|
/// </summary>
|
|
[DataField]
|
|
public float PartRatingHeatMultiplier = 1.5f;
|
|
}
|