forked from akanyan/mu3-mods
feat: rework reward skip; move it to SkipCutscenes
This commit is contained in:
@ -3,7 +3,6 @@ using MU3.Battle;
|
||||
using MU3.Data;
|
||||
using MU3.Game;
|
||||
using MU3.Util;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3.Sequence;
|
||||
|
||||
@ -11,7 +10,6 @@ class patch_PlayMusic: PlayMusic {
|
||||
private GameEngine _gameEngine;
|
||||
private SessionInfo _sessionInfo;
|
||||
private bool _nuclearSkip = false;
|
||||
public static bool ForceSkipped { get; private set; }
|
||||
|
||||
[MonoModIgnore]
|
||||
private extern bool isPartyPlay();
|
||||
@ -19,9 +17,9 @@ class patch_PlayMusic: PlayMusic {
|
||||
private extern void orig_Execute_StartCutscene();
|
||||
private void Execute_StartCutscene() {
|
||||
orig_Execute_StartCutscene();
|
||||
ForceSkipped = false;
|
||||
Singleton<Mod.State>.instance.SkipEntry = false;
|
||||
if(Singleton<Sys.System>.instance.config.isQuickStart || Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.MenuLeft)) {
|
||||
ForceSkipped = true;
|
||||
Singleton<Mod.State>.instance.SkipEntry = true;
|
||||
_gameEngine.skipStartCutscene();
|
||||
if(isPartyPlay()) {
|
||||
setNextState(EState.PartyWaitReady);
|
||||
|
Reference in New Issue
Block a user