if (solution.Volume > 0 && component.MutationLevel < 25)
{
- var amt = FixedPoint2.New(1);
- foreach (var entry in _solutionContainerSystem.RemoveEachReagent(component.SoilSolution.Value, amt))
+ foreach (var entry in component.SoilSolution.Value.Comp.Solution.Contents)
{
var reagentProto = _prototype.Index<ReagentPrototype>(entry.Reagent.Prototype);
- _entityEffects.ApplyEffects(uid, reagentProto.PlantMetabolisms.ToArray());
+ _entityEffects.ApplyEffects(uid, reagentProto.PlantMetabolisms.ToArray(), entry.Quantity.Float());
}
+
+ _solutionContainerSystem.RemoveEachReagent(component.SoilSolution.Value, FixedPoint2.New(1));
}
CheckLevelSanity(uid, component);