Class DamageAmountValue
Value provider that reads the damage amount from DamageEventData. Returns a configurable fallback when no damage event data is present.
[Serializable]
public sealed class DamageAmountValue : IIntValueProvider
- Inheritance
-
DamageAmountValue
- Implements
- Inherited Members
Fields
Fallback
The fallback value returned when no DamageEventData is present.
[Tooltip("Fallback value when DamageEventData is not present.")]
public int Fallback
Field Value
Methods
GetValue(ICharacter, EventData)
Computes and returns the integer value for the current execution context.
public int GetValue(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action (used for stat lookups, etc.).
eventDataEventDataThe event data for the current execution (used for RNG, target info, etc.).
Returns
- int
The computed integer value.