Skip to content

Commit

Permalink
Merge pull request #403 from Micdu70/patch-1
Browse files Browse the repository at this point in the history
Bug fix & Close #399
  • Loading branch information
qubqub authored Dec 24, 2024
2 parents 8c90bd5 + b67d511 commit 27fe2c1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Entities/LogFileWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ private bool IsRealFinalRound(int roundNum, string roundId, string showId) {
|| (string.Equals(showId, "event_only_button_bashers_template")
&& roundNum == 4)

|| (string.Equals(showId, "fp16_ski_fall_high_scorers")
&& string.Equals(roundId, "round_event_only_skeefall_timetrial_s6_1"))

|| (string.Equals(showId, "ftue_uk_show")
&& string.Equals(roundId, "round_snowballsurvival_noelim_ftue_s2"))

Expand Down
8 changes: 7 additions & 1 deletion Entities/Multilingual.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13467,6 +13467,7 @@ public static class Multilingual {
{ "event_yeetus_3005_to_3105_2022", "Big Yeetus Tour" },
{ "event_yeetus_template", "Big Yeetus Tour" },
{ "explore_points", "Explore - Points" },
{ "fp16_ski_fall_high_scorers", "Ski Fall High Scorers" },
{ "ftue_uk_show", "Knockout" },
{ "invisibeans_0508_to_0708_2022", "SWEET THIEVES" },
{ "invisibeans_0707_to_1107_2022", "SWEET THIEVES" },
Expand Down Expand Up @@ -14378,6 +14379,7 @@ public static class Multilingual {
{ "event_yeetus_3005_to_3105_2022", "Spéciale Big Yeetus" },
{ "event_yeetus_template", "Spéciale Big Yeetus" },
{ "explore_points", "Exploration - Points" },
{ "fp16_ski_fall_high_scorers", "Les hauts scores des pistes folles" },
{ "ftue_uk_show", "Tournois" },
{ "invisibeans_0508_to_0708_2022", "VOLEURS SUCRÉS" },
{ "invisibeans_0707_to_1107_2022", "VOLEURS SUCRÉS" },
Expand Down Expand Up @@ -14477,7 +14479,7 @@ public static class Multilingual {
{ "squads_show_ss2_parrot", "Groupes" },
{ "survival_of_the_fittest", "Le plus fort survivra" },
{ "teams_show", "Erreur de connexion" },
{ "teams_show_ltm", "Duo Dynamique" },
{ "teams_show_ltm", "Duos dynamiques" },
{ "toms_main_show_5_2", "Émission principale" },
{ "toms_show2", "Toms Show 2" },
{ "turbo_show", "Solo" },
Expand Down Expand Up @@ -15289,6 +15291,7 @@ public static class Multilingual {
{ "event_yeetus_3005_to_3105_2022", "대형 망치 투어" },
{ "event_yeetus_template", "대형 망치 투어" },
{ "explore_points", "탐험 - 포인트" },
{ "fp16_ski_fall_high_scorers", "스키 점프 고득점" },
{ "ftue_uk_show", "넉아웃" },
{ "invisibeans_0508_to_0708_2022", "달콤한 도둑들" },
{ "invisibeans_0707_to_1107_2022", "달콤한 도둑들" },
Expand Down Expand Up @@ -16200,6 +16203,7 @@ public static class Multilingual {
{ "event_yeetus_3005_to_3105_2022", "ハンマーツアー" },
{ "event_yeetus_template", "ハンマーツアー" },
{ "explore_points", "自由探索 - ポイント" },
{ "fp16_ski_fall_high_scorers", "スキーフォール・ハイスコア" },
{ "ftue_uk_show", "ノックアウト" },
{ "invisibeans_0508_to_0708_2022", "キャンディードロボー" },
{ "invisibeans_0707_to_1107_2022", "キャンディードロボー" },
Expand Down Expand Up @@ -17111,6 +17115,7 @@ public static class Multilingual {
{ "event_yeetus_3005_to_3105_2022", "重锤巡回赛" },
{ "event_yeetus_template", "重锤巡回赛" },
{ "explore_points", "探索 - 分数" },
{ "fp16_ski_fall_high_scorers", "雪山速降高分赛" },
{ "ftue_uk_show", "淘汰赛" },
{ "invisibeans_0508_to_0708_2022", "糖果窃贼" },
{ "invisibeans_0707_to_1107_2022", "糖果窃贼" },
Expand Down Expand Up @@ -18022,6 +18027,7 @@ public static class Multilingual {
{ "event_yeetus_3005_to_3105_2022", "重錘巡迴賽" },
{ "event_yeetus_template", "重錘巡迴賽" },
{ "explore_points", "探索模式 - 奪分關卡" },
{ "fp16_ski_fall_high_scorers", "舞洞飛揚挑戰者" },
{ "ftue_uk_show", "淘汰賽" },
{ "invisibeans_0508_to_0708_2022", "糖果竊賊" },
{ "invisibeans_0707_to_1107_2022", "糖果竊賊" },
Expand Down
19 changes: 19 additions & 0 deletions Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ private static bool IsAlreadyRunning() {
"event_xtreme_fall_guys_template",
"event_xtreme_fall_guys_squads_template",
"no_elimination_show",
"anniversary_fp12_ltm",
"event_anniversary_season_1_alternate_name",
"event_blast_ball_banger_template",
"event_only_button_bashers_template",
Expand All @@ -275,6 +276,7 @@ private static bool IsAlreadyRunning() {
"event_only_jump_club_template",
"event_only_hoverboard_template",
"event_only_drumtop_template",
"event_only_skeefall_timetrial_s6_1",
"event_walnut_template",
"survival_of_the_fittest",
"show_robotrampage_ss2_show1_template",
Expand Down Expand Up @@ -3640,6 +3642,21 @@ where string.Equals(ri.ShowNameId, "mrs_pegwin_winter_2teamsfinal")
this.CurrentSettings.Version = 110;
this.SaveUserSettings();
}

if (this.CurrentSettings.Version == 110) {
List<RoundInfo> roundInfoList = (from ri in this.RoundDetails.FindAll()
where string.Equals(ri.ShowNameId, "fp16_ski_fall_high_scorers")
select ri).ToList();

foreach (RoundInfo ri in roundInfoList) {
ri.IsFinal = true;
}
this.StatsDB.BeginTrans();
this.RoundDetails.Update(roundInfoList);
this.StatsDB.Commit();
this.CurrentSettings.Version = 111;
this.SaveUserSettings();
}
}

private UserSettings GetDefaultSettings() {
Expand Down Expand Up @@ -5109,6 +5126,8 @@ public string GetAlternateShowId(string showId) {
case "knockout_squads":
case "squadcelebration":
return "squads_4player";
case "fp16_ski_fall_high_scorers":
return "event_only_skeefall_timetrial_s6_1";
case "invisibeans_pistachio_template":
case "invisibeans_template":
return "invisibeans_mode";
Expand Down

0 comments on commit 27fe2c1

Please sign in to comment.