From 2aa06370c08df01ef017e02934d2f416539014ef Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 28 Oct 2017 09:51:11 -0700 Subject: [PATCH] Copy personal rand files back to working files Closes #225 --- pk3DS/Subforms/Gen6/PersonalEditor6.cs | 1 + pk3DS/Subforms/Gen7/PersonalEditor7.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/pk3DS/Subforms/Gen6/PersonalEditor6.cs b/pk3DS/Subforms/Gen6/PersonalEditor6.cs index 0b6f95c..a681253 100644 --- a/pk3DS/Subforms/Gen6/PersonalEditor6.cs +++ b/pk3DS/Subforms/Gen6/PersonalEditor6.cs @@ -359,6 +359,7 @@ private void B_Randomize_Click(object sender, EventArgs e) AllowWonderGuard = CHK_WGuard.Checked }; rnd.Execute(); + Main.SpeciesStat.Select(z => z.Write()).ToArray().CopyTo(files, 0); readEntry(); WinFormsUtil.Alert("All relevant Pokémon Personal Entries have been randomized!"); diff --git a/pk3DS/Subforms/Gen7/PersonalEditor7.cs b/pk3DS/Subforms/Gen7/PersonalEditor7.cs index b720ecf..1c5f629 100644 --- a/pk3DS/Subforms/Gen7/PersonalEditor7.cs +++ b/pk3DS/Subforms/Gen7/PersonalEditor7.cs @@ -311,6 +311,7 @@ private void B_Randomize_Click(object sender, EventArgs e) AllowWonderGuard = CHK_WGuard.Checked }; rnd.Execute(); + Main.SpeciesStat.Select(z => z.Write()).ToArray().CopyTo(files, 0); readEntry(); WinFormsUtil.Alert("All relevant Pokémon Personal Entries have been randomized!");