using Content.Server.Botany.Components;
using Content.Server.Botany.Systems;
using Content.Shared.EntityEffects;
using Content.Shared.EntityEffects.Effects.Botany.PlantAttributes;
namespace Content.Server.EntityEffects.Effects.Botany.PlantAttributes;
///
/// Entity effect that increments plant age / growth cycle.
///
public sealed partial class PlantAffectGrowthEntityEffectSystem : EntityEffectSystem
{
[Dependency] private readonly BasicGrowthSystem _plantGrowth = default!;
protected override void Effect(Entity entity, ref EntityEffectEvent args)
{
if (entity.Comp.Seed == null || entity.Comp.Dead)
return;
_plantGrowth.AffectGrowth(entity, (int)args.Effect.Amount);
}
}