From 07fc9c433c9f3fb39813a8610ca878a6c9221058 Mon Sep 17 00:00:00 2001 From: "JUJUX670E\\Jujuforce" Date: Tue, 2 Jul 2024 22:03:24 +0200 Subject: [PATCH] feat: implement UnlockAndSetJewelBoostNine --- ...Sharp.UnlockAndSetJewelBoostNine.mm.csproj | 24 +++++++++++++++++++ .../patch_Scene_32_PrePlayMusic_Confirm.cs | 20 ++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 UnlockAndSetJewelBoostNine/Assembly-CSharp.UnlockAndSetJewelBoostNine.mm.csproj create mode 100644 UnlockAndSetJewelBoostNine/MU3/patch_Scene_32_PrePlayMusic_Confirm.cs diff --git a/UnlockAndSetJewelBoostNine/Assembly-CSharp.UnlockAndSetJewelBoostNine.mm.csproj b/UnlockAndSetJewelBoostNine/Assembly-CSharp.UnlockAndSetJewelBoostNine.mm.csproj new file mode 100644 index 0000000..5427f2a --- /dev/null +++ b/UnlockAndSetJewelBoostNine/Assembly-CSharp.UnlockAndSetJewelBoostNine.mm.csproj @@ -0,0 +1,24 @@ + + + net35 + Assembly-CSharp.UnlockAndSetJewelBoostNine.mm + 7EVENDAYS⇔HOLIDAYS + Unlock and set the jewel boost to max + 1.0.0 + true + latest + x64 + + + + ..\Common\mscorlib.dll + ..\Common\UnityEngine.dll + + ..\Common\Assembly-CSharp_unpacked.dll + + + + + + + diff --git a/UnlockAndSetJewelBoostNine/MU3/patch_Scene_32_PrePlayMusic_Confirm.cs b/UnlockAndSetJewelBoostNine/MU3/patch_Scene_32_PrePlayMusic_Confirm.cs new file mode 100644 index 0000000..172a507 --- /dev/null +++ b/UnlockAndSetJewelBoostNine/MU3/patch_Scene_32_PrePlayMusic_Confirm.cs @@ -0,0 +1,20 @@ +#pragma warning disable CS0626 +#pragma warning disable CS0649 +#pragma warning disable IDE0051 +#pragma warning disable IDE1006 +#pragma warning disable CS0414 + +using MU3.DB; +using MU3.User; +using MU3.Util; + +namespace MU3; + +public class patch_Scene_32_PrePlayMusic_Confirm: Scene_32_PrePlayMusic_Confirm +{ + private JewelBoostID getMaxBoost() + { + Singleton.instance.userLocal.boost = JewelBoostID.Nine; + return JewelBoostID.Nine; + } +} \ No newline at end of file