1
0
forked from akanyan/mu3-mods

fix(MPO): fix link play for real

This commit is contained in:
2025-01-05 01:15:55 +00:00
parent 3b75874ef3
commit 1213b44578
2 changed files with 3 additions and 21 deletions

View File

@ -78,17 +78,9 @@ public static class CustomRating {
public static byte GetSuffix() {
return eRating switch {
patch_UserOption.eRating.Naive => GetSuffix(0),
patch_UserOption.eRating.Reachable => GetSuffix(1),
patch_UserOption.eRating.Recent => GetSuffix(2),
_ => 0,
};
}
public static byte GetSuffix(int idx) {
return idx switch {
0 => MU3CounterBase.FigurePlus,
1 => MU3CounterBase.FigureMinus,
2 => MU3CounterBase.FigureComma,
patch_UserOption.eRating.Naive => MU3CounterBase.FigurePlus,
patch_UserOption.eRating.Reachable => MU3CounterBase.FigureMinus,
patch_UserOption.eRating.Recent => MU3CounterBase.FigureComma,
_ => 0,
};
}

View File

@ -1,6 +1,5 @@
using MU3.Collab;
using MU3.CustomUI;
using MU3.Mod;
using UnityEngine;
namespace MU3.SceneObject;
@ -16,15 +15,6 @@ class patch_ANM_SWH_LocalMatching_User: ANM_SWH_LocalMatching_User {
var flag = userInfo._optRatingID >= 1;
_objRatingNum.SetActive(flag);
if(userInfo._optRatingID > 1) {
_counterRating.AddSuffix(userInfo._optRatingID switch {
2 => CustomRating.GetSuffix(0),
3 => CustomRating.GetSuffix(1),
4 => CustomRating.GetSuffix(2),
_ => 0
});
}
_objRatingMask.SetActive(!flag);
}
}