using Content.Shared.Botany.Components; using Content.Shared.Botany.Systems; using Robust.Shared.Prototypes; namespace Content.Shared.EntityEffects.Effects.Botany.PlantAttributes; /// /// Entity effect that adjusts the mutation level of a plant. /// /// public sealed partial class PlantAdjustMutationLevelEntityEffectSystem : EntityEffectSystem { [Dependency] private PlantHolderSystem _plantHolder = default!; protected override void Effect(Entity entity, ref EntityEffectEvent args) { if (_plantHolder.IsDead(entity.Owner)) return; _plantHolder.AdjustsMutationLevel(entity.Owner, args.Effect.MutationTable, args.Effect.Amount); } } /// public sealed partial class PlantAdjustMutationLevel : BasePlantAdjustAttribute { /// /// The mutation table whose level is adjusted. /// [DataField(required: true)] public ProtoId MutationTable; public override string GuidebookAttributeName { get; set; } = "plant-attribute-mutation-level"; }