Initial Commit
This commit is contained in:
25
Patches/RecipeConfigPatches.cs
Normal file
25
Patches/RecipeConfigPatches.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user