From 455aee3fd1eed4e1ad19f3e31badddf5565a16b9 Mon Sep 17 00:00:00 2001 From: erdelf Date: Sat, 2 Dec 2023 06:23:49 +0100 Subject: [PATCH] Documentation Auxiliary Methods - Attribute spelling issue. Plus logic fix. --- Harmony/Documentation/articles/patching-auxiliary.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Harmony/Documentation/articles/patching-auxiliary.md b/Harmony/Documentation/articles/patching-auxiliary.md index 43e03671..236e4792 100644 --- a/Harmony/Documentation/articles/patching-auxiliary.md +++ b/Harmony/Documentation/articles/patching-auxiliary.md @@ -2,7 +2,7 @@ ## Auxiliary patch methods -If you use manual patching, you are in full control of your state and the execution and handling of extra resources and logic. For annotation patching, Harmony offers you a number of methods you can implement on a patch class that allow you to execute code before and after patching on that class as well as methods that combine annotations with manually defining which methods that should be patched. +If you use manual patching, you are in full control of your state and the execution and handling of extra resources and logic. For annotation patching, Harmony offers you a number of methods you can implement on a patch class that allow you to execute code before and after patching on that class as well as methods that combine annotations with manually defining which methods should be patched. Each of those methods can take up to three optional arguments that are injected by type so you can call them anything you like: @@ -51,7 +51,7 @@ If you want to patch multiple methods with the same patch, you can use `TargetMe ```csharp static IEnumerable TargetMethods(...) // or -[HarmonyTargetMethod] +[HarmonyTargetMethods] static IEnumerable CalculateMethods(...) ```