1
0
forked from akanyan/mu3-mods

feat: add the remaining things

* DisableMaintenance
* UnlockAllMusic
* UnlockGameEvents
* UnlockMemoryChapters
This commit is contained in:
2024-07-08 02:10:46 +09:00
parent 42cf65bdb7
commit cc7bc8613b
17 changed files with 263 additions and 1 deletions

View File

@ -0,0 +1,24 @@
namespace MU3.DataStudio;
class patch_MusicData: MusicData {
public new int CostToUnlock {
get {
return 0;
}
private set { /* nop */ }
}
public new bool PossessingFromTheBeginning {
get {
return true;
}
private set { /* nop */ }
}
public new bool IsLockedAtTheBeginning {
get {
return false;
}
private set { /* nop */ }
}
}

View File

@ -0,0 +1,20 @@
using MU3.User;
using MU3.Util;
namespace MU3;
class patch_Scene_25_Login: Scene_25_Login {
private enum State {
GetUserRatinglog = 24
}
private Mode<Scene_25_Login, State> mode_;
private void GetUserActivityMusic_Init() {
// nop
}
private void GetUserActivityMusic_Proc() {
Singleton<UserManager>.instance.updateUserActivityInLoginEnd();
mode_.set(State.GetUserRatinglog);
}
}

View File

@ -0,0 +1,7 @@
<Project>
<PropertyGroup>
<AssemblyName>Assembly-CSharp.UnlockAllMusic.mm</AssemblyName>
<Description>Unlock all music</Description>
</PropertyGroup>
<Import Project="..\Mu3Mods.csproj" />
</Project>