18 lines
467 B
C#
18 lines
467 B
C#
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.Chemistry.PlantMetabolism
|
|
{
|
|
[UsedImplicitly]
|
|
public class AdjustWater : AdjustAttribute
|
|
{
|
|
public override void Metabolize(IEntity plantHolder, float customPlantMetabolism = 1f)
|
|
{
|
|
if (!CanMetabolize(plantHolder, out var plantHolderComp, false))
|
|
return;
|
|
|
|
plantHolderComp.AdjustWater(Amount);
|
|
}
|
|
}
|
|
}
|