A class in Root.Township, the global namespace.
Profession skill: blocking a hit with a valid item at good enough effectiveness adds a charge to the strike succession input of a linked skill. Called by ImpactTool on the server for players who unlocked it.
Constructors
| Member | What it is |
|---|
BlockingCharge() | 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 minimumEffectiveness | Lowest hit effectiveness that counts (0.2 by default). |
private PickupBasedSkill modifiedSkill | The pickup skill whose StrikeSuccessionInput gets the charge. |
private Item[] validItems | Items that count as blocking with. |
Properties
1 private and internal property
| Member | What it is |
|---|
private PickupBasedSkill IStrikeSuccessionModifier.TargetSkill { get; } | The skill whose strike succession this charges (modifiedSkill). |
Methods
| Member | What it is |
|---|
void ApplyCharge(Player player, Pickup hitPickup, ImpactHitWithTool bestHit) | If the hit is effective enough and the hit pickup is a valid item, adds a strike to the linked skill's input on each held item, and runs this skill if any counted. |