Class Effect
- Namespace
- SurvivorsMaker.Core
- Assembly
- SurvivorsMaker.Core.dll
One effect: a target id, an amount and how they are stored. Items, characters, level-up choices and buffs are lists of effects.
public sealed class Effect
- Inheritance
-
Effect
- Inherited Members
Constructors
Effect()
public Effect()
Effect(string, int, EffectMethod, string)
public Effect(string target, int amount, EffectMethod method = EffectMethod.Add, string list = "")
Parameters
targetstringamountintmethodEffectMethodliststring
Fields
Amount
public int Amount
Field Value
Buffer
public float Buffer
Field Value
ConversionFraction
public float ConversionFraction
Field Value
ExternalSource
public bool ExternalSource
Field Value
Handler
Id of a custom IEffectHandler. Empty means the built-in rules of Method apply.
public string Handler
Field Value
HasOutputMax
public bool HasOutputMax
Field Value
HasOutputMin
public bool HasOutputMin
Field Value
InputMax
public float InputMax
Field Value
InputMin
public float InputMin
Field Value
Invert
public bool Invert
Field Value
IsMinimum
public bool IsMinimum
Field Value
Lifetime
public EffectLifetime Lifetime
Field Value
LifetimeTicks
Zero means no tick expiry. AdvanceCombatTicks is called only during combat.
public int LifetimeTicks
Field Value
LifetimeWaves
Zero means no wave expiry. Active on acquisition wave through start + N - 1.
public int LifetimeWaves
Field Value
LimitMode
public StatLimitMode LimitMode
Field Value
Linear
Map [InputMin + Buffer, InputMax] to [OutputMin, OutputMax], clamped.
public bool Linear
Field Value
List
Name of the list the list methods write to, e.g. "loadout" or "on_wave_start".
public string List
Field Value
Method
public EffectMethod Method
Field Value
OutputMax
public float OutputMax
Field Value
OutputMin
public float OutputMin
Field Value
ReadLayer
public StatReadLayer ReadLayer
Field Value
Rounding
public EffectRounding Rounding
Field Value
Source
Stat id, or external key when ExternalSource is true.
public string Source
Field Value
Target
public string Target
Field Value
Temporary
public bool Temporary
Field Value
Unit
public float Unit
Field Value
Properties
IsCustom
public bool IsCustom { get; }
Property Value
IsListMethod
True for methods that write to List.
public bool IsListMethod { get; }
Property Value
Methods
Add(string, int)
Creates a built-in additive stat effect in integer stat points.
public static Effect Add(string stat, int amount)
Parameters
Returns
Set(string, int)
Creates a built-in stat assignment effect.
public static Effect Set(string stat, int value)
Parameters
Returns
ToString()
public override string ToString()