Fluid spread refactor (#11908)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fix undefined
This commit is contained in:
Ygg01
2022-11-15 12:30:59 +01:00
committed by GitHub
parent 89b959f931
commit 75ea093d78
17 changed files with 719 additions and 336 deletions

View File

@@ -53,10 +53,7 @@ namespace Content.Server.Fluids.Components
/// How much should this puddle's opacity be multiplied by?
/// Useful for puddles that have a high overflow volume but still want to be mostly opaque.
/// </summary>
[DataField("opacityModifier")]
public float OpacityModifier = 1.0f;
public FixedPoint2 OverflowLeft => CurrentVolume - OverflowVolume;
[DataField("opacityModifier")] public float OpacityModifier = 1.0f;
[DataField("solution")] public string SolutionName { get; set; } = DefaultSolutionName;
}