EffectDefinition
An abstract class in Root.Township, Alta.Alchemy.
Base asset for an alchemy or food effect applied to an EffectHandler. Stored under the hashed path Cooking/Effects.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
HashedGeneralValue<EffectDefinition>,IEffectDefinition - Derived types
BuildUpconcoctionEffect,BurnEffect,ChanceBasedEffectDefinition,EffectDefinition,InateEffect,PoisonEffect,RevealEffect,StatEffect,StatMultiplierEffect,IndirectStatModifierDefinition - Attributes
HashedPath - Documented in Effects
Constructors
| Member | What it is |
|---|---|
protected EffectDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
| Member | What it is |
|---|---|
Glyph effectGlyph | Glyph shown for this effect. |
Methods
| Member | What it is |
|---|---|
virtual void CheckApply(EffectHandler target, float strength) | Entry point for applying the effect. The base version just calls Apply; subclasses can add checks. |
protected abstract void Apply(EffectHandler target, float strength) | Applies the effect at the given strength. Subclasses implement it. |
Used in
Members of other types that take, return or hold a EffectDefinition:
EffectDefinitionApplication.EffectDefinitionApplication, EffectDefinitionApplication.effectToModify, EffectDefinitionApplication.EffectToModify, EffectEventHandler.BeginInvoke, EffectEventHandler.Invoke, EffectHandler.EffectOverTime, EffectHandler.unitsToRegen, EffectHandler.EffectOverTimeData.effectDefinition, EffectHandler.EffectOverTimeData.EffectOverTimeData, EffectHandler.EffectOverTimeData.handleUpdate, EffectVolumeTrigger.Effect.effect, StewRecipe.combinedStrengths, StewRecipe.effectModifiersMap, StewRecipe.EffectModifiersMap, StewRecipe.GetModifiedStrength, StewRecipe.HandleEffectApplication, StewRecipe.HandleGarnishModifiers, LiquidContainerSaveData.Effect.definition.