Changes

Jump to navigation Jump to search
→‎For SMAPI mods: + horse footstep changes
Line 108: Line 108:  
===Scarecrow changes===
 
===Scarecrow changes===
 
You can now patch <code>Object.IsScarecrow()</code> and/or <code>Object.GetRadiusForScarecrow()</code> (or add [[#Custom scarecrows|context tags]]) to support custom scarecrows or custom ranges.
 
You can now patch <code>Object.IsScarecrow()</code> and/or <code>Object.GetRadiusForScarecrow()</code> (or add [[#Custom scarecrows|context tags]]) to support custom scarecrows or custom ranges.
 +
 +
===Horse footstep changes===
 +
You can now override the footstep logic for a horse by setting its <tt>onFootstepAction</tt> field. For example:
 +
<syntaxhighlight lang="c#">
 +
Horse horse = ...; // get the horse instance you want to change
 +
horse.onFootstepAction = (string tileType) =>
 +
{
 +
  // play custom audio, etc
 +
};
 +
</syntaxhighlight>
    
===Content changes===
 
===Content changes===
translators
8,404

edits

Navigation menu