Skip to main content

ImpactorStatParameters

A class in Root.Township, the global namespace.

Item component for items that, when struck by an impact tool, apply an impact modifier to whoever is holding them.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private ImpactModifierComponent impactModifierBacking field for ImpactModifier.
private float impactModifierValueMultiplierBacking field for ImpactModifierValueMultiplier.
private bool isTriggeredByOthersIf false, only the holder's own strikes trigger the modifier.

Properties​

MemberWhat it is
ImpactModifierComponent ImpactModifier { get; }Impact modifier applied to the holder when the item is struck.
float ImpactModifierValueMultiplier { get; }Multiplier on the modifier's value.

Methods​

MemberWhat it is
bool ConfirmSettings(Player otherInteractor, Player interactor)True if strikes from other players count, or the striker is the holder.