| The second argument should now be an integer (like <samp>-75</samp> or <samp>Object.VegetableCategory</samp>) instead of a string (like <samp>"-75"</samp>).
| The second argument should now be an integer (like <samp>-75</samp> or <samp>Object.VegetableCategory</samp>) instead of a string (like <samp>"-75"</samp>).
|-
|-
−
|rowspan="8"| <samp>Utility</samp>
+
|rowspan="9"| <samp>Utility</samp>
| <samp>doesItemWithThisIndexExistAnywhere</samp>
| <samp>doesItemWithThisIndexExistAnywhere</samp>
| Replace with <samp>Utility.doesItemExistAnywhere</samp>, which takes a string item ID. For example:
| Replace with <samp>Utility.doesItemExistAnywhere</samp>, which takes a string item ID. For example:
Line 8,991:
Line 8,991:
C# mods can patch <samp>Utility.GetHorseWarpErrorMessage</samp> if they need to add an error message for a custom restriction value.
C# mods can patch <samp>Utility.GetHorseWarpErrorMessage</samp> if they need to add an error message for a custom restriction value.
+
|-
+
| <samp>getRandomTownNPC(…)</samp>
+
| Replaced by either <code>Utility.GetRandomWinterStartParticipant(…)</code> or <code>Utility.getRandomNpcFromHomeRegion(NPC.region_town)</code>.