From b3ad602d091459456524ac2067f8e845b52c09ee Mon Sep 17 00:00:00 2001 From: Terry Hearst Date: Mon, 1 Jan 2024 14:58:31 -0500 Subject: [PATCH] Recommended annotation format --- Patches/GamePlayManagerPatches.cs | 3 +-- Patches/MedalsDisplayPatches.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Patches/GamePlayManagerPatches.cs b/Patches/GamePlayManagerPatches.cs index 2963735..9824622 100644 --- a/Patches/GamePlayManagerPatches.cs +++ b/Patches/GamePlayManagerPatches.cs @@ -3,8 +3,7 @@ using MIU; namespace DiamondTimeViewer.Patches { - [HarmonyPatch(typeof(GamePlayManager))] - [HarmonyPatch("FinishPlay")] + [HarmonyPatch(typeof(GamePlayManager), nameof(GamePlayManager.FinishPlay))] internal class GamePlayManagerFinishPlayPatch { static void Postfix(GamePlayManager __instance, MarbleController marble) diff --git a/Patches/MedalsDisplayPatches.cs b/Patches/MedalsDisplayPatches.cs index 67efe16..e595cf6 100644 --- a/Patches/MedalsDisplayPatches.cs +++ b/Patches/MedalsDisplayPatches.cs @@ -3,8 +3,7 @@ using System.Collections.Generic; namespace DiamondTimeViewer.Patches { - [HarmonyPatch(typeof(MedalsDisplay))] - [HarmonyPatch("Setup")] + [HarmonyPatch(typeof(MedalsDisplay), nameof(MedalsDisplay.Setup))] internal class MedalsDisplaySetupPatch { static bool Prefix(MedalsDisplay __instance, float silver, float gold, List eggUnlock)