HeartCall
A class in Root.Township, the global namespace.
Progression skill: hits on a given path from a held tool on the target channel get a damage multiplier, or are changed by registered modifiers instead.
- Listed in Global namespace: E to H
- Inherits or implements
PickupBasedSkill - Derived types
ForgingHeartCall,HeartCall.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
HeartCall() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private float activeMultiplier | Damage multiplier applied to matching hits. |
private Dictionary<ImpactTool, HashSet<IHeartCallModifier>> modifiers | Modifiers registered per tool. |
private bool modifiersOverridesMultiplier | If true, the multiplier is skipped when the tool has modifiers. |
private ImpactChannel targetChannel | Impact channel the held tool needs. |
private ProgressionPath targetPath | Progression path whose hits are affected. |
Methods
| Member | What it is |
|---|---|
override void Deregister(ISkillInputMethod input) | Removes the modifiers stored for the input's tool. |
void Modify(IHeartCallModifier modifier, ImpactTool tool) | Adds a modifier for a registered tool; it is applied to that tool's hits. |
override void Register(HeldPickupHandler handler) | Registers the handler and starts an empty modifier set for its tool. |
override bool ValidateExecutionHit(ProgressionPath path, ImpactHitWithTool hitWithTool) | For hits on targetPath, applies modifiers and/or the multiplier and runs the skill; always returns false. |
override bool ValidatePickup(HeldPickupHandler pickupHandler) | True if the held item is a tool with targetChannel. |