ChanceBasedEffectDefinition
An abstract class in Root.Township, Alta.Alchemy.
Base for effects that only apply some of the time: the chance is the strength times chanceMultiplier.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
EffectDefinition - Derived types
TeleportEffect - Documented in Effects
Constructors
| Member | What it is |
|---|---|
protected ChanceBasedEffectDefinition() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
override void CheckApply(EffectHandler target, float strength) | Applies the effect if a random roll is below strength times chanceMultiplier. |