using Content.Shared.Botany.Components; using Content.Shared.Botany.Systems; namespace Content.Shared.EntityEffects.Effects.Botany.PlantAttributes; /// /// Entity effect that adjusts the nutrition of a plant. /// /// public sealed partial class PlantAdjustNutritionEntityEffectSystem : EntityEffectSystem { [Dependency] private PlantTraySystem _plantTray = default!; protected override void Effect(Entity entity, ref EntityEffectEvent args) { _plantTray.AdjustNutrient(entity.AsNullable(), args.Effect.Amount); } } /// public sealed partial class PlantAdjustNutrition : BasePlantAdjustAttribute { public override string GuidebookAttributeName { get; set; } = "plant-attribute-nutrition"; }