diff --git a/Content.Shared/Chemistry/EntitySystems/SharedSolutionContainerSystem.cs b/Content.Shared/Chemistry/EntitySystems/SharedSolutionContainerSystem.cs index 83de0970ec..5cc12a9b69 100644 --- a/Content.Shared/Chemistry/EntitySystems/SharedSolutionContainerSystem.cs +++ b/Content.Shared/Chemistry/EntitySystems/SharedSolutionContainerSystem.cs @@ -510,20 +510,20 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem /// Removes reagent from a container. /// /// - /// Solution container from which we are removing reagent + /// Solution container from which we are removing reagent. /// The reagent to remove. - /// If the reagent to remove was found in the container. - public bool RemoveReagent(Entity soln, ReagentQuantity reagentQuantity) + /// The amount of reagent that was removed. + public FixedPoint2 RemoveReagent(Entity soln, ReagentQuantity reagentQuantity) { var (uid, comp) = soln; var solution = comp.Solution; var quant = solution.RemoveReagent(reagentQuantity); if (quant <= FixedPoint2.Zero) - return false; + return FixedPoint2.Zero; UpdateChemicals(soln); - return true; + return quant; } /// @@ -533,8 +533,8 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem /// Solution container from which we are removing reagent /// The Id of the reagent to remove. /// The amount of reagent to remove. - /// If the reagent to remove was found in the container. - public bool RemoveReagent(Entity soln, string prototype, FixedPoint2 quantity, List? data = null) + /// The amount of reagent that was removed. + public FixedPoint2 RemoveReagent(Entity soln, string prototype, FixedPoint2 quantity, List? data = null) { return RemoveReagent(soln, new ReagentQuantity(prototype, quantity, data)); } @@ -546,8 +546,8 @@ public abstract partial class SharedSolutionContainerSystem : EntitySystem /// Solution container from which we are removing reagent /// The reagent to remove. /// The amount of reagent to remove. - /// If the reagent to remove was found in the container. - public bool RemoveReagent(Entity soln, ReagentId reagentId, FixedPoint2 quantity) + /// The amount of reagent that was removed. + public FixedPoint2 RemoveReagent(Entity soln, ReagentId reagentId, FixedPoint2 quantity) { return RemoveReagent(soln, new ReagentQuantity(reagentId, quantity)); }