2022-05-13 00:59:03 -07:00
|
|
|
|
using Content.Shared.Chemistry.Reagent;
|
2021-11-08 15:33:45 -07:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
|
|
|
|
|
|
{
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class PlantAdjustMutationLevel : PlantAdjustAttribute
|
2021-11-08 15:33:45 -07:00
|
|
|
|
{
|
2021-11-21 00:35:02 -07:00
|
|
|
|
public override void Effect(ReagentEffectArgs args)
|
2021-11-08 15:33:45 -07:00
|
|
|
|
{
|
2021-11-10 03:11:28 -07:00
|
|
|
|
if (!CanMetabolize(args.SolutionEntity, out var plantHolderComp, args.EntityManager))
|
2021-11-08 15:33:45 -07:00
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
plantHolderComp.MutationLevel += Amount * plantHolderComp.MutationMod;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|