From 045c5e001fee697ab2c71b176cfe759e5bd6b183 Mon Sep 17 00:00:00 2001 From: Cheesenibbles123 <56054349+cheesenibbles123@users.noreply.github.com> Date: Thu, 24 Dec 2020 18:43:46 +0000 Subject: [PATCH] Added badge to main menu --- customEliteBadges/mainClass.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/customEliteBadges/mainClass.cs b/customEliteBadges/mainClass.cs index 466dcc9..09daada 100644 --- a/customEliteBadges/mainClass.cs +++ b/customEliteBadges/mainClass.cs @@ -44,12 +44,10 @@ void setMainmenu() try { - int.TryParse(mm.mainMenuPres.ToString(), out int prestige); - log(prestige.ToString()); + int prestige = íëåäòéðåïîé.åêìóëîñçîèì(íëåäòéðåïîé.îðííçñòêîåï); if (prestige >= 10) { - int.TryParse(mm.mainMenuLevel.ToString(), out int level); - log(level.ToString()); + int level = ScoreHandler.ðïíîîðèéóíä(íëåäòéðåïîé.åêìóëîñçîèì(íëåäòéðåïîé.ìòêïíçëóïèí), íëåäòéðåïîé.åêìóëîñçîèì(íëåäòéðåïîé.îðííçñòêîåï)); int index = ~levels.BinarySearch(level); if (customBadges.TryGetValue(levels[index - 1], out Texture2D newBadgeTexture)) {