From 1213b44578c4115a030996a4560f65eeaf9a21a5 Mon Sep 17 00:00:00 2001 From: akanyan Date: Sun, 5 Jan 2025 01:15:55 +0000 Subject: [PATCH] fix(MPO): fix link play for real --- Extras/MoreProfileOptions/MU3.Mod/CustomRating.cs | 14 +++----------- .../patch_ANM_SWH_LocalMatching_User.cs | 10 ---------- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Extras/MoreProfileOptions/MU3.Mod/CustomRating.cs b/Extras/MoreProfileOptions/MU3.Mod/CustomRating.cs index fc8c638..486e7d5 100644 --- a/Extras/MoreProfileOptions/MU3.Mod/CustomRating.cs +++ b/Extras/MoreProfileOptions/MU3.Mod/CustomRating.cs @@ -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, }; } diff --git a/Extras/MoreProfileOptions/MU3.SceneObject/patch_ANM_SWH_LocalMatching_User.cs b/Extras/MoreProfileOptions/MU3.SceneObject/patch_ANM_SWH_LocalMatching_User.cs index 30c987d..b4cc002 100644 --- a/Extras/MoreProfileOptions/MU3.SceneObject/patch_ANM_SWH_LocalMatching_User.cs +++ b/Extras/MoreProfileOptions/MU3.SceneObject/patch_ANM_SWH_LocalMatching_User.cs @@ -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); } }