using Content.Shared.Chemistry.Components; using Content.Shared.FixedPoint; namespace Content.Shared.Chemistry.EntitySystems; public abstract partial class SharedSolutionContainerSystem { /// /// Splits a solution removing a specified amount of each reagent, if available. /// /// The container to split the solution from. /// The amount of each reagent to split. /// public Solution SplitSolutionReagentsEvenly(Entity soln, FixedPoint2 quantity) { var (uid, comp) = soln; var solution = comp.Solution; var splitSol = solution.SplitSolutionReagentsEvenly(quantity); UpdateChemicals(soln); return splitSol; } }