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).
- Listed in Global namespace: S
- Inherits or implements
SkillInputStructure - Derived types
StrikeSuccessionInputStructure.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
StrikeSuccessionInputStructure() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
7 private and internal fields
| Member | What it is |
|---|---|
private float coolDownTime | Backing field for CoolDownTime. Default 2 seconds. |
private float minimumEficiency | Backing field for MinimumEficiency. Default 0.7. |
private int[] strikesRequiredPerLevel | Strikes needed for a power strike at each skill level; GetStrikeCount reads it. Default 3 then 2. |
private ImpactChannel targetChannel | Backing field for TargetChannel. The held tool must have this impact channel. |
private float timeForComboBuild | Backing field for TimeForComboBuild. Default 5 seconds. |
private float timeForPowerStrike | Backing field for TimeForPowerStrike. Default 5 seconds. |
private float timeToResetAfterThrown | Backing field for TimeToResetAfterThrown. Default 3 seconds. |
Properties
| Member | What 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
| Member | What 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: