Add prediction for puddle and spillable examines (#25794)
Prediction for puddle and spillable examines
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using Content.Server.Fluids.Components;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Fluids.Components;
|
||||
|
||||
@@ -10,11 +8,6 @@ public sealed partial class PuddleSystem
|
||||
{
|
||||
private static readonly TimeSpan EvaporationCooldown = TimeSpan.FromSeconds(1);
|
||||
|
||||
[ValidatePrototypeId<ReagentPrototype>]
|
||||
private const string Water = "Water";
|
||||
|
||||
public static string[] EvaporationReagents = new[] { Water };
|
||||
|
||||
private void OnEvaporationMapInit(Entity<EvaporationComponent> entity, ref MapInitEvent args)
|
||||
{
|
||||
entity.Comp.NextTick = _timing.CurTime + EvaporationCooldown;
|
||||
@@ -64,9 +57,4 @@ public sealed partial class PuddleSystem
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanFullyEvaporate(Solution solution)
|
||||
{
|
||||
return solution.GetTotalPrototypeQuantity(EvaporationReagents) == solution.Volume;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user