From 594f1751bba1744623681efec01ea628e9b69dcb Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 26 May 2024 01:04:08 -0400 Subject: Credits sends goal now --- AnodyneArchipelago/Patches/StatePatches.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'AnodyneArchipelago/Patches/StatePatches.cs') diff --git a/AnodyneArchipelago/Patches/StatePatches.cs b/AnodyneArchipelago/Patches/StatePatches.cs index 31c0aef..c1e03fe 100644 --- a/AnodyneArchipelago/Patches/StatePatches.cs +++ b/AnodyneArchipelago/Patches/StatePatches.cs @@ -117,4 +117,14 @@ namespace AnodyneArchipelago.Patches } } } + + [HarmonyPatch(typeof(CreditsState), MethodType.Constructor, new Type[] {})] + static class CreateCreditsPatch + { + static void Postfix() + { + Plugin.IsGamePaused = true; + Plugin.ArchipelagoManager.ActivateGoal(); + } + } } -- cgit 1.4.1