forked from akanyan/mu3-mods
fix: various fixes
This commit is contained in:
@ -29,15 +29,6 @@ class patch_PlayMusic: PlayMusic {
|
||||
}
|
||||
}
|
||||
|
||||
private extern void orig_Enter_PlayEnd();
|
||||
private void Enter_PlayEnd() {
|
||||
using IniFile iniFile = new("mu3.ini");
|
||||
|
||||
if(iniFile.getValue("Sequence", "QuickEnd", false) && !isPartyPlay()) {
|
||||
_nuclearSkip = true;
|
||||
}
|
||||
}
|
||||
|
||||
public extern bool orig_updateState(float deltaTime);
|
||||
public override bool updateState(float deltaTime = -1f) {
|
||||
var state = getCurrentState();
|
||||
@ -49,6 +40,7 @@ class patch_PlayMusic: PlayMusic {
|
||||
if(_nuclearSkip) {
|
||||
bool isTutorial = SingletonMonoBehaviour<GameEngine>.instance.sessionInfo.isTutorial;
|
||||
if(!isTutorial) {
|
||||
Singleton<Mod.State>.instance.SkipItemFrame = true;
|
||||
if(state < EState.CalcResult) {
|
||||
setNextState(EState.CalcResult);
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using MonoMod;
|
||||
using MU3.Sequence;
|
||||
using MU3.Util;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
Reference in New Issue
Block a user