From 5e2aa88bd7ccd7f869705518b975f6d3650d4814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AD=E3=82=89=E3=81=B2=E3=81=8B=E3=81=A0?= Date: Tue, 13 Sep 2022 00:55:18 +0900 Subject: [PATCH 1/3] Update competitive tier names Data imported from https://valorant-api.com/v1/competitivetiers?language=en-US --- ValNuget/enums.cs | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/ValNuget/enums.cs b/ValNuget/enums.cs index 90db763..5c00757 100644 --- a/ValNuget/enums.cs +++ b/ValNuget/enums.cs @@ -30,7 +30,36 @@ public class Ranks { public static string GetRankFormatted(int rank) { - string[] ranksfor = new string[] { "Unrated", "none", "none", "Iron 1", "Iron 2", "Iron 3", "Bronze 1", "Bronze 2", "Bronze 3", "Silver 1", "Silver 2", "Silver 3", "Gold 1", "Gold 2", "Gold 3", "Platinum 1", "Platinum 2", "Platinum 3", "Diamond 1", "Diamond 2", "Diamond 3", "Immortal", "none", "none", "Radiant" }; + string[] ranksfor = new string[] { + "UNRANKED", + "Unused1", + "Unused2", + "IRON 1", + "IRON 2", + "IRON 3", + "BRONZE 1", + "BRONZE 2", + "BRONZE 3", + "SILVER 1", + "SILVER 2", + "SILVER 3", + "GOLD 1", + "GOLD 2", + "GOLD 3", + "PLATINUM 1", + "PLATINUM 2", + "PLATINUM 3", + "DIAMOND 1", + "DIAMOND 2", + "DIAMOND 3", + "ASCENDANT 1", + "ASCENDANT 2", + "ASCENDANT 3", + "IMMORTAL 1", + "IMMORTAL 2", + "IMMORTAL 3", + "RADIANT", + }; return ranksfor[rank]; } } From 8ac7193a03685345dd93680e877b50ce3c9f950d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AD=E3=82=89=E3=81=B2=E3=81=8B=E3=81=A0?= Date: Tue, 13 Sep 2022 01:01:02 +0900 Subject: [PATCH 2/3] Remove the extra comma at the end --- ValNuget/enums.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ValNuget/enums.cs b/ValNuget/enums.cs index 5c00757..577c063 100644 --- a/ValNuget/enums.cs +++ b/ValNuget/enums.cs @@ -58,7 +58,7 @@ public static string GetRankFormatted(int rank) "IMMORTAL 1", "IMMORTAL 2", "IMMORTAL 3", - "RADIANT", + "RADIANT" }; return ranksfor[rank]; } From 5cedd58a8489d023867443f0e8a33255cfebcc60 Mon Sep 17 00:00:00 2001 From: Nerahikada Date: Sat, 21 Jan 2023 15:46:04 +0900 Subject: [PATCH 3/3] done --- ValNuget/enums.cs | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/ValNuget/enums.cs b/ValNuget/enums.cs index 577c063..8732d6c 100644 --- a/ValNuget/enums.cs +++ b/ValNuget/enums.cs @@ -30,36 +30,7 @@ public class Ranks { public static string GetRankFormatted(int rank) { - string[] ranksfor = new string[] { - "UNRANKED", - "Unused1", - "Unused2", - "IRON 1", - "IRON 2", - "IRON 3", - "BRONZE 1", - "BRONZE 2", - "BRONZE 3", - "SILVER 1", - "SILVER 2", - "SILVER 3", - "GOLD 1", - "GOLD 2", - "GOLD 3", - "PLATINUM 1", - "PLATINUM 2", - "PLATINUM 3", - "DIAMOND 1", - "DIAMOND 2", - "DIAMOND 3", - "ASCENDANT 1", - "ASCENDANT 2", - "ASCENDANT 3", - "IMMORTAL 1", - "IMMORTAL 2", - "IMMORTAL 3", - "RADIANT" - }; + string[] ranksfor = new string[] { "Unrated", "none", "none", "Iron 1", "Iron 2", "Iron 3", "Bronze 1", "Bronze 2", "Bronze 3", "Silver 1", "Silver 2", "Silver 3", "Gold 1", "Gold 2", "Gold 3", "Platinum 1", "Platinum 2", "Platinum 3", "Diamond 1", "Diamond 2", "Diamond 3", "Ascendant 1", "Ascendant 2", "Ascendant 3", "Immortal 1", "Immortal 2", "Immortal 3", "Radiant" }; return ranksfor[rank]; } }