forked from akanyan/mu3-mods
feat: instant song skip
This commit is contained in:
@ -15,6 +15,7 @@ namespace MU3.Sequence;
|
||||
public class patch_PlayMusic : PlayMusic {
|
||||
private static readonly TimeSpan HOLD_DURATION = TimeSpan.FromSeconds(1.0f);
|
||||
private static readonly TimeSpan ROLL_DURATION = TimeSpan.FromSeconds(0.5f);
|
||||
public static bool QuickSkip = false;
|
||||
private GameEngine _gameEngine;
|
||||
private SessionInfo _sessionInfo;
|
||||
private bool _isRolling;
|
||||
@ -23,9 +24,7 @@ public class patch_PlayMusic : PlayMusic {
|
||||
private bool _isHoldingAck;
|
||||
private DateTime _holdingStartTime;
|
||||
private float enemyPosX;
|
||||
|
||||
private patch_NotesManager ntMgr => (patch_NotesManager) _gameEngine?.notesManager;
|
||||
|
||||
private extern void orig_Execute_Play();
|
||||
|
||||
public static double FadeOut(double progress, double min, double max) {
|
||||
@ -88,7 +87,13 @@ public class patch_PlayMusic : PlayMusic {
|
||||
if(Singleton<UIInput>.instance.getStateOn(UIInput.Key.MenuRight)) {
|
||||
StartRolling();
|
||||
} else {
|
||||
ntMgr.forceDamage(damage: 100);
|
||||
QuickSkip = true;
|
||||
setNextState(EState.End);
|
||||
destroy();
|
||||
ntMgr.stopPlay();
|
||||
_gameEngine.destroyAllies();
|
||||
_gameEngine.finishGame();
|
||||
_gameEngine.playFinish();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user