Add special-only mart randomization prompt

gen6/gen7
Closes #68
This commit is contained in:
Kurt
2017-04-16 17:38:42 -07:00
parent a7d81ad09b
commit aea09b14b9
2 changed files with 6 additions and 2 deletions

View File

@@ -153,7 +153,9 @@ private void B_Randomize_Click(object sender, EventArgs e)
int ctr = 0;
Util.Shuffle(validItems);
for (int i = 0; i < CB_Location.Items.Count; i++)
bool specialOnly = DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Randomize only special marts?", "Will leave regular necessities intact.");
int start = specialOnly ? 9 : 0;
for (int i = start; i < CB_Location.Items.Count; i++)
{
CB_Location.SelectedIndex = i;
for (int r = 0; r < dgv.Rows.Count; r++)

View File

@@ -167,7 +167,9 @@ private void B_Randomize_Click(object sender, EventArgs e)
int ctr = 0;
Util.Shuffle(validItems);
for (int i = 0; i < CB_Location.Items.Count; i++)
bool specialOnly = DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Randomize only special marts?", "Will leave regular necessities intact.");
int start = specialOnly ? 8 : 0;
for (int i = start; i < CB_Location.Items.Count; i++)
{
CB_Location.SelectedIndex = i;
for (int r = 0; r < dgv.Rows.Count; r++)