scale reagent damage when under metabolism rate (#11578)
This commit is contained in:
@@ -82,6 +82,7 @@ namespace Content.Shared.Chemistry.Reagent
|
||||
ReagentPrototype Reagent,
|
||||
FixedPoint2 Quantity,
|
||||
IEntityManager EntityManager,
|
||||
ReactionMethod? Method
|
||||
ReactionMethod? Method,
|
||||
ReagentEffectsEntry? MetabolismEffects
|
||||
);
|
||||
}
|
||||
|
||||
@@ -130,7 +130,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);
|
||||
var args = new ReagentEffectArgs(plantHolder.Value, null, solution, this, amount.Quantity, entMan, null, null);
|
||||
foreach (var plantMetabolizable in PlantMetabolisms)
|
||||
{
|
||||
if (!plantMetabolizable.ShouldApply(args, random))
|
||||
|
||||
Reference in New Issue
Block a user