From 3644cb7813f056aee3623c7791822a4c8587aa74 Mon Sep 17 00:00:00 2001 From: akanyan Date: Thu, 27 Jun 2024 23:33:47 +0900 Subject: [PATCH] chore: spin off SkipLoginBonus --- README.md | 8 ++++++-- .../MU3/patch_Scene_30_NoticeReward.cs | 18 ++++++++++++++++++ SkipNotice/MU3/patch_Scene_30_NoticeReward.cs | 16 +++------------- 3 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 SkipLoginBonus/MU3/patch_Scene_30_NoticeReward.cs diff --git a/README.md b/README.md index 7b938a7..cb58e3b 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,13 @@ Disables *all* timers. A replacement for LockSelectionTime from the older modpac Replaces the in-game rating algorithm (OldBest30+NewBest15+Recent10) with Best45. Client-side and purely cosmetic. -### SkipNotice ⚠️ +### SkipLoginBonus ⚠️ -Skips the safety warning screen, event notices, ⚠️login bonuses, ⚠️event rewards. +Skips login bonuses and event rewards. If you care about those things, don't use this one. + +### SkipNotice + +Skips the safety warning screen and event notices. ### SkipPreMusicRitual diff --git a/SkipLoginBonus/MU3/patch_Scene_30_NoticeReward.cs b/SkipLoginBonus/MU3/patch_Scene_30_NoticeReward.cs new file mode 100644 index 0000000..975aaa4 --- /dev/null +++ b/SkipLoginBonus/MU3/patch_Scene_30_NoticeReward.cs @@ -0,0 +1,18 @@ +#pragma warning disable CS0649 +#pragma warning disable IDE0051 +#pragma warning disable IDE1006 + +using MU3.Util; + +namespace MU3; + +public class patch_Scene_30_NoticeReward: Scene_30_NoticeReward { + private Mode _mode; + private enum State { + RankingReward = 2, + FadeOut = 8, + } + private void RankingReward_Init() { + _mode.set(State.FadeOut); + } +} \ No newline at end of file diff --git a/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs b/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs index 3de21de..59e969a 100644 --- a/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs +++ b/SkipNotice/MU3/patch_Scene_30_NoticeReward.cs @@ -1,4 +1,3 @@ -#pragma warning disable CS0626 #pragma warning disable CS0649 #pragma warning disable IDE0051 #pragma warning disable IDE1006 @@ -10,21 +9,12 @@ namespace MU3; public class patch_Scene_30_NoticeReward: Scene_30_NoticeReward { private Mode _mode; private enum State { - Attention, - Notice, - RankingReward, - TechnicalChallengeReward, - DailyBonus, - AimeCollab, - Present, - TrainingRoom, - FadeOut, - End + RankingReward = 2, + FadeOut = 8, } - private void Start() { _mode = new Mode(this); - _mode.set(State.FadeOut); + _mode.set(State.RankingReward); SingletonMonoBehaviour.instance.Panel.pushState(0, show: true); } } \ No newline at end of file