Returned functionality to industrial reagent grinders (#31903)
* Returned functionality to industrial reagent grinders without un-nerfing recyclers * Limited industrial reagent grinder to only extractable solutions
This commit is contained in:
@@ -258,9 +258,22 @@ public sealed class MaterialReclaimerSystem : SharedMaterialReclaimerSystem
|
||||
}
|
||||
|
||||
// if the item we inserted has reagents, add it in.
|
||||
if (_solutionContainer.TryGetDrainableSolution(item, out _, out var drainableSolution))
|
||||
|
||||
if (reclaimerComponent.OnlyReclaimDrainable)
|
||||
{
|
||||
totalChemicals.AddSolution(drainableSolution, _prototype);
|
||||
// Are we a recycler? Only use drainable solution.
|
||||
if (_solutionContainer.TryGetDrainableSolution(item, out _, out var drainableSolution))
|
||||
{
|
||||
totalChemicals.AddSolution(drainableSolution, _prototype);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Are we an industrial reagent grinder? Use extractable solution.
|
||||
if (_solutionContainer.TryGetExtractableSolution(item, out _, out var extractableSolution))
|
||||
{
|
||||
totalChemicals.AddSolution(extractableSolution, _prototype);
|
||||
}
|
||||
}
|
||||
|
||||
if (!_solutionContainer.TryGetSolution(reclaimer, reclaimerComponent.SolutionContainerId, out var outputSolution) ||
|
||||
|
||||
Reference in New Issue
Block a user