mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-16 13:51:10 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
16 lines
665 B
C#
16 lines
665 B
C#
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;
|
|
|
|
public sealed partial class PlantAdjustNutritionEntityEffectSystem : EntityEffectSystem<PlantHolderComponent, PlantAdjustNutrition>
|
|
{
|
|
[Dependency] private PlantHolderSystem _plantHolder = default!;
|
|
|
|
protected override void Effect(Entity<PlantHolderComponent> entity, ref EntityEffectEvent<PlantAdjustNutrition> args)
|
|
{
|
|
_plantHolder.AdjustNutrient(entity, args.Effect.Amount, entity);
|
|
}
|
|
}
|