Class PlantAdjustAttribute
Inheritance
System.Object
PlantAdjustAttribute
Namespace: Content.Server.Chemistry.ReagentEffects.PlantMetabolism
Assembly: Content.Server.dll
Syntax
public abstract class PlantAdjustAttribute : ReagentEffect
Properties
| Improve this Doc View SourceAmount
Declaration
public float Amount { get; protected set; }
Property Value
Type | Description |
---|---|
System.Single |
Prob
Declaration
public float Prob { get; protected set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceCanMetabolize(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 |
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> |