Initial version.

This commit is contained in:
2026-03-31 20:53:14 +01:00
parent d01c682544
commit f069812d13
30 changed files with 3312 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
using System.Collections.Generic;
using HarmonyLib;
namespace WalleyeFix.Patches
{
[HarmonyPatch(typeof(PlayerFishingController), "pickFish")]
public static class PlayerFishingControllerPatches
{
[HarmonyPrefix]
public static void PickFishPrefix()
{
List<FishConfig> allFish = ConfigManager.GetAllByType<FishConfig>();
if (allFish == null)
{
return;
}
for (int i = 0; i < allFish.Count; i++)
{
FishConfig fishConfig = allFish[i];
if (fishConfig == null)
{
continue;
}
if (fishConfig._FishName != "Walleye")
{
continue;
}
List<TierWeight> newWeights = new List<TierWeight>
{
new TierWeight
{
_Tier = 1,
_Weight = 3
},
new TierWeight
{
_Tier = 2,
_Weight = 3
},
new TierWeight
{
_Tier = 3,
_Weight = 3
}
};
Traverse.Create(fishConfig).Field("_spawnWeights").SetValue(newWeights);
break;
}
}
}
}