Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qutrits committed Aug 3, 2024
1 parent 78d6277 commit 1d4ea00
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Entities/Multilingual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13060,6 +13060,7 @@ public static class Multilingual {

private static readonly Dictionary<Language, Dictionary<string, string>> MultilingualShowsDictionary = new Dictionary<Language, Dictionary<string, string>> {
{ Language.English, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
{ "anniversary_fp12_ltm", "4th Anniversary Party" },
{ "casual_show", "Explore" },
{ "classic_duos_show", "Duos" },
{ "classic_solo_main_show", "Solos" },
Expand Down Expand Up @@ -13964,6 +13965,7 @@ public static class Multilingual {
}
},
{ Language.French, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
{ "anniversary_fp12_ltm", "Féte Du 4e Anniversaire" },
{ "casual_show", "Exploration" },
{ "classic_duos_show", "Duos" },
{ "classic_solo_main_show", "Solo" },
Expand Down Expand Up @@ -14868,6 +14870,7 @@ public static class Multilingual {
}
},
{ Language.Korean, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
{ "anniversary_fp12_ltm", "4주년 기념 파티" },
{ "casual_show", "탐험" },
{ "classic_duos_show", "듀오" },
{ "classic_solo_main_show", "솔로" },
Expand Down Expand Up @@ -15772,6 +15775,7 @@ public static class Multilingual {
}
},
{ Language.Japanese, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
{ "anniversary_fp12_ltm", "4周年アニバーサリーパーティー" },
{ "casual_show", "自由探索" },
{ "classic_duos_show", "デュオ" },
{ "classic_solo_main_show", "ソロ" },
Expand Down Expand Up @@ -16676,6 +16680,7 @@ public static class Multilingual {
}
},
{ Language.SimplifiedChinese, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
{ "anniversary_fp12_ltm", "4 周年庆大派对" },
{ "casual_show", "探索" },
{ "classic_duos_show", "双人" },
{ "classic_solo_main_show", "单人" },
Expand Down Expand Up @@ -17580,6 +17585,7 @@ public static class Multilingual {
}
},
{ Language.TraditionalChinese, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) {
{ "anniversary_fp12_ltm", "4 週年派對" },
{ "casual_show", "探索" },
{ "classic_duos_show", "雙人" },
{ "classic_solo_main_show", "單人" },
Expand Down
4 changes: 3 additions & 1 deletion Views/LevelDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,9 @@ private string GetCreativePlatformName(string platform) {
case "xb1": return Multilingual.GetWord("level_detail_playersXb1");
case "xsx": return Multilingual.GetWord("level_detail_playersXsx");
case "switch": return Multilingual.GetWord("level_detail_playersSw");
case "win": return Multilingual.GetWord("level_detail_playersPc");
case "win":
case "pc_egs":
return Multilingual.GetWord("level_detail_playersPc");
default: return platform;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Views/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ private void SetDurationLabel(LevelStats level, LevelType type, DateTime current
// : (string.Equals(this.lastRound.ShowNameId, "no_elimination_explore") && level.TimeLimitSecondsForLTM > 0) ? 3
: (showId.StartsWith("event_xtreme_fall_guys_") && level.TimeLimitSecondsForLTM > 0) ? 3
: ((string.Equals(showId, "squads_2player_template") || string.Equals(showId, "squads_4player")) && level.TimeLimitSecondsForSquad > 0) ? 2
: ((string.Equals(showId, "main_show") || string.Equals(showId, "invisibeans_mode") || level.IsCreative) && level.TimeLimitSeconds > 0) ? 1 : 0;
: ((string.Equals(showId, "main_show") || string.Equals(showId, "anniversary_fp12_ltm") || string.Equals(showId, "invisibeans_mode") || level.IsCreative) && level.TimeLimitSeconds > 0) ? 1 : 0;
int timeLimit = // this.lastRound.IsCasualShow ? ((showType == 3) ? level.TimeLimitSecondsForLTM
// : ((type == LevelType.CreativeSurvival) ? this.lastRound.CreativeTimeLimitSeconds : 0))
this.lastRound.IsCasualShow ? ((type == LevelType.CreativeSurvival) ? this.lastRound.CreativeTimeLimitSeconds : 0)
Expand Down
1 change: 1 addition & 0 deletions Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4648,6 +4648,7 @@ public string GetAlternateShowId(string showId) {
case "ftue_uk_show":
case "classic_solo_main_show":
case "no_elimination_explore":
case "anniversary_fp12_ltm":
return "main_show";
case "knockout_duos":
case "classic_duos_show":
Expand Down

0 comments on commit 1d4ea00

Please sign in to comment.