Puddle Evaporation Fix (#6584)

This commit is contained in:
Willhelm53
2022-02-10 15:07:21 -06:00
committed by GitHub
parent 08b773d394
commit 8d29047a3a
5 changed files with 37 additions and 14 deletions

View File

@@ -11,6 +11,12 @@ namespace Content.Server.Fluids.Components
[Friend(typeof(EvaporationSystem))]
public sealed class EvaporationComponent : Component
{
/// <summary>
/// Is this entity actively evaporating? This toggle lets us pause evaporation under certain conditions.
/// </summary>
[DataField("evaporationToggle")]
public bool EvaporationToggle = true;
/// <summary>
/// The time that it will take this puddle to lose one fixed unit of solution, in seconds.
/// </summary>
@@ -32,10 +38,10 @@ namespace Content.Server.Fluids.Components
/// <summary>
/// Upper limit below which puddle won't evaporate. Useful when wanting to make sure large puddle will
/// remain forever. Defaults to <see cref="PuddleComponent.DefaultOverflowVolume"/>.
/// remain forever. Defaults to 100.
/// </summary>
[DataField("upperLimit")]
public FixedPoint2 UpperLimit = PuddleComponent.DefaultOverflowVolume;
public FixedPoint2 UpperLimit = FixedPoint2.New(100); //TODO: Consider setting this back to PuddleComponent.DefaultOverflowVolume once that behaviour is fixed.
/// <summary>
/// The time accumulated since the start.