From 96cf7941a4ec204a2f7ae2ad34892431eea88b11 Mon Sep 17 00:00:00 2001 From: Lincoln-LM <73306575+Lincoln-LM@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:56:36 -0600 Subject: [PATCH] remove +1 to provided npc count --- SWSH_OWRNG_Generator.WinForms/MainWindow.cs | 2 +- .../Subforms/Cram-o-matic/Cram-o-matic.cs | 2 +- SWSH_OWRNG_Generator.WinForms/Subforms/Loto-ID/Loto-ID.cs | 2 +- .../Subforms/MenuCloseTimeline/MenuCloseTimeline.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SWSH_OWRNG_Generator.WinForms/MainWindow.cs b/SWSH_OWRNG_Generator.WinForms/MainWindow.cs index d05adbb..a4b8867 100644 --- a/SWSH_OWRNG_Generator.WinForms/MainWindow.cs +++ b/SWSH_OWRNG_Generator.WinForms/MainWindow.cs @@ -565,7 +565,7 @@ private async void ButtonSearch_Click(object sender, EventArgs e) uint NPCs = 0; if (CheckMenuClose.Checked) { - NPCs = uint.Parse(InputNPCs.Text) + 1; + NPCs = uint.Parse(InputNPCs.Text); } Core.Overworld.Filter Filters = new() { diff --git a/SWSH_OWRNG_Generator.WinForms/Subforms/Cram-o-matic/Cram-o-matic.cs b/SWSH_OWRNG_Generator.WinForms/Subforms/Cram-o-matic/Cram-o-matic.cs index 2647e5c..404a372 100644 --- a/SWSH_OWRNG_Generator.WinForms/Subforms/Cram-o-matic/Cram-o-matic.cs +++ b/SWSH_OWRNG_Generator.WinForms/Subforms/Cram-o-matic/Cram-o-matic.cs @@ -34,7 +34,7 @@ private async void CramSearch_Click(object sender, EventArgs e) uint NPCs = 0; if (CheckMenuClose.Checked) { - NPCs = uint.Parse(InputNPCs.Text) + 1; + NPCs = uint.Parse(InputNPCs.Text); } diff --git a/SWSH_OWRNG_Generator.WinForms/Subforms/Loto-ID/Loto-ID.cs b/SWSH_OWRNG_Generator.WinForms/Subforms/Loto-ID/Loto-ID.cs index 27d98c2..02a8e48 100644 --- a/SWSH_OWRNG_Generator.WinForms/Subforms/Loto-ID/Loto-ID.cs +++ b/SWSH_OWRNG_Generator.WinForms/Subforms/Loto-ID/Loto-ID.cs @@ -65,7 +65,7 @@ private async void LotoIDSearch_Click(object sender, EventArgs e) MainWindow.Pad(InputNPCs, '0', 1); uint NPCs = 0; if (CheckMenuClose.Checked) - NPCs = uint.Parse(InputNPCs.Text) + 1; + NPCs = uint.Parse(InputNPCs.Text); MainWindow.Pad(InputMaxAdv, '0', 1); ulong advances = ulong.Parse(InputMaxAdv.Text); diff --git a/SWSH_OWRNG_Generator.WinForms/Subforms/MenuCloseTimeline/MenuCloseTimeline.cs b/SWSH_OWRNG_Generator.WinForms/Subforms/MenuCloseTimeline/MenuCloseTimeline.cs index bd2248e..648cedf 100644 --- a/SWSH_OWRNG_Generator.WinForms/Subforms/MenuCloseTimeline/MenuCloseTimeline.cs +++ b/SWSH_OWRNG_Generator.WinForms/Subforms/MenuCloseTimeline/MenuCloseTimeline.cs @@ -30,7 +30,7 @@ private async void TimelineSearch_Click(object sender, System.EventArgs e) ulong s0 = ulong.Parse(InputState0.Text, NumberStyles.AllowHexSpecifier); ulong s1 = ulong.Parse(InputState1.Text, NumberStyles.AllowHexSpecifier); MainWindow.Pad(InputNPCs, '0', 1); - uint NPCs = uint.Parse(InputNPCs.Text) + 1; + uint NPCs = uint.Parse(InputNPCs.Text); MainWindow.Pad(InputMaxAdv, '0', 1); ulong advances = ulong.Parse(InputMaxAdv.Text);