Add prediction for puddle and spillable examines (#25794)
Prediction for puddle and spillable examines
This commit is contained in:
17
Content.Shared/Fluids/SharedPuddleSystem.Evaporation.cs
Normal file
17
Content.Shared/Fluids/SharedPuddleSystem.Evaporation.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
|
||||
namespace Content.Shared.Fluids;
|
||||
|
||||
public abstract partial class SharedPuddleSystem
|
||||
{
|
||||
[ValidatePrototypeId<ReagentPrototype>]
|
||||
private const string Water = "Water";
|
||||
|
||||
public static readonly string[] EvaporationReagents = [Water];
|
||||
|
||||
public bool CanFullyEvaporate(Solution solution)
|
||||
{
|
||||
return solution.GetTotalPrototypeQuantity(EvaporationReagents) == solution.Volume;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user