[Dependency] private readonly PopupSystem _popup = default!;
[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly SharedBodySystem _body = default!; //bobby
- [Dependency] private readonly SpillableSystem _spillable = default!;
+ [Dependency] private readonly PuddleSystem _puddle = default!;
[Dependency] private readonly StackSystem _stack = default!;
/// <inheritdoc/>
if (overflow.Volume > 0)
{
- _spillable.SpillAt(reclaimer, overflow, reclaimerComponent.PuddleId, transformComponent: xform);
+ _puddle.TrySpillAt(reclaimer, overflow, out _, transformComponent: xform);
}
}
}
// of an edge so we'll let them handle it.
if (!groupUpdates.TryGetValue(node.NodeGroup, out var updates))
{
- var spreadEv = new SpreadGroupUpdateRate()
- {
- Name = node.Name,
- };
+ var spreadEv = new SpreadGroupUpdateRate(node.Name);
RaiseLocalEvent(ref spreadEv);
updates = (int) (spreadEv.UpdatesPerSecond * SpreadCooldown / TimeSpan.FromSeconds(1));
}
[DataField("solutionContainerId"), ViewVariables(VVAccess.ReadWrite)]
public string SolutionContainerId = "output";
- /// <summary>
- /// The prototype for the puddle
- /// </summary>
- [DataField("puddleId", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>)), ViewVariables(VVAccess.ReadWrite)]
- public string PuddleId = "PuddleSmear";
-
/// <summary>
/// The solution itself.
/// </summary>