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
| Member | What it is |
|---|
ImpactorStatParameters() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private ImpactModifierComponent impactModifier | Backing field for ImpactModifier. |
private float impactModifierValueMultiplier | Backing field for ImpactModifierValueMultiplier. |
private bool isTriggeredByOthers | If false, only the holder's own strikes trigger the modifier. |
Properties
| Member | What 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
| Member | What it is |
|---|
bool ConfirmSettings(Player otherInteractor, Player interactor) | True if strikes from other players count, or the striker is the holder. |