18 lines
500 B
C#
18 lines
500 B
C#
using Content.Shared.Chemistry.Reagent;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
|
|
{
|
|
[UsedImplicitly]
|
|
public sealed partial class PlantAdjustPests : PlantAdjustAttribute
|
|
{
|
|
public override void Effect(ReagentEffectArgs args)
|
|
{
|
|
if (!CanMetabolize(args.SolutionEntity, out var plantHolderComp, args.EntityManager))
|
|
return;
|
|
|
|
plantHolderComp.PestLevel += Amount;
|
|
}
|
|
}
|
|
}
|