1
0
forked from akanyan/mu3-mods

feat: implement UnlockAndSetJewelBoostNine (#1)

* UnlockAndSetJewelBoostNine: added.

Co-authored-by: akanyan <alicechecker01@proton.me>
Reviewed-on: akanyan/mu3-mods#1
Co-authored-by: JUJUX670E\Jujuforce <julien@campy.fr>
Co-committed-by: JUJUX670E\Jujuforce <julien@campy.fr>
This commit is contained in:
2024-07-02 20:47:44 +00:00
committed by あかニャン
parent 3238de75f2
commit 74ecdf111a
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net35</TargetFramework>
<AssemblyName>Assembly-CSharp.UnlockAndSetJewelBoostNine.mm</AssemblyName>
<Company>7EVENDAYS⇔HOLIDAYS</Company>
<Description>Unlock and set the jewel boost to max</Description>
<Version>1.7.0</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<Platforms>x64</Platforms>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib"><HintPath>..\Common\mscorlib.dll</HintPath></Reference>
<Reference Include="UnityEngine"><HintPath>..\Common\UnityEngine.dll</HintPath></Reference>
<ProjectReference Include="..\Common\Assembly-CSharp_unpacked\Assembly-CSharp_unpacked.csproj" />
</ItemGroup>
<Target Name="CopyDLLs" AfterTargets="Build">
<Copy SourceFiles="$(TargetDir)$(AssemblyName).dll" DestinationFolder="..\Common\mu3\BepInEx\monomod" />
</Target>
</Project>

View File

@ -0,0 +1,22 @@
#pragma warning disable CS0626
#pragma warning disable CS0649
#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 extern void orig_createSelector();
private JewelBoostID getMaxBoost() {
return JewelBoostID.Nine;
}
private void createSelector() {
Singleton<UserManager>.instance.userLocal.boost = JewelBoostID.Nine;
orig_createSelector();
}
}