1
0
forked from akanyan/mu3-mods

feat(SkipCutscenes): QuickEnd

This commit is contained in:
2024-12-25 17:44:53 +00:00
parent 1f3846a03b
commit 133a36afd7

View File

@ -3,6 +3,7 @@ using MU3.Battle;
using MU3.Data; using MU3.Data;
using MU3.Game; using MU3.Game;
using MU3.Util; using MU3.Util;
using UnityEngine;
namespace MU3.Sequence; namespace MU3.Sequence;
@ -29,6 +30,16 @@ 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 extern bool orig_updateState(float deltaTime);
public override bool updateState(float deltaTime = -1f) { public override bool updateState(float deltaTime = -1f) {
var state = getCurrentState(); var state = getCurrentState();