Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,13 @@ public static void ApplyPatch(Harmony harmony, IMonitor monitor)
public static List<string> GreenhouseLocations = ["Custom_GrandpasShedGreenhouse"];

/// <summary>Adds any extra farm locations' crops to this method's total.</summary>
/// <param name="__instance">The calling location instance.</param>
/// <param name="__result">The result of the original method.</param>
private static void Farm_getTotalCrops(ref int __result)
private static void Farm_getTotalCrops(GameLocation __instance, ref int __result)
{
if (__instance is not Farm)
return;

try
{
foreach (string name in FarmLocations) // for each extra farm location
Expand Down Expand Up @@ -114,9 +118,13 @@ private static void Farm_getTotalCrops(ref int __result)
}

/// <summary>Adds any extra farm locations' crops to this method's total.</summary>
/// <param name="__instance">The calling location instance.</param>
/// <param name="__result">The result of the original method.</param>
private static void Farm_getTotalCropsReadyForHarvest(ref int __result)
private static void Farm_getTotalCropsReadyForHarvest(GameLocation __instance, ref int __result)
{
if (__instance is not Farm)
return;

try
{
foreach (string name in FarmLocations) // for each extra farm location
Expand Down Expand Up @@ -148,9 +156,13 @@ private static void Farm_getTotalCropsReadyForHarvest(ref int __result)
}

/// <summary>Adds any extra farm locations' crops to this method's total.</summary>
/// <param name="__instance">The calling location instance.</param>
/// <param name="__result">The result of the original method.</param>
private static void Farm_getTotalUnwateredCrops(ref int __result)
private static void Farm_getTotalUnwateredCrops(GameLocation __instance, ref int __result)
{
if (__instance is not Farm)
return;

try
{
foreach (string name in FarmLocations) // for each extra farm location
Expand Down Expand Up @@ -182,9 +194,13 @@ private static void Farm_getTotalUnwateredCrops(ref int __result)
}

/// <summary>Adds any extra farm locations' crops to this method's total.</summary>
/// <param name="__instance">The calling location instance.</param>
/// <param name="__result">The result of the original method.</param>
private static void Farm_getTotalOpenHoeDirt(ref int __result)
private static void Farm_getTotalOpenHoeDirt(GameLocation __instance, ref int __result)
{
if (__instance is not Farm)
return;

try
{
foreach (string name in FarmLocations) // for each extra farm location
Expand Down Expand Up @@ -216,9 +232,13 @@ private static void Farm_getTotalOpenHoeDirt(ref int __result)
}

/// <summary>Adds any extra greenhouse locations' crops to this method's total.</summary>
/// <param name="__instance">The calling location instance.</param>
/// <param name="__result">The result of the original method.</param>
private static void Farm_getTotalGreenhouseCropsReadyForHarvest(ref int? __result)
private static void Farm_getTotalGreenhouseCropsReadyForHarvest(GameLocation __instance, ref int? __result)
{
if (__instance is not Farm)
return;

try
{
foreach (string name in GreenhouseLocations) // for each extra greenhouse location
Expand Down