A class in Root.Township, the global namespace.
Charged skill asset: a strike with a tool in a given path that is effective enough deals extra damage. Works with strike succession input.
Constructors
| Member | What it is |
|---|
PowerStrike() | 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 damageMultiplier | Damage multiplier on the strike (default 1.5). |
private float minimumEficiency | Lowest hit effectiveness that counts (default 0.7). |
private ProgressionPath path | Backing field for Path. |
Properties
| Member | What it is |
|---|
ProgressionPath Path { get; } | The progression path whose hits count. |
1 private and internal property
| Member | What it is |
|---|
private PickupBasedSkill IStrikeSuccessionModifier.TargetSkill { get; } | Returns this skill. |
Methods
| Member | What it is |
|---|
override void ExecuteWithHit(HeldPickupHandler handler, ImpactHitWithTool hitWithTool, bool hasHit = true) | Multiplies the hit's damage by damageMultiplier, then runs the base skill. |
override bool ValidateExecutionHit(ProgressionPath path, ImpactHitWithTool hitWithTool) | True if the hit is in path and its effectiveness is at least minimumEficiency. |
override bool ValidatePickup(HeldPickupHandler pickupHandler) | True if the held item is a tool. |