Always medkit added

This commit is contained in:
ALittlePatate
2022-04-03 11:09:43 +02:00
parent f8e57df71d
commit 7340c53813
2 changed files with 20 additions and 1 deletions

View File

@@ -1,9 +1,26 @@
using HarmonyLib;
using DevourClient;
namespace DevourClient.Hooks
{
public class Hooks
{
[HarmonyPatch(typeof(NolanBehaviour))]
[HarmonyPatch(nameof(NolanBehaviour.IsCarryingFirstAidOnLocalCharacter))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class NolanBehaviour_IsCarryingFirstAidOnLocalCharacter_Patch
{
static void Postfix(ref bool __result)
{
Load settings = new Load();
if (settings._IsCarryingFirstAidOnLocalCharacter)
{
__result = true;
}
return;
}
}
[HarmonyPatch(typeof(Horror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class Horror_Menu_SetupPerk_Patch