A class in Root.Township, Alta.Enchantments.
Enchantment trigger that charges when the item is taken out of a dock and goes off on a good hit within a time limit.
Constructors
| Member | What it is |
|---|
QuickDrawTrigger() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private float cooldownTime | Seconds after a proc before the trigger can charge again. |
private bool isOneHit | If true, the charge ends after the first hit that procs. |
private float minimumEffectiveness | A hit must be more effective than this (0 to 1) to proc. |
private float timeToHit | Seconds after drawing the tool that a hit still counts. The charge is cancelled after that. |
private PickupDockSettings[] validDocks | Dock types the tool must be drawn from. Empty means any dock. |
Properties
| Member | What it is |
|---|
float CooldownTime { get; } | Seconds after going off before it can charge again. |
bool IsOneHit { get; } | If true it uncharges after the first hit. |
float MinimumEffectiveness { get; } | Hits must be more effective than this. |
float TimeToHit { get; } | Seconds after undocking to land the hit before the charge is cancelled. |
PickupDockSettings[] ValidDocks { get; } | Docks that charge it. Empty means any. |
Methods
Used in
Members of other types that take, return or hold a QuickDrawTrigger: