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,27 @@
using MU3.Util;
namespace MU3;
class patch_UIGetItem: UIGetItem {
private int state_;
private float time_;
public extern bool orig_isOutEnd();
public new bool isOutEnd() {
if(!Singleton<Mod.State>.instance.SkipItemFrame) {
return orig_isOutEnd();
} else {
return true;
}
}
public extern void orig_start(Kind kind);
private void start(Kind kind) {
if(!Singleton<Mod.State>.instance.SkipItemFrame) {
orig_start(kind);
} else {
state_ = 3;
time_ = 100f;
}
}
}