Skip to main content

BlockingCharge

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​

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

Fields​

3 private and internal fields
MemberWhat it is
private float minimumEffectivenessLowest hit effectiveness that counts (0.2 by default).
private PickupBasedSkill modifiedSkillThe pickup skill whose StrikeSuccessionInput gets the charge.
private Item[] validItemsItems that count as blocking with.

Properties​

1 private and internal property
MemberWhat it is
private PickupBasedSkill IStrikeSuccessionModifier.TargetSkill { get; }The skill whose strike succession this charges (modifiedSkill).

Methods​

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