1
0
forked from akanyan/mu3-mods

feat: rework reward skip; move it to SkipCutscenes

This commit is contained in:
2024-12-25 19:34:02 +00:00
parent 133a36afd7
commit 076fb75a6d
8 changed files with 96 additions and 21 deletions

View File

@ -0,0 +1,17 @@
using MU3.Util;
using UnityEngine;
namespace MU3;
class patch_ANM_Frame: ANM_Frame {
private GameObject currentBonus;
public extern bool orig_isStampAnimEnd();
public new bool isStampAnimEnd() {
if(!Singleton<Mod.State>.instance.SkipItemFrame) {
return orig_isStampAnimEnd();
} else {
return currentBonus.GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).normalizedTime > 0.4;
}
}
}