Skip to main content

StrikeSuccessionInputStructure

A class in Root.Township, the global namespace.

Skill input asset for skills that trigger after a number of good strikes in a row (a combo leading to a power strike).

Constructors​

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

Fields​

7 private and internal fields
MemberWhat it is
private float coolDownTimeBacking field for CoolDownTime. Default 2 seconds.
private float minimumEficiencyBacking field for MinimumEficiency. Default 0.7.
private int[] strikesRequiredPerLevelStrikes needed for a power strike at each skill level; GetStrikeCount reads it. Default 3 then 2.
private ImpactChannel targetChannelBacking field for TargetChannel. The held tool must have this impact channel.
private float timeForComboBuildBacking field for TimeForComboBuild. Default 5 seconds.
private float timeForPowerStrikeBacking field for TimeForPowerStrike. Default 5 seconds.
private float timeToResetAfterThrownBacking field for TimeToResetAfterThrown. Default 3 seconds.

Properties​

MemberWhat it is
float CoolDownTime { get; }Seconds after a combo before a new one can start.
float MinimumEficiency { get; }Hits less effective than this don't count.
ImpactChannel TargetChannel { get; }Impact channel both the tool and the target must have.
float TimeForComboBuild { get; }Seconds allowed to land the next strike while building the combo.
float TimeForPowerStrike { get; }Seconds allowed to land the power strike once the combo is built.
float TimeToResetAfterThrown { get; }Seconds after the tool is thrown before the combo resets.

Methods​

MemberWhat it is
override ISkillInputMethod GetNewInput()Creates a new StrikeSuccessionInput.
int GetStrikeCount(Player targetPlayer, ProfessionSkill skill)Strikes needed at the player's level of the skill, or -1 if they don't have it.
override bool ValidatePickup(HeldPickupHandler pickupHandler)True if the held tool has the target channel.

Used in​

Members of other types that take, return or hold a StrikeSuccessionInputStructure: