Scale other needed metabolism reagents (#12005)

Closes https://github.com/space-wizards/space-station-14/issues/7434
This commit is contained in:
Rane
2022-12-21 09:51:49 -05:00
committed by GitHub
parent 571802f75d
commit 8613d40aa1
23 changed files with 82 additions and 26 deletions

View File

@@ -83,6 +83,6 @@ namespace Content.Shared.Chemistry.Reagent
FixedPoint2 Quantity,
IEntityManager EntityManager,
ReactionMethod? Method,
ReagentEffectsEntry? MetabolismEffects
float Scale
);
}

View File

@@ -133,7 +133,7 @@ namespace Content.Shared.Chemistry.Reagent
var entMan = IoCManager.Resolve<IEntityManager>();
var random = IoCManager.Resolve<IRobustRandom>();
var args = new ReagentEffectArgs(plantHolder.Value, null, solution, this, amount.Quantity, entMan, null, null);
var args = new ReagentEffectArgs(plantHolder.Value, null, solution, this, amount.Quantity, entMan, null, 1f);
foreach (var plantMetabolizable in PlantMetabolisms)
{
if (!plantMetabolizable.ShouldApply(args, random))