Solution rejig (#12428)
This commit is contained in:
@@ -211,7 +211,7 @@ namespace Content.Server.Botany.Systems
|
||||
|
||||
var split =_solutionSystem.Drain(solutionEntity, solution, amount);
|
||||
|
||||
if (split.TotalVolume == 0)
|
||||
if (split.Volume == 0)
|
||||
{
|
||||
_popupSystem.PopupCursor(Loc.GetString("plant-holder-component-no-plant-message",
|
||||
("owner", args.Used)), args.User);
|
||||
@@ -220,7 +220,7 @@ namespace Content.Server.Botany.Systems
|
||||
|
||||
_popupSystem.PopupCursor(Loc.GetString("plant-holder-component-spray-message",
|
||||
("owner", uid),
|
||||
("amount", split.TotalVolume)), args.User, PopupType.Medium);
|
||||
("amount", split.Volume)), args.User, PopupType.Medium);
|
||||
|
||||
_solutionSystem.TryAddSolution(targetEntity, targetSolution, split);
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace Content.Server.Botany.Systems
|
||||
{
|
||||
// This deliberately discards overfill.
|
||||
_solutionSystem.TryAddSolution(args.Used, solution2,
|
||||
_solutionSystem.SplitSolution(args.Used, solution2, solution2.TotalVolume));
|
||||
_solutionSystem.SplitSolution(args.Used, solution2, solution2.Volume));
|
||||
|
||||
ForceUpdateByExternalCause(uid, component);
|
||||
}
|
||||
@@ -780,7 +780,7 @@ namespace Content.Server.Botany.Systems
|
||||
if (!_solutionSystem.TryGetSolution(uid, component.SoilSolutionName, out var solution))
|
||||
return;
|
||||
|
||||
if (solution.TotalVolume > 0 && component.MutationLevel < 25)
|
||||
if (solution.Volume > 0 && component.MutationLevel < 25)
|
||||
{
|
||||
var amt = FixedPoint2.New(1);
|
||||
foreach (var (reagentId, quantity) in _solutionSystem.RemoveEachReagent(uid, solution, amt))
|
||||
|
||||
Reference in New Issue
Block a user