[+] Play "Master" difficulty on Demo screen

This commit is contained in:
Clansty
2024-05-20 23:36:52 +08:00
parent 13fc51a8a5
commit c9f222583a
4 changed files with 31 additions and 0 deletions

27
AquaMai/UX/DemoMaster.cs Normal file
View File

@@ -0,0 +1,27 @@
using DB;
using HarmonyLib;
using MAI2.Util;
using Manager;
using Process;
namespace AquaMai.UX
{
public class DemoMaster
{
[HarmonyPostfix]
[HarmonyPatch(typeof(AdvDemoProcess), "OnStart")]
public static void AdvDemoProcessPostStart()
{
var userOption = Singleton<GamePlayManager>.Instance.GetGameScore(0).UserOption;
userOption.NoteSpeed = OptionNotespeedID.Speed7_0;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(GamePlayManager), "InitializeAdvertise")]
public static void PreInitializeAdvertise()
{
GameManager.SelectDifficultyID[0] = 3;
GameManager.SelectDifficultyID[1] = 3;
}
}
}