A class in Root.Township, Alta.Intelligence.Wyrms.
Wyrm action component for burrowing. The wyrm switches to its burrowed actions and senses, and gets more likely to dig the longer it has idled.
Constructors
| Member | What it is |
|---|
WyrmDigSettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private float changeSenseDelay | Backing field for ChangeSenseDelay. |
private SenseSetup[] dugSenses | Backing field for DugSenses. |
private float failChance | Backing field for FailChance. |
private float maxStrengthDuration | Backing field for MaxStrengthDuration. |
Properties
| Member | What it is |
|---|
float ChangeSenseDelay { get; } | Seconds after the dig starts before the senses switch to DugSenses. |
SenseSetup[] DugSenses { get; } | Senses applied once the wyrm is underground (all others are zeroed). |
float FailChance { get; } | Chance that the dig scores zero on a given check. |
float MaxStrengthDuration { get; } | Idle seconds after which the dig reaches full weight. |
Methods
| Member | What it is |
|---|
protected override IAction GetAction() | Returns the ActiveDig action for these settings. |
protected override void OnValidate() | Editor: fixes up each entry in dugSenses. |
Used in
Members of other types that take, return or hold a WyrmDigSettings: