Skip to content
This repository was archived by the owner on Aug 2, 2026. It is now read-only.

Commit 17da21f

Browse files
committed
chore: bump version to v9.1.13 and add fixes
1 parent 8078f6b commit 17da21f

6 files changed

Lines changed: 16 additions & 20 deletions

File tree

SysBot.Pokemon.Discord/Helpers/TradeModule/MedalHelpers.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ public static int GetCurrentMilestone(int totalTrades)
2020

2121
public static bool IsExactMilestone(int totalTrades)
2222
{
23-
if (totalTrades == 1) return true;
24-
if (totalTrades <= 0) return false;
25-
// Congratulate infinitely every 50 trades
26-
return totalTrades % 50 == 0;
23+
return totalTrades == 1; // Only congratulate on the first trade
2724
}
2825

2926
public static int CalculateTotalMedals(int tradeCount)

SysBot.Pokemon.WinForms/Main.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,19 +511,20 @@ private void B_Start_Click(object sender, EventArgs e)
511511

512512
private void B_Restart_Click(object sender, EventArgs e)
513513
{
514-
B_Stop_Click(sender, e);
515514
Task.Run(async () =>
516515
{
517-
await Task.Delay(3_500).ConfigureAwait(false);
518516
SaveCurrentConfig();
519517
LogUtil.LogInfo("Restarting all the consoles...", "Form");
520-
RunningEnvironment.InitializeStart();
521518
SendAll(BotControlCommand.RebootAndStop);
522519
await Task.Delay(5_000).ConfigureAwait(false); // Add a delay before restarting the bot
523520
SendAll(BotControlCommand.Start); // Start the bot after the delay
524-
Tab_Logs.Select();
525-
if (Bots.Count == 0)
526-
WinFormsUtil.Alert("No bots configured, but all supporting services have been issued the reboot command.");
521+
522+
Invoke(new Action(() =>
523+
{
524+
Tab_Logs.Select();
525+
if (Bots.Count == 0)
526+
WinFormsUtil.Alert("No bots configured, but all supporting services have been issued the reboot command.");
527+
}));
527528
});
528529
}
529530

SysBot.Pokemon.WinForms/SysBot.Pokemon.WinForms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Description>Nintendo Switch Pokémon Bot Manager</Description>
1919
<ApplicationIcon>icon.ico</ApplicationIcon>
2020
<StartupObject>SysBot.Pokemon.WinForms.Program</StartupObject>
21-
<Version>9.1.12</Version>
21+
<Version>9.1.13</Version>
2222
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
2323
</PropertyGroup>
2424
<PropertyGroup>

SysBot.Pokemon/Helpers/BatchNormalizer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ private static string ProcessEVs(string val)
503503
}
504504
else
505505
{
506-
return $".SetEVs={val}";
506+
return $"EVs: {val}";
507507
}
508508
}
509509

@@ -564,7 +564,7 @@ private static string ProcessIVs(string val)
564564
return GeneratePresetIVs(ivCount);
565565
}
566566

567-
return $".SetIVs={val}";
567+
return $"IVs: {val}";
568568
}
569569

570570
private static string GenerateRandomIVs()

SysBot.Pokemon/Helpers/NexusBot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace SysBot.Pokemon.Helpers
33
public static class NexusBot
44
{
55
public static string Name { get; set; } = "NexusBot";
6-
public static string Version => "9.1.12";
6+
public static string Version => "9.1.13";
77
public const string ConfigPath = "config.json";
88
}
99
}

release_notes.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Release Notes
22

3-
## [9.1.12]
4-
5-
- Fixed an issue where the SV bot would get stuck on the news screen.
6-
- Implemented a workaround for a bug in PKHeX's Auto Legality Mod where `ApplyAutoOT` clears the Original Trainer Name (fixing the "OT Name too short" error). This fix has been applied across all supported games (SV, SWSH, BDSP, LA, LGPE, and PLZA).
7-
- Bumped `actions/setup-dotnet` from v5 to v6.
8-
- Implemented dynamic hourly cache busting for progression medal images to ensure Discord automatically fetches updated sprites from GitHub.
3+
## [9.1.13]
4+
- **EVs/IVs Showdown Parsing Fix**: Fixed an issue in `BatchNormalizer` where using a standard Showdown EV or IV string (e.g., `EVs: 252 Atk / 4 SpD / 252 Spe`) was incorrectly replaced with an invalid batch command, causing Pokémon to be generated with 0 EVs and randomized IVs.
5+
- **Console Restart Discord Fix**: Fixed an issue where clicking the "Restart All" button in the WinForms UI would completely kill the environment (including the Discord bot connection) before restarting. It now properly restarts only the Switch consoles.
6+
- **Medal Pop-up Spam Fix**: Fixed an issue where the celebratory Medal milestone pop-up would spam the chat periodically. The milestone pop-up now properly triggers exactly once on the user's very first trade, and subsequent progress can be checked using the `$medals` command.

0 commit comments

Comments
 (0)