1
0
forked from akanyan/mu3-mods

fix(MPO): min threshold from 0 to AA

This commit is contained in:
2024-12-24 02:02:03 +00:00
parent 8c532260b3
commit 0ece7d4f42
6 changed files with 25 additions and 16 deletions

View File

@ -1,6 +1,7 @@
using MU3.DB;
using MU3.User;
using MU3.Util;
using System;
namespace MU3.Battle;
class patch_Counters: Counters {
@ -27,7 +28,7 @@ class patch_Counters: Counters {
GameEngine ge = SingletonMonoBehaviour<GameEngine>.instance;
UserManager userManager = Singleton<UserManager>.instance;
_userFumen = userManager.getUserFumen(ge.sessionInfo.musicData.id, ge.sessionInfo.musicLevel, create: false);
_previousPb = _userFumen?.TechScoreMax ?? 0;
_previousPb = Math.Max(_userFumen?.TechScoreMax ?? 0, TechnicalRankID.AA.getLower());
}
switch(_eAbort) {
@ -37,6 +38,10 @@ class patch_Counters: Counters {
case patch_UserOption.eAbort.PB:
self = _previousPb;
break;
case patch_UserOption.eAbort.FB:
case patch_UserOption.eAbort.AA:
self = TechnicalRankID.AA.getLower();
break;
default:
break;
}