Skip to content

Commit

Permalink
remove +1 to provided npc count
Browse files Browse the repository at this point in the history
  • Loading branch information
Lincoln-LM committed Sep 16, 2023
1 parent 3562a20 commit 96cf794
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SWSH_OWRNG_Generator.WinForms/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down
2 changes: 1 addition & 1 deletion SWSH_OWRNG_Generator.WinForms/Subforms/Loto-ID/Loto-ID.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96cf794

Please sign in to comment.