Skip to main content

WyrmDigSettings

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​

MemberWhat it is
WyrmDigSettings()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private float changeSenseDelayBacking field for ChangeSenseDelay.
private SenseSetup[] dugSensesBacking field for DugSenses.
private float failChanceBacking field for FailChance.
private float maxStrengthDurationBacking field for MaxStrengthDuration.

Properties​

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

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