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
| Member | What it is |
|---|
HebiosEnchant() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private float[] damageModifierPerLevel | Damage multiplier for each skill level, starting at level 1. |
private float minimumEffectivenes | Lowest hit effectiveness that triggers the skill. |
private ImpactChannel targetImpactChannel | Impact channel the tool and hit must have. |
Methods
| Member | What 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. |