namespace MU3.User; class patch_UserManager: UserManager { public new const int DefaultGP = 999; private int _gp; private OnUpdate _onUpdateGP; private OnReset _onResetGP; public new void resetGP() { _onResetGP?.Invoke(_gp); } public new int GP { get { return _gp; } private set { _onUpdateGP?.Invoke(_gp); } } public new bool checkBattleGP(int needed) { return true; } public extern void orig_initialize(); public new void initialize() { orig_initialize(); using IniFile iniFile = new("mu3.ini"); _gp = iniFile.getIntValue("Extra", "GP", 999); } }