Show / Hide Table of Contents

Class PlantAdjustAttribute

Inheritance
System.Object
ReagentEffect
PlantAdjustAttribute
PlantAdjustHealth
PlantAdjustMutationLevel
PlantAdjustMutationMod
PlantAdjustNutrition
PlantAdjustPests
PlantAdjustToxins
PlantAdjustWater
PlantAdjustWeeds
PlantAffectGrowth
Namespace: Content.Server.Chemistry.ReagentEffects.PlantMetabolism
Assembly: Content.Server.dll
Syntax
public abstract class PlantAdjustAttribute : ReagentEffect

Properties

| Improve this Doc View Source

Amount

Declaration
public float Amount { get; protected set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Prob

Declaration
public float Prob { get; protected set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

CanMetabolize(EntityUid, out PlantHolderComponent, IEntityManager, Boolean)

Checks if the plant holder can metabolize the reagent or not. Checks if it has an alive plant by default.

Declaration
public bool CanMetabolize(EntityUid plantHolder, out PlantHolderComponent plantHolderComponent, IEntityManager entityManager, bool mustHaveAlivePlant = true)
Parameters
Type Name Description
EntityUid plantHolder

The entity holding the plant

PlantHolderComponent plantHolderComponent

The plant holder component

IEntityManager entityManager

The entity manager

System.Boolean mustHaveAlivePlant

Whether to check if it has an alive plant or not

Returns
Type Description
System.Boolean
| Improve this Doc View Source

ReagentEffectGuidebookText(IPrototypeManager, IEntitySystemManager)

Declaration
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
Parameters
Type Name Description
Robust.Shared.Prototypes.IPrototypeManager prototype
IEntitySystemManager entSys
Returns
Type Description
System.Nullable<System.String>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾