Class ApplyHealAction
Action that restores health to a target character using a configurable value provider.
[Serializable]
public class ApplyHealAction : BaseAction, IAction
- Inheritance
-
ApplyHealAction
- Implements
- Inherited Members
Fields
HealValue
The value provider that determines the amount of health to restore.
[Tooltip("The value provider that determines the amount of health to restore.")]
[SerializeReference]
public IIntValueProvider HealValue
Field Value
Methods
Execute(ICharacter, EventData)
Restores health to the target character using the computed value.
public override void Execute(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character initiating the action.
eventDataEventDataThe event data containing the target information.
GetTooltipContribution()
Says how much it heals, when the amount is knowable ahead of the cast.
public override string GetTooltipContribution()
Returns
- string
The wording, or null when the amount is only known at execution time.