]> git.smokeofanarchy.ru Git - space-station-14.git/blob
56c016700dd300e04c6ec35c84b0f9507c354a49
[space-station-14.git] /
1 using Content.Server.Botany.Components;
2 using Content.Server.Botany.Systems;
3 using Content.Shared.EntityEffects;
4 using Content.Shared.EntityEffects.Effects.Botany.PlantAttributes;
5
6 namespace Content.Server.EntityEffects.Effects.Botany.PlantAttributes;
7
8 public sealed partial class PlantAdjustNutritionEntityEffectSystem : EntityEffectSystem<PlantHolderComponent, PlantAdjustNutrition>
9 {
10     [Dependency] private readonly PlantHolderSystem _plantHolder = default!;
11
12     protected override void Effect(Entity<PlantHolderComponent> entity, ref EntityEffectEvent<PlantAdjustNutrition> args)
13     {
14         _plantHolder.AdjustNutrient(entity, args.Effect.Amount, entity);
15     }
16 }