using Content.Shared.Botany.Components; using Content.Shared.Botany.Systems; namespace Content.Shared.EntityEffects.Effects.Botany.PlantAttributes; /// /// Entity effect that adjusts a plant's maturation time. /// /// public sealed partial class PlantAdjustMaturationEntityEffectSystem : EntityEffectSystem { [Dependency] private PlantHolderSystem _plantHolder = default!; [Dependency] private PlantSystem _plant = default!; protected override void Effect(Entity entity, ref EntityEffectEvent args) { if (_plantHolder.IsDead(entity.Owner)) return; _plant.AdjustMaturation(entity.AsNullable(), args.Effect.Amount); } } /// public sealed partial class PlantAdjustMaturation : BasePlantAdjustAttribute { public override string GuidebookAttributeName { get; set; } = "plant-attribute-maturation"; public override bool GuidebookIsAttributePositive { get; protected set; } = false; }