Skip to main content

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.

Constructors​

MemberWhat it is
HeartCall()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

5 private and internal fields
MemberWhat it is
private float activeMultiplierDamage multiplier applied to matching hits.
private Dictionary<ImpactTool, HashSet<IHeartCallModifier>> modifiersModifiers registered per tool.
private bool modifiersOverridesMultiplierIf true, the multiplier is skipped when the tool has modifiers.
private ImpactChannel targetChannelImpact channel the held tool needs.
private ProgressionPath targetPathProgression path whose hits are affected.

Methods​

MemberWhat 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.