1
0
forked from akanyan/mu3-mods

fix: misc cleanup

Also set HideVersion default to false
Also fix the new skipper crashing on tutorial
This commit is contained in:
2024-12-21 13:55:36 +00:00
parent adb7955875
commit 25ca07edd6
28 changed files with 59 additions and 70 deletions

View File

@ -27,13 +27,16 @@ class patch_PlayMusic: PlayMusic {
_nuclearSkip = true;
}
if(_nuclearSkip) {
if(state < EState.CalcResult) {
setNextState(EState.CalcResult);
}
if(state > EState.CalcResult) {
int selectorID = SingletonStateMachine<DataManager, DataManager.EState>.instance.getMemoryChapterData(_sessionInfo.chapterSelection.memoryChapterId)?.getMemoryChapterSelectorID() ?? 4;
Singleton<GameSound>.instance.gameBGM.playBGM(236, selectorID);
setNextState(EState.End);
bool isTutorial = SingletonMonoBehaviour<GameEngine>.instance.sessionInfo.isTutorial;
if(!isTutorial) {
if(state < EState.CalcResult) {
setNextState(EState.CalcResult);
}
if(state > EState.CalcResult) {
int selectorID = SingletonStateMachine<DataManager, DataManager.EState>.instance.getMemoryChapterData(_sessionInfo.chapterSelection.memoryChapterId)?.getMemoryChapterSelectorID() ?? 4;
Singleton<GameSound>.instance.gameBGM.playBGM(236, selectorID);
setNextState(EState.End);
}
}
}
return orig_updateState(deltaTime);