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:
@ -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);
|
||||
|
Reference in New Issue
Block a user