16 lines
492 B
C#
16 lines
492 B
C#
using Content.Shared.Chemistry.Reagent;
|
|
|
|
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
|
|
{
|
|
public sealed partial class PlantAdjustMutationLevel : PlantAdjustAttribute
|
|
{
|
|
public override void Effect(ReagentEffectArgs args)
|
|
{
|
|
if (!CanMetabolize(args.SolutionEntity, out var plantHolderComp, args.EntityManager))
|
|
return;
|
|
|
|
plantHolderComp.MutationLevel += Amount * plantHolderComp.MutationMod;
|
|
}
|
|
}
|
|
}
|