Skip to main content

HebiosEnchant

A class in Root.Township, the global namespace.

Progression skill that raises the damage of tools on a target impact channel, by an amount set per skill level.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float[] damageModifierPerLevelDamage multiplier for each skill level, starting at level 1.
private float minimumEffectivenesLowest hit effectiveness that triggers the skill.
private ImpactChannel targetImpactChannelImpact channel the tool and hit must have.

Methods​

MemberWhat it is
override void ExecuteWithHit(HeldPickupHandler handler, ImpactHitWithTool hitWithTool, bool hasHit = true)Multiplies the hit's damage by the modifier for the player's level (capped at the last entry), then runs the skill.
override bool ValidateExecutionHit(ProgressionPath path, ImpactHitWithTool hitWithTool)True for hits with enough effectiveness from the target channel, when that channel is the hit's first channel or it has none.
override bool ValidatePickup(HeldPickupHandler pickupHandler)True if the held item is a tool with the target channel.