Table of Contents

Action

Run an registered action, either vanilla or mod provided.

ActionEnd and ActionsEnd are relevant when ProcOn is Always. These end actions are called when the player unequips a trinket, or overnight when the game unequip and reequips the trinket.

Args

Property Type Default Notes
Action string null An action to run, either this or Actions must be set for the ability to work.
Actions List<string> null Additional actions to run, either this or Action must be set for the ability to work.
ActionEnd string null An action to run when the trinket is unequiped, only used if ProcOn is Always.
ActionsEnd List<string> null Additional actions to run when the trinket is unequiped, only used if ProcOn is Always.

For SMAPI Mods

The actions triggered by this ability have special TriggerActionContext.CustomFields values which can be used from custom actions.

Key Type Notes
mushymato.TrinketTinker/Trinket StardewValley.Objects.Trinkets.Trinket The trinket which owns the ability that ran this action.
mushymato.TrinketTinker/Owner StardewValley.Farmer The farmer who equipped the trinket.
mushymato.TrinketTinker/Position Microsoft.Xna.Framework.Vector2 The position of the companion, or null if there is no companion.
mushymato.TrinketTinker/PosOff Microsoft.Xna.Framework.Vector2 The position of the companion plus the visual offset, or null if there is no companion.
mushymato.TrinketTinker/Data TrinketTinker.Models.AbilityData The trinket ability data model, this is not converted by pintail so you must use reflection to access any fields, fragile.

These custom fields provide a way for C# mods to implement their own ability effects as actions, which can then be put into trinket tinker.