forked from akanyan/mu3-mods
feat: add the remaining things
* DisableMaintenance * UnlockAllMusic * UnlockGameEvents * UnlockMemoryChapters
This commit is contained in:
24
UnlockAllMusic/MU3.DataStudio/patch_MusicData.cs
Normal file
24
UnlockAllMusic/MU3.DataStudio/patch_MusicData.cs
Normal 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 */ }
|
||||
}
|
||||
}
|
20
UnlockAllMusic/MU3/patch_Scene_25_Login.cs
Normal file
20
UnlockAllMusic/MU3/patch_Scene_25_Login.cs
Normal 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);
|
||||
}
|
||||
}
|
7
UnlockAllMusic/UnlockAllMusic.csproj
Normal file
7
UnlockAllMusic/UnlockAllMusic.csproj
Normal file
@ -0,0 +1,7 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Assembly-CSharp.UnlockAllMusic.mm</AssemblyName>
|
||||
<Description>Unlock all music</Description>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\Mu3Mods.csproj" />
|
||||
</Project>
|
Reference in New Issue
Block a user