Show / Hide Table of Contents

Class ReagentThreshold

Used for implementing reagent effects that require a certain amount of reagent before it should be applied. For instance, overdoses.

This can also trigger on -other- reagents, not just the one metabolizing. By default, it uses the one being metabolized.

Inheritance
System.Object
ReagentEffectCondition
ReagentThreshold
Namespace: Content.Server.Chemistry.ReagentEffectConditions
Assembly: Content.Server.dll
Syntax
public sealed class ReagentThreshold : ReagentEffectCondition

Fields

| Improve this Doc View Source

Max

Declaration
public FixedPoint2 Max
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

Min

Declaration
public FixedPoint2 Min
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

Reagent

Declaration
public string? Reagent
Field Value
Type Description
System.Nullable<System.String>

Methods

| Improve this Doc View Source

Condition(ReagentEffectArgs)

Declaration
public override bool Condition(ReagentEffectArgs args)
Parameters
Type Name Description
Content.Shared.Chemistry.Reagent.ReagentEffectArgs args
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GuidebookExplanation(IPrototypeManager)

Declaration
public override string GuidebookExplanation(IPrototypeManager prototype)
Parameters
Type Name Description
Robust.Shared.Prototypes.IPrototypeManager prototype
Returns
Type Description
System.String
Overrides
ReagentEffectCondition.GuidebookExplanation(IPrototypeManager)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾