forked from akanyan/mu3-mods
feat: add infinite gp and skip premusic
Also, run the autoformatter. Also, the skip is now cleaner.
This commit is contained in:
33
InfiniteGP/MU3.User/patch_UserManager.cs
Normal file
33
InfiniteGP/MU3.User/patch_UserManager.cs
Normal file
@ -0,0 +1,33 @@
|
||||
#pragma warning disable CS0626
|
||||
#pragma warning disable CS0649
|
||||
#pragma warning disable IDE0051
|
||||
#pragma warning disable IDE1006
|
||||
#pragma warning disable CS0108
|
||||
|
||||
namespace MU3.User;
|
||||
|
||||
public class patch_UserManager: UserManager {
|
||||
public const int DefaultGP = 666;
|
||||
private int _gp;
|
||||
private OnUpdate _onUpdateGP;
|
||||
private OnReset _onResetGP;
|
||||
|
||||
public void resetGP() {
|
||||
_gp = 666;
|
||||
if(_onResetGP != null) {
|
||||
_onResetGP(_gp);
|
||||
}
|
||||
}
|
||||
|
||||
public int GP {
|
||||
get {
|
||||
return _gp;
|
||||
}
|
||||
private set {
|
||||
_gp = 666;
|
||||
if(_onUpdateGP != null) {
|
||||
_onUpdateGP(_gp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user