forked from akanyan/mu3-mods
feat: rework reward skip; move it to SkipCutscenes
This commit is contained in:
27
Extras/SkipCutscenes/MU3/patch_UIGetItem.cs
Normal file
27
Extras/SkipCutscenes/MU3/patch_UIGetItem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user