Files
Unlock-All/Patches/RecipeConfigPatches.cs
2026-03-31 20:57:22 +01:00

25 lines
513 B
C#

using HarmonyLib;
namespace UnlockAll.Patches;
public static class RecipeConfigPatches
{
[HarmonyPatch(typeof(RecipeConfig), "CraftingRequirementsMet")]
[HarmonyPrefix]
public static bool UnlockPrefix(ref bool __result)
{
__result = true;
return false;
}
[HarmonyPatch(typeof(RecipeConfig), "IsUnlocked")]
[HarmonyPrefix]
public static bool RecipeIsUnlockedPrefix(ref bool __result)
{
__result = true;
return false;
}
}