From 0d7b18c8d1b1e1b8dedbdc16be0dfa18521fb3b3 Mon Sep 17 00:00:00 2001 From: henryz Date: Thu, 6 Nov 2025 09:46:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=BD=AE=E6=8D=A2=E5=8D=A1=E7=89=8C=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HsMod/Patcher.cs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/HsMod/Patcher.cs b/HsMod/Patcher.cs index 30a367fb..f375e5a0 100644 --- a/HsMod/Patcher.cs +++ b/HsMod/Patcher.cs @@ -609,17 +609,23 @@ public static void PatchAlertPopupUpdateInfo(ref AlertPopup.PopupInfo info, ref } //处理置换 - [HarmonyPrefix] + [HarmonyPostfix] [HarmonyPatch(typeof(RedundantNDEPopup), "Show")] - public static bool PatchRedundantNDEPopup(ref UIBButton ___m_rerollButton) + public static void AutoClickRedundantNDE(UIBButton ___m_rerollButton, MonoBehaviour __instance) { if (!isAutoRedundantNDE.Value) - return true; + return; - ___m_rerollButton.TriggerPress(); - ___m_rerollButton.TriggerRelease(); - return false; + __instance.StartCoroutine(AutoClick(___m_rerollButton)); } + + private static IEnumerator AutoClick(UIBButton button) + { + yield return new WaitForSeconds(1f); + button.TriggerPress(); + button.TriggerRelease(); + } + //处理未领取的奖励 [HarmonyPostfix] [HarmonyPatch(typeof(RewardTrackSeasonRoll), "Show")] From c0ad672f5aa247e59176196426f503214a7fab41 Mon Sep 17 00:00:00 2001 From: henryz Date: Thu, 6 Nov 2025 09:53:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=98=8E=E7=A1=AE=E4=BC=A0=E9=80=92?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HsMod/Patcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HsMod/Patcher.cs b/HsMod/Patcher.cs index f375e5a0..98466960 100644 --- a/HsMod/Patcher.cs +++ b/HsMod/Patcher.cs @@ -611,7 +611,7 @@ public static void PatchAlertPopupUpdateInfo(ref AlertPopup.PopupInfo info, ref //处理置换 [HarmonyPostfix] [HarmonyPatch(typeof(RedundantNDEPopup), "Show")] - public static void AutoClickRedundantNDE(UIBButton ___m_rerollButton, MonoBehaviour __instance) + public static void AutoClickRedundantNDE(UIBButton ___m_rerollButton, RedundantNDEPopup __instance) { if (!isAutoRedundantNDE.Value) return;