mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-14 17:07:28 +08:00
[+] Play "Master" difficulty on Demo screen
This commit is contained in:
27
AquaMai/UX/DemoMaster.cs
Normal file
27
AquaMai/UX/DemoMaster.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user