mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-08-02 01:34:17 -05:00
Merge pull request #347 from sora10pls/hm-alert
Revise HM randomizer check
This commit is contained in:
commit
2c44b57e13
|
|
@ -159,7 +159,7 @@ private void formClosing(object sender, FormClosingEventArgs e)
|
|||
private void B_RandomTM_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Randomize TMs? Cannot undo.", "Move compatibility will be the same as the base TMs.") != DialogResult.Yes) return;
|
||||
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Randomizing HMs can halt story progression!", "Continue anyway?") != DialogResult.Yes) return;
|
||||
if (CHK_RandomizeHM.Checked && WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Randomizing HMs can halt story progression!", "Continue anyway?") != DialogResult.Yes) return;
|
||||
|
||||
int[] randomMoves = Enumerable.Range(1, movelist.Length - 1).Select(i => i).ToArray();
|
||||
Util.Shuffle(randomMoves);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user