diff --git a/pk3DS/Subforms/Gen6/MartEditor6.cs b/pk3DS/Subforms/Gen6/MartEditor6.cs index e5a2b0f..096667e 100644 --- a/pk3DS/Subforms/Gen6/MartEditor6.cs +++ b/pk3DS/Subforms/Gen6/MartEditor6.cs @@ -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++) diff --git a/pk3DS/Subforms/Gen7/MartEditor7.cs b/pk3DS/Subforms/Gen7/MartEditor7.cs index d0f7f0b..c148772 100644 --- a/pk3DS/Subforms/Gen7/MartEditor7.cs +++ b/pk3DS/Subforms/Gen7/MartEditor7.cs @@ -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++)