20 lines
628 B
C#
20 lines
628 B
C#
using Content.Shared.EntityEffects;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.EntityEffects.Effects.PlantMetabolism;
|
|
|
|
[UsedImplicitly]
|
|
public sealed partial class PlantAdjustWeeds : PlantAdjustAttribute
|
|
{
|
|
public override string GuidebookAttributeName { get; set; } = "plant-attribute-weeds";
|
|
public override bool GuidebookIsAttributePositive { get; protected set; } = false;
|
|
|
|
public override void Effect(EntityEffectBaseArgs args)
|
|
{
|
|
if (!CanMetabolize(args.TargetEntity, out var plantHolderComp, args.EntityManager))
|
|
return;
|
|
|
|
plantHolderComp.WeedLevel += Amount;
|
|
}
|
|
}
|