Quality of life changes (#317)

* Quality of life changes

* Re-add raw color textbox
This commit is contained in:
Matt
2018-04-10 19:13:34 -04:00
committed by Kurt
parent 7fbf8b7e78
commit 32f9fe4cfc
17 changed files with 513 additions and 435 deletions

View File

@@ -201,7 +201,6 @@ public static partial class Legal
184, // Battle Legend
#endregion
};
public static readonly int[] SpecialClasses_USUM =
{
#region Classes

24
pk3DS/Main.Designer.cs generated
View File

@@ -138,7 +138,7 @@ private void InitializeComponent()
this.B_OPower.Name = "B_OPower";
this.B_OPower.Size = new System.Drawing.Size(100, 23);
this.B_OPower.TabIndex = 4;
this.B_OPower.Text = "O-Power";
this.B_OPower.Text = "O-Powers";
this.B_OPower.UseVisualStyleBackColor = true;
this.B_OPower.Click += new System.EventHandler(this.B_OPower_Click);
//
@@ -148,7 +148,7 @@ private void InitializeComponent()
this.B_Pickup.Name = "B_Pickup";
this.B_Pickup.Size = new System.Drawing.Size(100, 23);
this.B_Pickup.TabIndex = 0;
this.B_Pickup.Text = "Pickup";
this.B_Pickup.Text = "Pickup Items";
this.B_Pickup.UseVisualStyleBackColor = true;
this.B_Pickup.Click += new System.EventHandler(this.B_Pickup_Click);
//
@@ -309,7 +309,7 @@ private void InitializeComponent()
//
this.Menu_RomFS.Enabled = false;
this.Menu_RomFS.Name = "Menu_RomFS";
this.Menu_RomFS.Size = new System.Drawing.Size(152, 22);
this.Menu_RomFS.Size = new System.Drawing.Size(111, 22);
this.Menu_RomFS.Text = "RomFS";
this.Menu_RomFS.Click += new System.EventHandler(this.rebuildRomFS);
//
@@ -317,7 +317,7 @@ private void InitializeComponent()
//
this.Menu_ExeFS.Enabled = false;
this.Menu_ExeFS.Name = "Menu_ExeFS";
this.Menu_ExeFS.Size = new System.Drawing.Size(152, 22);
this.Menu_ExeFS.Size = new System.Drawing.Size(111, 22);
this.Menu_ExeFS.Text = "ExeFS";
this.Menu_ExeFS.Click += new System.EventHandler(this.rebuildExeFS);
//
@@ -325,7 +325,7 @@ private void InitializeComponent()
//
this.Menu_CRO.Enabled = false;
this.Menu_CRO.Name = "Menu_CRO";
this.Menu_CRO.Size = new System.Drawing.Size(152, 22);
this.Menu_CRO.Size = new System.Drawing.Size(111, 22);
this.Menu_CRO.Text = "CRO";
this.Menu_CRO.Click += new System.EventHandler(this.patchCRO_CRR);
//
@@ -333,7 +333,7 @@ private void InitializeComponent()
//
this.Menu_3DS.Enabled = false;
this.Menu_3DS.Name = "Menu_3DS";
this.Menu_3DS.Size = new System.Drawing.Size(152, 22);
this.Menu_3DS.Size = new System.Drawing.Size(111, 22);
this.Menu_3DS.Text = ".3DS";
this.Menu_3DS.Click += new System.EventHandler(this.B_Rebuild3DS_Click);
//
@@ -341,7 +341,7 @@ private void InitializeComponent()
//
this.Menu_Patch.Enabled = false;
this.Menu_Patch.Name = "Menu_Patch";
this.Menu_Patch.Size = new System.Drawing.Size(152, 22);
this.Menu_Patch.Size = new System.Drawing.Size(111, 22);
this.Menu_Patch.Text = "Patch";
this.Menu_Patch.Click += new System.EventHandler(this.B_Patch_Click);
//
@@ -363,7 +363,7 @@ private void InitializeComponent()
// setInt32SeedToolStripMenuItem
//
this.setInt32SeedToolStripMenuItem.Name = "setInt32SeedToolStripMenuItem";
this.setInt32SeedToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.setInt32SeedToolStripMenuItem.Size = new System.Drawing.Size(146, 22);
this.setInt32SeedToolStripMenuItem.Text = "Set int32 seed";
this.setInt32SeedToolStripMenuItem.Click += new System.EventHandler(this.setInt32SeedToolStripMenuItem_Click);
//
@@ -382,7 +382,7 @@ private void InitializeComponent()
this.Menu_Language.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.CB_Lang});
this.Menu_Language.Name = "Menu_Language";
this.Menu_Language.Size = new System.Drawing.Size(152, 22);
this.Menu_Language.Size = new System.Drawing.Size(146, 22);
this.Menu_Language.Text = "Language";
//
// CB_Lang
@@ -408,14 +408,14 @@ private void InitializeComponent()
this.Menu_About.Name = "Menu_About";
this.Menu_About.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.B)));
this.Menu_About.ShowShortcutKeys = false;
this.Menu_About.Size = new System.Drawing.Size(152, 22);
this.Menu_About.Size = new System.Drawing.Size(146, 22);
this.Menu_About.Text = "A&bout pk3DS";
this.Menu_About.Click += new System.EventHandler(this.L_About_Click);
//
// Menu_GARCs
//
this.Menu_GARCs.Name = "Menu_GARCs";
this.Menu_GARCs.Size = new System.Drawing.Size(152, 22);
this.Menu_GARCs.Size = new System.Drawing.Size(146, 22);
this.Menu_GARCs.Text = "About GARCs";
this.Menu_GARCs.Click += new System.EventHandler(this.L_GARCInfo_Click);
//
@@ -705,7 +705,7 @@ private void InitializeComponent()
this.B_Starter.Name = "B_Starter";
this.B_Starter.Size = new System.Drawing.Size(100, 23);
this.B_Starter.TabIndex = 1;
this.B_Starter.Text = "Starters";
this.B_Starter.Text = "Starter Pokémon";
this.B_Starter.UseVisualStyleBackColor = true;
this.B_Starter.Click += new System.EventHandler(this.B_Starter_Click);
//

View File

@@ -639,6 +639,9 @@ private void B_Wild_Click(object sender, EventArgs e)
private void B_OWSE_Click(object sender, EventArgs e)
{
if (threadActive()) return;
if (DialogResult.Yes != WinFormsUtil.Prompt(MessageBoxButtons.YesNo,
"The OverWorld/Script Editor is not recommended for most users and is still a work-in-progress.", "Continue anyway?"))
return;
switch (Config.Generation)
{
case 6:

View File

@@ -123,7 +123,7 @@ private void B_RandAll_Click(object sender, EventArgs e)
rand.Execute();
sets.Select(z => z.Write()).ToArray().CopyTo(files, 0);
getList();
WinFormsUtil.Alert("All Pokémon's Egg Moves have been randomized!");
WinFormsUtil.Alert("All Pokémon's Egg Moves have been randomized!", "Press the Dump button to see the new Egg Moves!");
}
private void B_Dump_Click(object sender, EventArgs e)
{

View File

@@ -231,7 +231,6 @@ private void B_RandAll_Click(object sender, EventArgs e)
continue; // skip Lucario, battle needs to Mega Evolve
int[] items = GetRandomMega(out species);
NUD_Form.Value = 0;
CB_HeldItem.SelectedIndex = items[Util.rand.Next(0, items.Length)];
}
else

View File

@@ -155,10 +155,12 @@ private void B_RandAll_Click(object sender, EventArgs e)
rand.Execute();
sets.Select(z => z.Write()).ToArray().CopyTo(files, 0);
getList();
WinFormsUtil.Alert("All Pokémon's Level Up Moves have been randomized!");
WinFormsUtil.Alert("All Pokémon's Level Up Moves have been randomized!", "Press the Dump button to see the new Level Up Moves!");
}
private void B_Metronome_Click(object sender, EventArgs e)
{
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Play using Metronome Mode?", "This will modify learnsets to only have Metronome.") != DialogResult.Yes) return;
// clear all data, then only assign Metronome at Lv1
for (int i = 0; i < CB_Species.Items.Count; i++)
{
@@ -169,7 +171,7 @@ private void B_Metronome_Click(object sender, EventArgs e)
dgv.Rows[0].Cells[1].Value = movelist[118];
}
CB_Species.SelectedIndex = 0;
WinFormsUtil.Alert("All Pokémon now only know the move Metronome!", "It is recommended that you open the Move Editor and set the Base PP for Metronome to 40.");
WinFormsUtil.Alert("All Pokémon now only know the move Metronome!");
}
private void B_Dump_Click(object sender, EventArgs e)
{

View File

@@ -32,9 +32,11 @@ private void InitializeComponent()
this.L_Species_Precursor = new System.Windows.Forms.Label();
this.TC_Pokemon = new System.Windows.Forms.TabControl();
this.TP_General = new System.Windows.Forms.TabPage();
this.L_HiddenAbility = new System.Windows.Forms.Label();
this.L_Ability2 = new System.Windows.Forms.Label();
this.L_Ability1 = new System.Windows.Forms.Label();
this.TB_BST = new System.Windows.Forms.TextBox();
this.L_BST = new System.Windows.Forms.Label();
this.TB_RawColor = new System.Windows.Forms.TextBox();
this.TB_CatchRate = new System.Windows.Forms.MaskedTextBox();
this.TB_Stage = new System.Windows.Forms.TextBox();
this.L_Stage = new System.Windows.Forms.Label();
@@ -107,6 +109,7 @@ private void InitializeComponent()
this.CLB_TMHM = new System.Windows.Forms.CheckedListBox();
this.TP_Randomizer = new System.Windows.Forms.TabPage();
this.GB_Modifier = new System.Windows.Forms.GroupBox();
this.CHK_NoTutor = new System.Windows.Forms.CheckBox();
this.CHK_CatchRateMod = new System.Windows.Forms.CheckBox();
this.L_CatchRateMod = new System.Windows.Forms.Label();
this.NUD_CatchRateMod = new System.Windows.Forms.NumericUpDown();
@@ -145,7 +148,7 @@ private void InitializeComponent()
this.B_Randomize = new System.Windows.Forms.Button();
this.PB_MonSprite = new System.Windows.Forms.PictureBox();
this.B_Dump = new System.Windows.Forms.Button();
this.CHK_NoTutor = new System.Windows.Forms.CheckBox();
this.TB_RawColor = new System.Windows.Forms.TextBox();
this.TC_Pokemon.SuspendLayout();
this.TP_General.SuspendLayout();
this.TP_MoveTutors.SuspendLayout();
@@ -190,14 +193,17 @@ private void InitializeComponent()
this.TC_Pokemon.Location = new System.Drawing.Point(12, 40);
this.TC_Pokemon.Name = "TC_Pokemon";
this.TC_Pokemon.SelectedIndex = 0;
this.TC_Pokemon.Size = new System.Drawing.Size(445, 365);
this.TC_Pokemon.Size = new System.Drawing.Size(445, 375);
this.TC_Pokemon.TabIndex = 416;
//
// TP_General
//
this.TP_General.Controls.Add(this.TB_RawColor);
this.TP_General.Controls.Add(this.L_HiddenAbility);
this.TP_General.Controls.Add(this.L_Ability2);
this.TP_General.Controls.Add(this.L_Ability1);
this.TP_General.Controls.Add(this.TB_BST);
this.TP_General.Controls.Add(this.L_BST);
this.TP_General.Controls.Add(this.TB_RawColor);
this.TP_General.Controls.Add(this.TB_CatchRate);
this.TP_General.Controls.Add(this.TB_Stage);
this.TP_General.Controls.Add(this.L_Stage);
@@ -264,11 +270,38 @@ private void InitializeComponent()
this.TP_General.Location = new System.Drawing.Point(4, 22);
this.TP_General.Name = "TP_General";
this.TP_General.Padding = new System.Windows.Forms.Padding(3);
this.TP_General.Size = new System.Drawing.Size(437, 339);
this.TP_General.Size = new System.Drawing.Size(437, 349);
this.TP_General.TabIndex = 0;
this.TP_General.Text = "General Info";
this.TP_General.UseVisualStyleBackColor = true;
//
// L_HiddenAbility
//
this.L_HiddenAbility.AutoSize = true;
this.L_HiddenAbility.Location = new System.Drawing.Point(413, 126);
this.L_HiddenAbility.Name = "L_HiddenAbility";
this.L_HiddenAbility.Size = new System.Drawing.Size(21, 13);
this.L_HiddenAbility.TabIndex = 93;
this.L_HiddenAbility.Text = "(H)";
//
// L_Ability2
//
this.L_Ability2.AutoSize = true;
this.L_Ability2.Location = new System.Drawing.Point(414, 104);
this.L_Ability2.Name = "L_Ability2";
this.L_Ability2.Size = new System.Drawing.Size(19, 13);
this.L_Ability2.TabIndex = 92;
this.L_Ability2.Text = "(2)";
//
// L_Ability1
//
this.L_Ability1.AutoSize = true;
this.L_Ability1.Location = new System.Drawing.Point(414, 82);
this.L_Ability1.Name = "L_Ability1";
this.L_Ability1.Size = new System.Drawing.Size(19, 13);
this.L_Ability1.TabIndex = 91;
this.L_Ability1.Text = "(1)";
//
// TB_BST
//
this.TB_BST.Location = new System.Drawing.Point(387, 27);
@@ -289,16 +322,6 @@ private void InitializeComponent()
this.L_BST.Text = "BST:";
this.L_BST.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// TB_RawColor
//
this.TB_RawColor.Location = new System.Drawing.Point(236, 211);
this.TB_RawColor.Name = "TB_RawColor";
this.TB_RawColor.ReadOnly = true;
this.TB_RawColor.Size = new System.Drawing.Size(30, 20);
this.TB_RawColor.TabIndex = 88;
this.TB_RawColor.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.TB_RawColor.Visible = false;
//
// TB_CatchRate
//
this.TB_CatchRate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -312,17 +335,17 @@ private void InitializeComponent()
//
// TB_Stage
//
this.TB_Stage.Location = new System.Drawing.Point(376, 248);
this.TB_Stage.Location = new System.Drawing.Point(384, 238);
this.TB_Stage.Name = "TB_Stage";
this.TB_Stage.ReadOnly = true;
this.TB_Stage.Size = new System.Drawing.Size(30, 20);
this.TB_Stage.Size = new System.Drawing.Size(32, 20);
this.TB_Stage.TabIndex = 86;
this.TB_Stage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_Stage
//
this.L_Stage.AutoSize = true;
this.L_Stage.Location = new System.Drawing.Point(290, 251);
this.L_Stage.Location = new System.Drawing.Point(299, 240);
this.L_Stage.Name = "L_Stage";
this.L_Stage.Size = new System.Drawing.Size(85, 13);
this.L_Stage.TabIndex = 85;
@@ -332,7 +355,7 @@ private void InitializeComponent()
// L_WeightKG
//
this.L_WeightKG.AutoSize = true;
this.L_WeightKG.Location = new System.Drawing.Point(269, 300);
this.L_WeightKG.Location = new System.Drawing.Point(416, 326);
this.L_WeightKG.Name = "L_WeightKG";
this.L_WeightKG.Size = new System.Drawing.Size(19, 13);
this.L_WeightKG.TabIndex = 84;
@@ -341,7 +364,7 @@ private void InitializeComponent()
// L_HeightM
//
this.L_HeightM.AutoSize = true;
this.L_HeightM.Location = new System.Drawing.Point(128, 300);
this.L_HeightM.Location = new System.Drawing.Point(416, 305);
this.L_HeightM.Name = "L_HeightM";
this.L_HeightM.Size = new System.Drawing.Size(15, 13);
this.L_HeightM.TabIndex = 83;
@@ -349,17 +372,17 @@ private void InitializeComponent()
//
// TB_FormeCount
//
this.TB_FormeCount.Location = new System.Drawing.Point(376, 296);
this.TB_FormeCount.Location = new System.Drawing.Point(384, 280);
this.TB_FormeCount.Name = "TB_FormeCount";
this.TB_FormeCount.ReadOnly = true;
this.TB_FormeCount.Size = new System.Drawing.Size(30, 20);
this.TB_FormeCount.Size = new System.Drawing.Size(32, 20);
this.TB_FormeCount.TabIndex = 82;
this.TB_FormeCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_FormesCount
//
this.L_FormesCount.AutoSize = true;
this.L_FormesCount.Location = new System.Drawing.Point(300, 300);
this.L_FormesCount.Location = new System.Drawing.Point(309, 283);
this.L_FormesCount.Name = "L_FormesCount";
this.L_FormesCount.Size = new System.Drawing.Size(75, 13);
this.L_FormesCount.TabIndex = 81;
@@ -368,17 +391,17 @@ private void InitializeComponent()
//
// TB_FormeSprite
//
this.TB_FormeSprite.Location = new System.Drawing.Point(376, 272);
this.TB_FormeSprite.Location = new System.Drawing.Point(384, 259);
this.TB_FormeSprite.Name = "TB_FormeSprite";
this.TB_FormeSprite.ReadOnly = true;
this.TB_FormeSprite.Size = new System.Drawing.Size(30, 20);
this.TB_FormeSprite.Size = new System.Drawing.Size(32, 20);
this.TB_FormeSprite.TabIndex = 80;
this.TB_FormeSprite.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_FormeSprite
//
this.L_FormeSprite.AutoSize = true;
this.L_FormeSprite.Location = new System.Drawing.Point(306, 276);
this.L_FormeSprite.Location = new System.Drawing.Point(315, 262);
this.L_FormeSprite.Name = "L_FormeSprite";
this.L_FormeSprite.Size = new System.Drawing.Size(69, 13);
this.L_FormeSprite.TabIndex = 79;
@@ -399,9 +422,9 @@ private void InitializeComponent()
this.CB_Color.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Color.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Color.FormattingEnabled = true;
this.CB_Color.Location = new System.Drawing.Point(311, 211);
this.CB_Color.Location = new System.Drawing.Point(295, 209);
this.CB_Color.Name = "CB_Color";
this.CB_Color.Size = new System.Drawing.Size(105, 21);
this.CB_Color.Size = new System.Drawing.Size(121, 21);
this.CB_Color.TabIndex = 76;
//
// CB_EXPGroup
@@ -417,7 +440,7 @@ private void InitializeComponent()
// L_Color
//
this.L_Color.AutoSize = true;
this.L_Color.Location = new System.Drawing.Point(276, 214);
this.L_Color.Location = new System.Drawing.Point(261, 211);
this.L_Color.Name = "L_Color";
this.L_Color.Size = new System.Drawing.Size(34, 13);
this.L_Color.TabIndex = 74;
@@ -426,7 +449,7 @@ private void InitializeComponent()
// L_EXPGrowth
//
this.L_EXPGrowth.AutoSize = true;
this.L_EXPGrowth.Location = new System.Drawing.Point(16, 214);
this.L_EXPGrowth.Location = new System.Drawing.Point(16, 213);
this.L_EXPGrowth.Name = "L_EXPGrowth";
this.L_EXPGrowth.Size = new System.Drawing.Size(63, 13);
this.L_EXPGrowth.TabIndex = 73;
@@ -435,27 +458,27 @@ private void InitializeComponent()
// TB_Weight
//
this.TB_Weight.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Weight.Location = new System.Drawing.Point(235, 296);
this.TB_Weight.Location = new System.Drawing.Point(384, 322);
this.TB_Weight.Mask = "000.0";
this.TB_Weight.Name = "TB_Weight";
this.TB_Weight.Size = new System.Drawing.Size(31, 20);
this.TB_Weight.Size = new System.Drawing.Size(32, 20);
this.TB_Weight.TabIndex = 72;
this.TB_Weight.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// TB_Height
//
this.TB_Height.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Height.Location = new System.Drawing.Point(94, 296);
this.TB_Height.Location = new System.Drawing.Point(384, 301);
this.TB_Height.Mask = "00.0";
this.TB_Height.Name = "TB_Height";
this.TB_Height.Size = new System.Drawing.Size(31, 20);
this.TB_Height.Size = new System.Drawing.Size(32, 20);
this.TB_Height.TabIndex = 71;
this.TB_Height.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_Weight
//
this.L_Weight.AutoSize = true;
this.L_Weight.Location = new System.Drawing.Point(190, 300);
this.L_Weight.Location = new System.Drawing.Point(340, 325);
this.L_Weight.Name = "L_Weight";
this.L_Weight.Size = new System.Drawing.Size(44, 13);
this.L_Weight.TabIndex = 70;
@@ -465,7 +488,7 @@ private void InitializeComponent()
// L_Height
//
this.L_Height.AutoSize = true;
this.L_Height.Location = new System.Drawing.Point(52, 300);
this.L_Height.Location = new System.Drawing.Point(343, 304);
this.L_Height.Name = "L_Height";
this.L_Height.Size = new System.Drawing.Size(41, 13);
this.L_Height.TabIndex = 69;
@@ -477,7 +500,7 @@ private void InitializeComponent()
this.CB_Ability3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Ability3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Ability3.FormattingEnabled = true;
this.CB_Ability3.Location = new System.Drawing.Point(276, 131);
this.CB_Ability3.Location = new System.Drawing.Point(272, 123);
this.CB_Ability3.Name = "CB_Ability3";
this.CB_Ability3.Size = new System.Drawing.Size(140, 21);
this.CB_Ability3.TabIndex = 68;
@@ -487,7 +510,7 @@ private void InitializeComponent()
this.CB_Ability2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Ability2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Ability2.FormattingEnabled = true;
this.CB_Ability2.Location = new System.Drawing.Point(276, 105);
this.CB_Ability2.Location = new System.Drawing.Point(272, 101);
this.CB_Ability2.Name = "CB_Ability2";
this.CB_Ability2.Size = new System.Drawing.Size(140, 21);
this.CB_Ability2.TabIndex = 67;
@@ -497,7 +520,7 @@ private void InitializeComponent()
this.CB_Ability1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Ability1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Ability1.FormattingEnabled = true;
this.CB_Ability1.Location = new System.Drawing.Point(276, 79);
this.CB_Ability1.Location = new System.Drawing.Point(272, 79);
this.CB_Ability1.Name = "CB_Ability1";
this.CB_Ability1.Size = new System.Drawing.Size(140, 21);
this.CB_Ability1.TabIndex = 66;
@@ -507,7 +530,7 @@ private void InitializeComponent()
this.CB_EggGroup2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_EggGroup2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_EggGroup2.FormattingEnabled = true;
this.CB_EggGroup2.Location = new System.Drawing.Point(295, 184);
this.CB_EggGroup2.Location = new System.Drawing.Point(295, 180);
this.CB_EggGroup2.Name = "CB_EggGroup2";
this.CB_EggGroup2.Size = new System.Drawing.Size(121, 21);
this.CB_EggGroup2.TabIndex = 65;
@@ -534,7 +557,7 @@ private void InitializeComponent()
// L_Ability
//
this.L_Ability.AutoSize = true;
this.L_Ability.Location = new System.Drawing.Point(230, 83);
this.L_Ability.Location = new System.Drawing.Point(226, 83);
this.L_Ability.Name = "L_Ability";
this.L_Ability.Size = new System.Drawing.Size(45, 13);
this.L_Ability.TabIndex = 62;
@@ -543,7 +566,7 @@ private void InitializeComponent()
// TB_BaseExp
//
this.TB_BaseExp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_BaseExp.Location = new System.Drawing.Point(235, 272);
this.TB_BaseExp.Location = new System.Drawing.Point(77, 302);
this.TB_BaseExp.Mask = "000";
this.TB_BaseExp.Name = "TB_BaseExp";
this.TB_BaseExp.Size = new System.Drawing.Size(31, 20);
@@ -554,7 +577,7 @@ private void InitializeComponent()
// L_BaseEXP
//
this.L_BaseEXP.AutoSize = true;
this.L_BaseEXP.Location = new System.Drawing.Point(176, 276);
this.L_BaseEXP.Location = new System.Drawing.Point(18, 306);
this.L_BaseEXP.Name = "L_BaseEXP";
this.L_BaseEXP.Size = new System.Drawing.Size(58, 13);
this.L_BaseEXP.TabIndex = 60;
@@ -564,7 +587,7 @@ private void InitializeComponent()
// TB_HatchCycles
//
this.TB_HatchCycles.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_HatchCycles.Location = new System.Drawing.Point(235, 248);
this.TB_HatchCycles.Location = new System.Drawing.Point(77, 323);
this.TB_HatchCycles.Mask = "000";
this.TB_HatchCycles.Name = "TB_HatchCycles";
this.TB_HatchCycles.Size = new System.Drawing.Size(31, 20);
@@ -575,7 +598,7 @@ private void InitializeComponent()
// L_HatchCycles
//
this.L_HatchCycles.AutoSize = true;
this.L_HatchCycles.Location = new System.Drawing.Point(161, 251);
this.L_HatchCycles.Location = new System.Drawing.Point(3, 326);
this.L_HatchCycles.Name = "L_HatchCycles";
this.L_HatchCycles.Size = new System.Drawing.Size(73, 13);
this.L_HatchCycles.TabIndex = 57;
@@ -585,7 +608,7 @@ private void InitializeComponent()
// TB_Friendship
//
this.TB_Friendship.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Friendship.Location = new System.Drawing.Point(94, 272);
this.TB_Friendship.Location = new System.Drawing.Point(77, 281);
this.TB_Friendship.Mask = "000";
this.TB_Friendship.Name = "TB_Friendship";
this.TB_Friendship.Size = new System.Drawing.Size(31, 20);
@@ -596,7 +619,7 @@ private void InitializeComponent()
// TB_Gender
//
this.TB_Gender.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Gender.Location = new System.Drawing.Point(94, 248);
this.TB_Gender.Location = new System.Drawing.Point(77, 260);
this.TB_Gender.Mask = "000";
this.TB_Gender.Name = "TB_Gender";
this.TB_Gender.Size = new System.Drawing.Size(31, 20);
@@ -607,7 +630,7 @@ private void InitializeComponent()
// L_Friendship
//
this.L_Friendship.AutoSize = true;
this.L_Friendship.Location = new System.Drawing.Point(35, 276);
this.L_Friendship.Location = new System.Drawing.Point(18, 285);
this.L_Friendship.Name = "L_Friendship";
this.L_Friendship.Size = new System.Drawing.Size(58, 13);
this.L_Friendship.TabIndex = 54;
@@ -617,7 +640,7 @@ private void InitializeComponent()
// L_Gender
//
this.L_Gender.AutoSize = true;
this.L_Gender.Location = new System.Drawing.Point(48, 251);
this.L_Gender.Location = new System.Drawing.Point(31, 264);
this.L_Gender.Name = "L_Gender";
this.L_Gender.Size = new System.Drawing.Size(45, 13);
this.L_Gender.TabIndex = 53;
@@ -627,7 +650,7 @@ private void InitializeComponent()
// L_Item1
//
this.L_Item1.AutoSize = true;
this.L_Item1.Location = new System.Drawing.Point(195, 134);
this.L_Item1.Location = new System.Drawing.Point(195, 126);
this.L_Item1.Name = "L_Item1";
this.L_Item1.Size = new System.Drawing.Size(21, 13);
this.L_Item1.TabIndex = 52;
@@ -636,7 +659,7 @@ private void InitializeComponent()
// L_Item5
//
this.L_Item5.AutoSize = true;
this.L_Item5.Location = new System.Drawing.Point(195, 107);
this.L_Item5.Location = new System.Drawing.Point(195, 104);
this.L_Item5.Name = "L_Item5";
this.L_Item5.Size = new System.Drawing.Size(21, 13);
this.L_Item5.TabIndex = 51;
@@ -656,7 +679,7 @@ private void InitializeComponent()
this.CB_HeldItem3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_HeldItem3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_HeldItem3.FormattingEnabled = true;
this.CB_HeldItem3.Location = new System.Drawing.Point(52, 131);
this.CB_HeldItem3.Location = new System.Drawing.Point(52, 123);
this.CB_HeldItem3.Name = "CB_HeldItem3";
this.CB_HeldItem3.Size = new System.Drawing.Size(140, 21);
this.CB_HeldItem3.TabIndex = 49;
@@ -666,7 +689,7 @@ private void InitializeComponent()
this.CB_HeldItem2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_HeldItem2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_HeldItem2.FormattingEnabled = true;
this.CB_HeldItem2.Location = new System.Drawing.Point(52, 105);
this.CB_HeldItem2.Location = new System.Drawing.Point(52, 101);
this.CB_HeldItem2.Name = "CB_HeldItem2";
this.CB_HeldItem2.Size = new System.Drawing.Size(140, 21);
this.CB_HeldItem2.TabIndex = 48;
@@ -695,7 +718,7 @@ private void InitializeComponent()
this.CB_Type2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Type2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Type2.FormattingEnabled = true;
this.CB_Type2.Location = new System.Drawing.Point(63, 184);
this.CB_Type2.Location = new System.Drawing.Point(63, 180);
this.CB_Type2.Name = "CB_Type2";
this.CB_Type2.Size = new System.Drawing.Size(129, 21);
this.CB_Type2.TabIndex = 45;
@@ -934,7 +957,7 @@ private void InitializeComponent()
this.TP_MoveTutors.Location = new System.Drawing.Point(4, 22);
this.TP_MoveTutors.Name = "TP_MoveTutors";
this.TP_MoveTutors.Padding = new System.Windows.Forms.Padding(3);
this.TP_MoveTutors.Size = new System.Drawing.Size(437, 339);
this.TP_MoveTutors.Size = new System.Drawing.Size(437, 349);
this.TP_MoveTutors.TabIndex = 1;
this.TP_MoveTutors.Text = "Move Tutors";
this.TP_MoveTutors.UseVisualStyleBackColor = true;
@@ -963,9 +986,9 @@ private void InitializeComponent()
this.L_TMHM.AutoSize = true;
this.L_TMHM.Location = new System.Drawing.Point(6, 3);
this.L_TMHM.Name = "L_TMHM";
this.L_TMHM.Size = new System.Drawing.Size(48, 13);
this.L_TMHM.Size = new System.Drawing.Size(58, 13);
this.L_TMHM.TabIndex = 5;
this.L_TMHM.Text = "TM/HM:";
this.L_TMHM.Text = "TMs/HMs:";
//
// CLB_ORASTutors
//
@@ -1007,7 +1030,7 @@ private void InitializeComponent()
this.TP_Randomizer.Controls.Add(this.B_Randomize);
this.TP_Randomizer.Location = new System.Drawing.Point(4, 22);
this.TP_Randomizer.Name = "TP_Randomizer";
this.TP_Randomizer.Size = new System.Drawing.Size(437, 339);
this.TP_Randomizer.Size = new System.Drawing.Size(437, 349);
this.TP_Randomizer.TabIndex = 2;
this.TP_Randomizer.Text = "Enhancements";
this.TP_Randomizer.UseVisualStyleBackColor = true;
@@ -1031,6 +1054,16 @@ private void InitializeComponent()
this.GB_Modifier.TabStop = false;
this.GB_Modifier.Text = "Modifier Options";
//
// CHK_NoTutor
//
this.CHK_NoTutor.AutoSize = true;
this.CHK_NoTutor.Location = new System.Drawing.Point(6, 95);
this.CHK_NoTutor.Name = "CHK_NoTutor";
this.CHK_NoTutor.Size = new System.Drawing.Size(176, 30);
this.CHK_NoTutor.TabIndex = 20;
this.CHK_NoTutor.Text = "Remove All TM/Move Tutor\nCompatibility (Metronome Mode)";
this.CHK_NoTutor.UseVisualStyleBackColor = true;
//
// CHK_CatchRateMod
//
this.CHK_CatchRateMod.AutoSize = true;
@@ -1044,7 +1077,7 @@ private void InitializeComponent()
// L_CatchRateMod
//
this.L_CatchRateMod.AutoSize = true;
this.L_CatchRateMod.Location = new System.Drawing.Point(204, 58);
this.L_CatchRateMod.Location = new System.Drawing.Point(230, 58);
this.L_CatchRateMod.Name = "L_CatchRateMod";
this.L_CatchRateMod.Size = new System.Drawing.Size(34, 13);
this.L_CatchRateMod.TabIndex = 18;
@@ -1107,7 +1140,7 @@ private void InitializeComponent()
// L_FinalXP
//
this.L_FinalXP.AutoSize = true;
this.L_FinalXP.Location = new System.Drawing.Point(6, 71);
this.L_FinalXP.Location = new System.Drawing.Point(6, 74);
this.L_FinalXP.Name = "L_FinalXP";
this.L_FinalXP.Size = new System.Drawing.Size(63, 13);
this.L_FinalXP.TabIndex = 6;
@@ -1115,7 +1148,7 @@ private void InitializeComponent()
//
// NUD_EXP
//
this.NUD_EXP.Location = new System.Drawing.Point(69, 69);
this.NUD_EXP.Location = new System.Drawing.Point(69, 72);
this.NUD_EXP.Maximum = new decimal(new int[] {
300,
0,
@@ -1178,7 +1211,7 @@ private void InitializeComponent()
this.GB_Randomizer.Controls.Add(this.CHK_Item);
this.GB_Randomizer.Location = new System.Drawing.Point(4, 12);
this.GB_Randomizer.Name = "GB_Randomizer";
this.GB_Randomizer.Size = new System.Drawing.Size(345, 129);
this.GB_Randomizer.Size = new System.Drawing.Size(345, 133);
this.GB_Randomizer.TabIndex = 418;
this.GB_Randomizer.TabStop = false;
this.GB_Randomizer.Text = "Randomizer Options";
@@ -1198,15 +1231,15 @@ private void InitializeComponent()
// L_Same
//
this.L_Same.AutoSize = true;
this.L_Same.Location = new System.Drawing.Point(216, 97);
this.L_Same.Location = new System.Drawing.Point(213, 99);
this.L_Same.Name = "L_Same";
this.L_Same.Size = new System.Drawing.Size(48, 13);
this.L_Same.Size = new System.Drawing.Size(51, 13);
this.L_Same.TabIndex = 23;
this.L_Same.Text = "Same(%)";
this.L_Same.Text = "Same (%)";
//
// NUD_Egg
//
this.NUD_Egg.Location = new System.Drawing.Point(267, 95);
this.NUD_Egg.Location = new System.Drawing.Point(267, 97);
this.NUD_Egg.Name = "NUD_Egg";
this.NUD_Egg.Size = new System.Drawing.Size(46, 20);
this.NUD_Egg.TabIndex = 22;
@@ -1314,11 +1347,11 @@ private void InitializeComponent()
// L_SingleType
//
this.L_SingleType.AutoSize = true;
this.L_SingleType.Location = new System.Drawing.Point(115, 78);
this.L_SingleType.Location = new System.Drawing.Point(115, 79);
this.L_SingleType.Name = "L_SingleType";
this.L_SingleType.Size = new System.Drawing.Size(77, 13);
this.L_SingleType.Size = new System.Drawing.Size(80, 13);
this.L_SingleType.TabIndex = 21;
this.L_SingleType.Text = "Single Type(%)";
this.L_SingleType.Text = "Single Type (%)";
//
// CHK_rDEF
//
@@ -1346,7 +1379,7 @@ private void InitializeComponent()
//
// NUD_TypePercent
//
this.NUD_TypePercent.Location = new System.Drawing.Point(134, 94);
this.NUD_TypePercent.Location = new System.Drawing.Point(134, 95);
this.NUD_TypePercent.Name = "NUD_TypePercent";
this.NUD_TypePercent.Size = new System.Drawing.Size(46, 20);
this.NUD_TypePercent.TabIndex = 20;
@@ -1383,11 +1416,11 @@ private void InitializeComponent()
// L_StatDev
//
this.L_StatDev.AutoSize = true;
this.L_StatDev.Location = new System.Drawing.Point(6, 90);
this.L_StatDev.Location = new System.Drawing.Point(6, 92);
this.L_StatDev.Name = "L_StatDev";
this.L_StatDev.Size = new System.Drawing.Size(67, 13);
this.L_StatDev.Size = new System.Drawing.Size(70, 13);
this.L_StatDev.TabIndex = 4;
this.L_StatDev.Text = "Deviance(%)";
this.L_StatDev.Text = "Deviance (%)";
//
// CHK_TM
//
@@ -1403,7 +1436,7 @@ private void InitializeComponent()
//
// NUD_StatDev
//
this.NUD_StatDev.Location = new System.Drawing.Point(27, 106);
this.NUD_StatDev.Location = new System.Drawing.Point(27, 108);
this.NUD_StatDev.Name = "NUD_StatDev";
this.NUD_StatDev.Size = new System.Drawing.Size(46, 20);
this.NUD_StatDev.TabIndex = 3;
@@ -1474,7 +1507,7 @@ private void InitializeComponent()
//
// PB_MonSprite
//
this.PB_MonSprite.Location = new System.Drawing.Point(285, 0);
this.PB_MonSprite.Location = new System.Drawing.Point(285, 1);
this.PB_MonSprite.Name = "PB_MonSprite";
this.PB_MonSprite.Size = new System.Drawing.Size(80, 60);
this.PB_MonSprite.TabIndex = 89;
@@ -1482,7 +1515,7 @@ private void InitializeComponent()
//
// B_Dump
//
this.B_Dump.Location = new System.Drawing.Point(368, 10);
this.B_Dump.Location = new System.Drawing.Point(368, 19);
this.B_Dump.Name = "B_Dump";
this.B_Dump.Size = new System.Drawing.Size(82, 23);
this.B_Dump.TabIndex = 418;
@@ -1490,29 +1523,29 @@ private void InitializeComponent()
this.B_Dump.UseVisualStyleBackColor = true;
this.B_Dump.Click += new System.EventHandler(this.B_Dump_Click);
//
// CHK_NoTutor
// TB_RawColor
//
this.CHK_NoTutor.AutoSize = true;
this.CHK_NoTutor.Location = new System.Drawing.Point(6, 95);
this.CHK_NoTutor.Name = "CHK_NoTutor";
this.CHK_NoTutor.Size = new System.Drawing.Size(212, 17);
this.CHK_NoTutor.TabIndex = 20;
this.CHK_NoTutor.Text = "Remove All TM/HM/Tutor Compatibility";
this.CHK_NoTutor.UseVisualStyleBackColor = true;
this.TB_RawColor.Location = new System.Drawing.Point(229, 209);
this.TB_RawColor.Name = "TB_RawColor";
this.TB_RawColor.ReadOnly = true;
this.TB_RawColor.Size = new System.Drawing.Size(30, 20);
this.TB_RawColor.TabIndex = 419;
this.TB_RawColor.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.TB_RawColor.Visible = false;
//
// PersonalEditor6
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(469, 416);
this.ClientSize = new System.Drawing.Size(469, 426);
this.Controls.Add(this.B_Dump);
this.Controls.Add(this.PB_MonSprite);
this.Controls.Add(this.TC_Pokemon);
this.Controls.Add(this.L_Species_Precursor);
this.Controls.Add(this.CB_Species);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(485, 455);
this.MinimumSize = new System.Drawing.Size(485, 455);
this.MaximumSize = new System.Drawing.Size(485, 465);
this.MinimumSize = new System.Drawing.Size(485, 465);
this.Name = "PersonalEditor6";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Personal Stats Editor";
@@ -1608,7 +1641,6 @@ private void InitializeComponent()
private System.Windows.Forms.TextBox TB_Stage;
private System.Windows.Forms.Label L_Stage;
private System.Windows.Forms.MaskedTextBox TB_CatchRate;
private System.Windows.Forms.TextBox TB_RawColor;
private System.Windows.Forms.Label L_BST;
private System.Windows.Forms.TextBox TB_BST;
private System.Windows.Forms.CheckedListBox CLB_TMHM;
@@ -1658,5 +1690,9 @@ private void InitializeComponent()
private System.Windows.Forms.NumericUpDown NUD_CatchRateMod;
private System.Windows.Forms.CheckBox CHK_Shuffle;
private System.Windows.Forms.CheckBox CHK_NoTutor;
private System.Windows.Forms.Label L_HiddenAbility;
private System.Windows.Forms.Label L_Ability2;
private System.Windows.Forms.Label L_Ability1;
private System.Windows.Forms.TextBox TB_RawColor;
}
}

View File

@@ -306,7 +306,7 @@ private void savePersonal()
pkm.FormeSprite = Convert.ToUInt16(TB_FormeSprite.Text);
pkm.FormeCount = Convert.ToByte(TB_FormeCount.Text);
pkm.Color = (byte) (Convert.ToByte(CB_Color.SelectedIndex) | (Convert.ToByte(TB_RawColor.Text) & 0xF0));
pkm.Color = (byte)(Convert.ToByte(CB_Color.SelectedIndex) | (Convert.ToByte(TB_RawColor.Text) & 0xF0));
pkm.BaseEXP = Convert.ToUInt16(TB_BaseExp.Text);
decimal h; decimal.TryParse(TB_Height.Text, out h);
@@ -337,6 +337,7 @@ private void saveEntry()
private void B_Randomize_Click(object sender, EventArgs e)
{
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Randomize all? Cannot undo.", "Double check Randomization settings in the Enhancements tab.") != DialogResult.Yes) return;
saveEntry();
// input settings
@@ -364,10 +365,12 @@ private void B_Randomize_Click(object sender, EventArgs e)
Main.SpeciesStat.Select(z => z.Write()).ToArray().CopyTo(files, 0);
readEntry();
WinFormsUtil.Alert("All relevant Pokémon Personal Entries have been randomized!");
WinFormsUtil.Alert("Randomized all Pokémon Personal data entries according to specification!", "Press the Dump All button to view the new Personal data!");
}
private void B_ModifyAll(object sender, EventArgs e)
{
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Modify all? Cannot undo.", "Double check Modification settings in the Enhancements tab.") != DialogResult.Yes) return;
for (int i = 1; i < CB_Species.Items.Count; i++)
{
CB_Species.SelectedIndex = i; // Get new Species
@@ -397,7 +400,7 @@ private void B_ModifyAll(object sender, EventArgs e)
TB_CatchRate.Text = ((int)NUD_CatchRateMod.Value).ToString();
}
CB_Species.SelectedIndex = 1;
WinFormsUtil.Alert("All species modified according to specification!");
WinFormsUtil.Alert("Modified all Pokémon Personal data entries according to specification!", "Press the Dump All button to view the new Personal data!");
}
private bool dumping;
private void B_Dump_Click(object sender, EventArgs e)

File diff suppressed because it is too large Load Diff

View File

@@ -717,7 +717,7 @@ private static void RandomizeTeam(trdata6 t, MoveRandomizer move, LearnsetRandom
}
// high-power attacks
if (rForceHighPower && pk.Level >= rForceHighPowerLevel && !rMetronome)
if (rForceHighPower && pk.Level >= rForceHighPowerLevel)
{
var pkMoves = learn.GetHighPoweredMoves(pk.Species, pk.Form, 4);
for (int m = 0; m < 4; m++)

View File

@@ -118,7 +118,7 @@ private void CHK_RandomPKM_CheckedChanged(object sender, EventArgs e)
GB_Tweak.Enabled =
CHK_G1.Checked = CHK_G2.Checked = CHK_G3.Checked =
CHK_G4.Checked = CHK_G5.Checked = CHK_G6.Checked =
CHK_L.Checked = CHK_E.Checked = CHK_StoryMEvos.Checked =
CHK_L.Checked = CHK_E.Checked = CHK_StoryMEvos.Checked = CHK_ForceFullyEvolved.Checked =
CHK_RandomPKM.Checked;
CHK_TypeTheme.Checked = CHK_GymTrainers.Checked = CHK_GymE4Only.Checked =
@@ -162,8 +162,8 @@ private void changeMoveRandomization(object sender, EventArgs e)
CHK_Damage.Enabled = CHK_STAB.Enabled =
NUD_Damage.Enabled = NUD_STAB.Enabled = CB_Moves.SelectedIndex == 1;
//if (CB_Moves.SelectedIndex == 0)
// CHK_6PKM.Checked = false;
CHK_ForceHighPower.Enabled = CHK_ForceHighPower.Checked = NUD_ForceHighPower.Enabled =
CHK_NoFixedDamage.Enabled = CHK_NoFixedDamage.Checked = (CB_Moves.SelectedIndex == 1 || CB_Moves.SelectedIndex == 2);
}
private void CHK_6PKM_CheckedChanged(object sender, EventArgs e)
{

View File

@@ -138,7 +138,7 @@ private void B_RandAll_Click(object sender, EventArgs e)
rand.Execute();
// sets.Select(z => z.Write()).ToArray().CopyTo(files, 0);
getList();
WinFormsUtil.Alert("All Pokémon's Egg Moves have been randomized!");
WinFormsUtil.Alert("All Pokémon's Egg Moves have been randomized!", "Press the Dump All button to see the new Egg Moves!");
}
private void B_Dump_Click(object sender, EventArgs e)
{

View File

@@ -152,10 +152,12 @@ private void B_RandAll_Click(object sender, EventArgs e)
rand.Execute();
sets.Select(z => z.Write()).ToArray().CopyTo(files, 0);
getList();
WinFormsUtil.Alert("All Pokémon's Level Up Moves have been randomized!");
WinFormsUtil.Alert("All Pokémon's Level Up Moves have been randomized!", "Press the Dump button to see the new Level Up Moves!");
}
private void B_Metronome_Click(object sender, EventArgs e)
{
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Play using Metronome Mode?", "This will modify learnsets to only have Metronome.") != DialogResult.Yes) return;
// clear all data, then only assign Metronome at Lv1
for (int i = 0; i < CB_Species.Items.Count; i++)
{
@@ -166,7 +168,7 @@ private void B_Metronome_Click(object sender, EventArgs e)
dgv.Rows[0].Cells[1].Value = movelist[118];
}
CB_Species.SelectedIndex = 0;
WinFormsUtil.Alert("All Pokémon now only know the move Metronome!", "It is recommended that you open the Move Editor and set the Base PP for Metronome to 40.");
WinFormsUtil.Alert("All Pokémon now only know the move Metronome!");
}
private void B_Dump_Click(object sender, EventArgs e)
{

View File

@@ -32,8 +32,11 @@ private void InitializeComponent()
this.L_Species_Precursor = new System.Windows.Forms.Label();
this.TC_Pokemon = new System.Windows.Forms.TabControl();
this.TP_General = new System.Windows.Forms.TabPage();
this.L_HiddenAbility = new System.Windows.Forms.Label();
this.L_WeightKG = new System.Windows.Forms.Label();
this.L_Ability2 = new System.Windows.Forms.Label();
this.L_HeightM = new System.Windows.Forms.Label();
this.L_Ability1 = new System.Windows.Forms.Label();
this.TB_Weight = new System.Windows.Forms.MaskedTextBox();
this.TB_Height = new System.Windows.Forms.MaskedTextBox();
this.L_Weight = new System.Windows.Forms.Label();
@@ -46,7 +49,6 @@ private void InitializeComponent()
this.CHK_Variant = new System.Windows.Forms.CheckBox();
this.TB_BST = new System.Windows.Forms.TextBox();
this.L_BST = new System.Windows.Forms.Label();
this.TB_RawColor = new System.Windows.Forms.TextBox();
this.TB_CatchRate = new System.Windows.Forms.MaskedTextBox();
this.TB_Stage = new System.Windows.Forms.TextBox();
this.L_Stage = new System.Windows.Forms.Label();
@@ -104,9 +106,9 @@ private void InitializeComponent()
this.Label_SPE = new System.Windows.Forms.Label();
this.L_EVYield = new System.Windows.Forms.Label();
this.L_BaseStats = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.L_ZMove = new System.Windows.Forms.Label();
this.L_BaseMove = new System.Windows.Forms.Label();
this.L_ZItem = new System.Windows.Forms.Label();
this.L_ZCrystal = new System.Windows.Forms.Label();
this.TP_MoveTutors = new System.Windows.Forms.TabPage();
this.L_BeachTutors = new System.Windows.Forms.Label();
this.CLB_BeachTutors = new System.Windows.Forms.CheckedListBox();
@@ -116,13 +118,14 @@ private void InitializeComponent()
this.CLB_TM = new System.Windows.Forms.CheckedListBox();
this.TP_Randomizer = new System.Windows.Forms.TabPage();
this.GB_Modifier = new System.Windows.Forms.GroupBox();
this.CHK_NoTutor = new System.Windows.Forms.CheckBox();
this.CHK_CatchRateMod = new System.Windows.Forms.CheckBox();
this.L_CatchRateMod = new System.Windows.Forms.Label();
this.NUD_CatchRateMod = new System.Windows.Forms.NumericUpDown();
this.CHK_CallRate = new System.Windows.Forms.CheckBox();
this.L_CallRateVal = new System.Windows.Forms.Label();
this.NUD_CallRate = new System.Windows.Forms.NumericUpDown();
this.CHK_EXP = new System.Windows.Forms.CheckBox();
this.L_CallRateVal = new System.Windows.Forms.Label();
this.CHK_Growth = new System.Windows.Forms.CheckBox();
this.CHK_QuickHatch = new System.Windows.Forms.CheckBox();
this.L_FinalXP = new System.Windows.Forms.Label();
@@ -146,7 +149,6 @@ private void InitializeComponent()
this.CHK_rATK = new System.Windows.Forms.CheckBox();
this.NUD_TypePercent = new System.Windows.Forms.NumericUpDown();
this.CHK_rHP = new System.Windows.Forms.CheckBox();
this.CHK_HM = new System.Windows.Forms.CheckBox();
this.L_StatDev = new System.Windows.Forms.Label();
this.CHK_TM = new System.Windows.Forms.CheckBox();
this.NUD_StatDev = new System.Windows.Forms.NumericUpDown();
@@ -157,7 +159,7 @@ private void InitializeComponent()
this.B_Randomize = new System.Windows.Forms.Button();
this.PB_MonSprite = new System.Windows.Forms.PictureBox();
this.B_Dump = new System.Windows.Forms.Button();
this.CHK_NoTutor = new System.Windows.Forms.CheckBox();
this.TB_RawColor = new System.Windows.Forms.TextBox();
this.TC_Pokemon.SuspendLayout();
this.TP_General.SuspendLayout();
this.TP_MoveTutors.SuspendLayout();
@@ -208,8 +210,12 @@ private void InitializeComponent()
//
// TP_General
//
this.TP_General.Controls.Add(this.TB_RawColor);
this.TP_General.Controls.Add(this.L_HiddenAbility);
this.TP_General.Controls.Add(this.L_WeightKG);
this.TP_General.Controls.Add(this.L_Ability2);
this.TP_General.Controls.Add(this.L_HeightM);
this.TP_General.Controls.Add(this.L_Ability1);
this.TP_General.Controls.Add(this.TB_Weight);
this.TP_General.Controls.Add(this.TB_Height);
this.TP_General.Controls.Add(this.L_Weight);
@@ -222,7 +228,6 @@ private void InitializeComponent()
this.TP_General.Controls.Add(this.CHK_Variant);
this.TP_General.Controls.Add(this.TB_BST);
this.TP_General.Controls.Add(this.L_BST);
this.TP_General.Controls.Add(this.TB_RawColor);
this.TP_General.Controls.Add(this.TB_CatchRate);
this.TP_General.Controls.Add(this.TB_Stage);
this.TP_General.Controls.Add(this.L_Stage);
@@ -280,9 +285,9 @@ private void InitializeComponent()
this.TP_General.Controls.Add(this.Label_SPE);
this.TP_General.Controls.Add(this.L_EVYield);
this.TP_General.Controls.Add(this.L_BaseStats);
this.TP_General.Controls.Add(this.label1);
this.TP_General.Controls.Add(this.L_ZMove);
this.TP_General.Controls.Add(this.L_BaseMove);
this.TP_General.Controls.Add(this.L_ZItem);
this.TP_General.Controls.Add(this.L_ZCrystal);
this.TP_General.Location = new System.Drawing.Point(4, 22);
this.TP_General.Name = "TP_General";
this.TP_General.Padding = new System.Windows.Forms.Padding(3);
@@ -291,48 +296,75 @@ private void InitializeComponent()
this.TP_General.Text = "General Info";
this.TP_General.UseVisualStyleBackColor = true;
//
// L_HiddenAbility
//
this.L_HiddenAbility.AutoSize = true;
this.L_HiddenAbility.Location = new System.Drawing.Point(413, 126);
this.L_HiddenAbility.Name = "L_HiddenAbility";
this.L_HiddenAbility.Size = new System.Drawing.Size(21, 13);
this.L_HiddenAbility.TabIndex = 421;
this.L_HiddenAbility.Text = "(H)";
//
// L_WeightKG
//
this.L_WeightKG.AutoSize = true;
this.L_WeightKG.Location = new System.Drawing.Point(415, 322);
this.L_WeightKG.Location = new System.Drawing.Point(416, 326);
this.L_WeightKG.Name = "L_WeightKG";
this.L_WeightKG.Size = new System.Drawing.Size(19, 13);
this.L_WeightKG.TabIndex = 105;
this.L_WeightKG.Text = "kg";
//
// L_Ability2
//
this.L_Ability2.AutoSize = true;
this.L_Ability2.Location = new System.Drawing.Point(414, 104);
this.L_Ability2.Name = "L_Ability2";
this.L_Ability2.Size = new System.Drawing.Size(19, 13);
this.L_Ability2.TabIndex = 420;
this.L_Ability2.Text = "(2)";
//
// L_HeightM
//
this.L_HeightM.AutoSize = true;
this.L_HeightM.Location = new System.Drawing.Point(415, 302);
this.L_HeightM.Location = new System.Drawing.Point(416, 305);
this.L_HeightM.Name = "L_HeightM";
this.L_HeightM.Size = new System.Drawing.Size(15, 13);
this.L_HeightM.TabIndex = 104;
this.L_HeightM.Text = "m";
//
// L_Ability1
//
this.L_Ability1.AutoSize = true;
this.L_Ability1.Location = new System.Drawing.Point(414, 82);
this.L_Ability1.Name = "L_Ability1";
this.L_Ability1.Size = new System.Drawing.Size(19, 13);
this.L_Ability1.TabIndex = 419;
this.L_Ability1.Text = "(1)";
//
// TB_Weight
//
this.TB_Weight.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Weight.Location = new System.Drawing.Point(381, 318);
this.TB_Weight.Location = new System.Drawing.Point(384, 322);
this.TB_Weight.Mask = "000.0";
this.TB_Weight.Name = "TB_Weight";
this.TB_Weight.Size = new System.Drawing.Size(31, 20);
this.TB_Weight.Size = new System.Drawing.Size(32, 20);
this.TB_Weight.TabIndex = 103;
this.TB_Weight.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// TB_Height
//
this.TB_Height.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Height.Location = new System.Drawing.Point(381, 298);
this.TB_Height.Location = new System.Drawing.Point(384, 301);
this.TB_Height.Mask = "00.0";
this.TB_Height.Name = "TB_Height";
this.TB_Height.Size = new System.Drawing.Size(31, 20);
this.TB_Height.Size = new System.Drawing.Size(32, 20);
this.TB_Height.TabIndex = 102;
this.TB_Height.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_Weight
//
this.L_Weight.AutoSize = true;
this.L_Weight.Location = new System.Drawing.Point(336, 322);
this.L_Weight.Location = new System.Drawing.Point(340, 325);
this.L_Weight.Name = "L_Weight";
this.L_Weight.Size = new System.Drawing.Size(44, 13);
this.L_Weight.TabIndex = 101;
@@ -342,7 +374,7 @@ private void InitializeComponent()
// L_Height
//
this.L_Height.AutoSize = true;
this.L_Height.Location = new System.Drawing.Point(339, 302);
this.L_Height.Location = new System.Drawing.Point(343, 304);
this.L_Height.Name = "L_Height";
this.L_Height.Size = new System.Drawing.Size(41, 13);
this.L_Height.TabIndex = 100;
@@ -352,7 +384,7 @@ private void InitializeComponent()
// CB_ZMove
//
this.CB_ZMove.FormattingEnabled = true;
this.CB_ZMove.Location = new System.Drawing.Point(177, 320);
this.CB_ZMove.Location = new System.Drawing.Point(177, 321);
this.CB_ZMove.Name = "CB_ZMove";
this.CB_ZMove.Size = new System.Drawing.Size(121, 21);
this.CB_ZMove.TabIndex = 98;
@@ -368,7 +400,7 @@ private void InitializeComponent()
// CB_ZItem
//
this.CB_ZItem.FormattingEnabled = true;
this.CB_ZItem.Location = new System.Drawing.Point(177, 278);
this.CB_ZItem.Location = new System.Drawing.Point(177, 277);
this.CB_ZItem.Name = "CB_ZItem";
this.CB_ZItem.Size = new System.Drawing.Size(121, 21);
this.CB_ZItem.TabIndex = 94;
@@ -376,7 +408,7 @@ private void InitializeComponent()
// TB_CallRate
//
this.TB_CallRate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_CallRate.Location = new System.Drawing.Point(77, 278);
this.TB_CallRate.Location = new System.Drawing.Point(77, 281);
this.TB_CallRate.Mask = "000";
this.TB_CallRate.Name = "TB_CallRate";
this.TB_CallRate.Size = new System.Drawing.Size(31, 20);
@@ -387,7 +419,7 @@ private void InitializeComponent()
// L_CallRate
//
this.L_CallRate.AutoSize = true;
this.L_CallRate.Location = new System.Drawing.Point(23, 282);
this.L_CallRate.Location = new System.Drawing.Point(23, 285);
this.L_CallRate.Name = "L_CallRate";
this.L_CallRate.Size = new System.Drawing.Size(53, 13);
this.L_CallRate.TabIndex = 92;
@@ -397,8 +429,7 @@ private void InitializeComponent()
// CHK_Variant
//
this.CHK_Variant.AutoSize = true;
this.CHK_Variant.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_Variant.Location = new System.Drawing.Point(178, 261);
this.CHK_Variant.Location = new System.Drawing.Point(185, 259);
this.CHK_Variant.Name = "CHK_Variant";
this.CHK_Variant.Size = new System.Drawing.Size(104, 17);
this.CHK_Variant.TabIndex = 91;
@@ -425,16 +456,6 @@ private void InitializeComponent()
this.L_BST.Text = "BST:";
this.L_BST.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// TB_RawColor
//
this.TB_RawColor.Location = new System.Drawing.Point(382, 211);
this.TB_RawColor.Name = "TB_RawColor";
this.TB_RawColor.ReadOnly = true;
this.TB_RawColor.Size = new System.Drawing.Size(30, 20);
this.TB_RawColor.TabIndex = 88;
this.TB_RawColor.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.TB_RawColor.Visible = false;
//
// TB_CatchRate
//
this.TB_CatchRate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -448,17 +469,17 @@ private void InitializeComponent()
//
// TB_Stage
//
this.TB_Stage.Location = new System.Drawing.Point(382, 238);
this.TB_Stage.Location = new System.Drawing.Point(384, 238);
this.TB_Stage.Name = "TB_Stage";
this.TB_Stage.ReadOnly = true;
this.TB_Stage.Size = new System.Drawing.Size(30, 20);
this.TB_Stage.Size = new System.Drawing.Size(32, 20);
this.TB_Stage.TabIndex = 86;
this.TB_Stage.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_Stage
//
this.L_Stage.AutoSize = true;
this.L_Stage.Location = new System.Drawing.Point(296, 241);
this.L_Stage.Location = new System.Drawing.Point(299, 240);
this.L_Stage.Name = "L_Stage";
this.L_Stage.Size = new System.Drawing.Size(85, 13);
this.L_Stage.TabIndex = 85;
@@ -467,17 +488,17 @@ private void InitializeComponent()
//
// TB_FormeCount
//
this.TB_FormeCount.Location = new System.Drawing.Point(382, 278);
this.TB_FormeCount.Location = new System.Drawing.Point(384, 280);
this.TB_FormeCount.Name = "TB_FormeCount";
this.TB_FormeCount.ReadOnly = true;
this.TB_FormeCount.Size = new System.Drawing.Size(30, 20);
this.TB_FormeCount.Size = new System.Drawing.Size(32, 20);
this.TB_FormeCount.TabIndex = 82;
this.TB_FormeCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_FormesCount
//
this.L_FormesCount.AutoSize = true;
this.L_FormesCount.Location = new System.Drawing.Point(306, 282);
this.L_FormesCount.Location = new System.Drawing.Point(309, 283);
this.L_FormesCount.Name = "L_FormesCount";
this.L_FormesCount.Size = new System.Drawing.Size(75, 13);
this.L_FormesCount.TabIndex = 81;
@@ -486,17 +507,17 @@ private void InitializeComponent()
//
// TB_FormeSprite
//
this.TB_FormeSprite.Location = new System.Drawing.Point(382, 258);
this.TB_FormeSprite.Location = new System.Drawing.Point(384, 259);
this.TB_FormeSprite.Name = "TB_FormeSprite";
this.TB_FormeSprite.ReadOnly = true;
this.TB_FormeSprite.Size = new System.Drawing.Size(30, 20);
this.TB_FormeSprite.Size = new System.Drawing.Size(32, 20);
this.TB_FormeSprite.TabIndex = 80;
this.TB_FormeSprite.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// L_FormeSprite
//
this.L_FormeSprite.AutoSize = true;
this.L_FormeSprite.Location = new System.Drawing.Point(312, 262);
this.L_FormeSprite.Location = new System.Drawing.Point(315, 262);
this.L_FormeSprite.Name = "L_FormeSprite";
this.L_FormeSprite.Size = new System.Drawing.Size(69, 13);
this.L_FormeSprite.TabIndex = 79;
@@ -517,9 +538,9 @@ private void InitializeComponent()
this.CB_Color.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Color.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Color.FormattingEnabled = true;
this.CB_Color.Location = new System.Drawing.Point(295, 211);
this.CB_Color.Location = new System.Drawing.Point(295, 209);
this.CB_Color.Name = "CB_Color";
this.CB_Color.Size = new System.Drawing.Size(86, 21);
this.CB_Color.Size = new System.Drawing.Size(121, 21);
this.CB_Color.TabIndex = 76;
//
// CB_EXPGroup
@@ -535,7 +556,7 @@ private void InitializeComponent()
// L_Color
//
this.L_Color.AutoSize = true;
this.L_Color.Location = new System.Drawing.Point(260, 214);
this.L_Color.Location = new System.Drawing.Point(261, 211);
this.L_Color.Name = "L_Color";
this.L_Color.Size = new System.Drawing.Size(34, 13);
this.L_Color.TabIndex = 74;
@@ -544,7 +565,7 @@ private void InitializeComponent()
// L_EXPGrowth
//
this.L_EXPGrowth.AutoSize = true;
this.L_EXPGrowth.Location = new System.Drawing.Point(16, 214);
this.L_EXPGrowth.Location = new System.Drawing.Point(16, 213);
this.L_EXPGrowth.Name = "L_EXPGrowth";
this.L_EXPGrowth.Size = new System.Drawing.Size(63, 13);
this.L_EXPGrowth.TabIndex = 73;
@@ -555,7 +576,7 @@ private void InitializeComponent()
this.CB_Ability3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Ability3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Ability3.FormattingEnabled = true;
this.CB_Ability3.Location = new System.Drawing.Point(276, 131);
this.CB_Ability3.Location = new System.Drawing.Point(272, 123);
this.CB_Ability3.Name = "CB_Ability3";
this.CB_Ability3.Size = new System.Drawing.Size(140, 21);
this.CB_Ability3.TabIndex = 68;
@@ -565,7 +586,7 @@ private void InitializeComponent()
this.CB_Ability2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Ability2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Ability2.FormattingEnabled = true;
this.CB_Ability2.Location = new System.Drawing.Point(276, 105);
this.CB_Ability2.Location = new System.Drawing.Point(272, 101);
this.CB_Ability2.Name = "CB_Ability2";
this.CB_Ability2.Size = new System.Drawing.Size(140, 21);
this.CB_Ability2.TabIndex = 67;
@@ -575,7 +596,7 @@ private void InitializeComponent()
this.CB_Ability1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Ability1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Ability1.FormattingEnabled = true;
this.CB_Ability1.Location = new System.Drawing.Point(276, 79);
this.CB_Ability1.Location = new System.Drawing.Point(272, 79);
this.CB_Ability1.Name = "CB_Ability1";
this.CB_Ability1.Size = new System.Drawing.Size(140, 21);
this.CB_Ability1.TabIndex = 66;
@@ -585,7 +606,7 @@ private void InitializeComponent()
this.CB_EggGroup2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_EggGroup2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_EggGroup2.FormattingEnabled = true;
this.CB_EggGroup2.Location = new System.Drawing.Point(295, 184);
this.CB_EggGroup2.Location = new System.Drawing.Point(295, 180);
this.CB_EggGroup2.Name = "CB_EggGroup2";
this.CB_EggGroup2.Size = new System.Drawing.Size(121, 21);
this.CB_EggGroup2.TabIndex = 65;
@@ -612,7 +633,7 @@ private void InitializeComponent()
// L_Ability
//
this.L_Ability.AutoSize = true;
this.L_Ability.Location = new System.Drawing.Point(230, 83);
this.L_Ability.Location = new System.Drawing.Point(226, 83);
this.L_Ability.Name = "L_Ability";
this.L_Ability.Size = new System.Drawing.Size(45, 13);
this.L_Ability.TabIndex = 62;
@@ -621,7 +642,7 @@ private void InitializeComponent()
// TB_BaseExp
//
this.TB_BaseExp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_BaseExp.Location = new System.Drawing.Point(77, 298);
this.TB_BaseExp.Location = new System.Drawing.Point(77, 302);
this.TB_BaseExp.Mask = "000";
this.TB_BaseExp.Name = "TB_BaseExp";
this.TB_BaseExp.Size = new System.Drawing.Size(31, 20);
@@ -632,7 +653,7 @@ private void InitializeComponent()
// L_BaseEXP
//
this.L_BaseEXP.AutoSize = true;
this.L_BaseEXP.Location = new System.Drawing.Point(18, 302);
this.L_BaseEXP.Location = new System.Drawing.Point(18, 306);
this.L_BaseEXP.Name = "L_BaseEXP";
this.L_BaseEXP.Size = new System.Drawing.Size(58, 13);
this.L_BaseEXP.TabIndex = 60;
@@ -642,7 +663,7 @@ private void InitializeComponent()
// TB_HatchCycles
//
this.TB_HatchCycles.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_HatchCycles.Location = new System.Drawing.Point(77, 318);
this.TB_HatchCycles.Location = new System.Drawing.Point(77, 323);
this.TB_HatchCycles.Mask = "000";
this.TB_HatchCycles.Name = "TB_HatchCycles";
this.TB_HatchCycles.Size = new System.Drawing.Size(31, 20);
@@ -653,7 +674,7 @@ private void InitializeComponent()
// L_HatchCycles
//
this.L_HatchCycles.AutoSize = true;
this.L_HatchCycles.Location = new System.Drawing.Point(3, 321);
this.L_HatchCycles.Location = new System.Drawing.Point(3, 326);
this.L_HatchCycles.Name = "L_HatchCycles";
this.L_HatchCycles.Size = new System.Drawing.Size(73, 13);
this.L_HatchCycles.TabIndex = 57;
@@ -663,7 +684,7 @@ private void InitializeComponent()
// TB_Friendship
//
this.TB_Friendship.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Friendship.Location = new System.Drawing.Point(77, 258);
this.TB_Friendship.Location = new System.Drawing.Point(77, 260);
this.TB_Friendship.Mask = "000";
this.TB_Friendship.Name = "TB_Friendship";
this.TB_Friendship.Size = new System.Drawing.Size(31, 20);
@@ -674,7 +695,7 @@ private void InitializeComponent()
// TB_Gender
//
this.TB_Gender.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TB_Gender.Location = new System.Drawing.Point(77, 238);
this.TB_Gender.Location = new System.Drawing.Point(77, 239);
this.TB_Gender.Mask = "000";
this.TB_Gender.Name = "TB_Gender";
this.TB_Gender.Size = new System.Drawing.Size(31, 20);
@@ -685,7 +706,7 @@ private void InitializeComponent()
// L_Friendship
//
this.L_Friendship.AutoSize = true;
this.L_Friendship.Location = new System.Drawing.Point(18, 262);
this.L_Friendship.Location = new System.Drawing.Point(18, 264);
this.L_Friendship.Name = "L_Friendship";
this.L_Friendship.Size = new System.Drawing.Size(58, 13);
this.L_Friendship.TabIndex = 54;
@@ -695,7 +716,7 @@ private void InitializeComponent()
// L_Gender
//
this.L_Gender.AutoSize = true;
this.L_Gender.Location = new System.Drawing.Point(31, 241);
this.L_Gender.Location = new System.Drawing.Point(31, 242);
this.L_Gender.Name = "L_Gender";
this.L_Gender.Size = new System.Drawing.Size(45, 13);
this.L_Gender.TabIndex = 53;
@@ -705,7 +726,7 @@ private void InitializeComponent()
// L_Item1
//
this.L_Item1.AutoSize = true;
this.L_Item1.Location = new System.Drawing.Point(195, 134);
this.L_Item1.Location = new System.Drawing.Point(195, 126);
this.L_Item1.Name = "L_Item1";
this.L_Item1.Size = new System.Drawing.Size(21, 13);
this.L_Item1.TabIndex = 52;
@@ -714,7 +735,7 @@ private void InitializeComponent()
// L_Item5
//
this.L_Item5.AutoSize = true;
this.L_Item5.Location = new System.Drawing.Point(195, 107);
this.L_Item5.Location = new System.Drawing.Point(195, 104);
this.L_Item5.Name = "L_Item5";
this.L_Item5.Size = new System.Drawing.Size(21, 13);
this.L_Item5.TabIndex = 51;
@@ -734,7 +755,7 @@ private void InitializeComponent()
this.CB_HeldItem3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_HeldItem3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_HeldItem3.FormattingEnabled = true;
this.CB_HeldItem3.Location = new System.Drawing.Point(52, 131);
this.CB_HeldItem3.Location = new System.Drawing.Point(52, 123);
this.CB_HeldItem3.Name = "CB_HeldItem3";
this.CB_HeldItem3.Size = new System.Drawing.Size(140, 21);
this.CB_HeldItem3.TabIndex = 49;
@@ -744,7 +765,7 @@ private void InitializeComponent()
this.CB_HeldItem2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_HeldItem2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_HeldItem2.FormattingEnabled = true;
this.CB_HeldItem2.Location = new System.Drawing.Point(52, 105);
this.CB_HeldItem2.Location = new System.Drawing.Point(52, 101);
this.CB_HeldItem2.Name = "CB_HeldItem2";
this.CB_HeldItem2.Size = new System.Drawing.Size(140, 21);
this.CB_HeldItem2.TabIndex = 48;
@@ -773,7 +794,7 @@ private void InitializeComponent()
this.CB_Type2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Type2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Type2.FormattingEnabled = true;
this.CB_Type2.Location = new System.Drawing.Point(63, 184);
this.CB_Type2.Location = new System.Drawing.Point(63, 180);
this.CB_Type2.Name = "CB_Type2";
this.CB_Type2.Size = new System.Drawing.Size(129, 21);
this.CB_Type2.TabIndex = 45;
@@ -1001,32 +1022,32 @@ private void InitializeComponent()
this.L_BaseStats.TabIndex = 1;
this.L_BaseStats.Text = "Base Stats:";
//
// label1
// L_ZMove
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(134, 323);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 13);
this.label1.TabIndex = 99;
this.label1.Text = "Z Move";
this.L_ZMove.AutoSize = true;
this.L_ZMove.Location = new System.Drawing.Point(130, 324);
this.L_ZMove.Name = "L_ZMove";
this.L_ZMove.Size = new System.Drawing.Size(47, 13);
this.L_ZMove.TabIndex = 99;
this.L_ZMove.Text = "Z-Move:";
//
// L_BaseMove
//
this.L_BaseMove.AutoSize = true;
this.L_BaseMove.Location = new System.Drawing.Point(116, 302);
this.L_BaseMove.Location = new System.Drawing.Point(113, 303);
this.L_BaseMove.Name = "L_BaseMove";
this.L_BaseMove.Size = new System.Drawing.Size(61, 13);
this.L_BaseMove.Size = new System.Drawing.Size(64, 13);
this.L_BaseMove.TabIndex = 97;
this.L_BaseMove.Text = "Base Move";
this.L_BaseMove.Text = "Base Move:";
//
// L_ZItem
// L_ZCrystal
//
this.L_ZItem.AutoSize = true;
this.L_ZItem.Location = new System.Drawing.Point(140, 281);
this.L_ZItem.Name = "L_ZItem";
this.L_ZItem.Size = new System.Drawing.Size(37, 13);
this.L_ZItem.TabIndex = 96;
this.L_ZItem.Text = "Z Item";
this.L_ZCrystal.AutoSize = true;
this.L_ZCrystal.Location = new System.Drawing.Point(126, 281);
this.L_ZCrystal.Name = "L_ZCrystal";
this.L_ZCrystal.Size = new System.Drawing.Size(51, 13);
this.L_ZCrystal.TabIndex = 96;
this.L_ZCrystal.Text = "Z-Crystal:";
//
// TP_MoveTutors
//
@@ -1049,9 +1070,9 @@ private void InitializeComponent()
this.L_BeachTutors.AutoSize = true;
this.L_BeachTutors.Location = new System.Drawing.Point(298, 3);
this.L_BeachTutors.Name = "L_BeachTutors";
this.L_BeachTutors.Size = new System.Drawing.Size(40, 13);
this.L_BeachTutors.Size = new System.Drawing.Size(74, 13);
this.L_BeachTutors.TabIndex = 9;
this.L_BeachTutors.Text = "Tutors:";
this.L_BeachTutors.Text = "Beach Tutors:";
this.L_BeachTutors.Visible = false;
//
// CLB_BeachTutors
@@ -1080,9 +1101,9 @@ private void InitializeComponent()
this.L_TM.AutoSize = true;
this.L_TM.Location = new System.Drawing.Point(6, 3);
this.L_TM.Name = "L_TM";
this.L_TM.Size = new System.Drawing.Size(26, 13);
this.L_TM.Size = new System.Drawing.Size(31, 13);
this.L_TM.TabIndex = 5;
this.L_TM.Text = "TM:";
this.L_TM.Text = "TMs:";
//
// CLB_MoveTutors
//
@@ -1124,9 +1145,9 @@ private void InitializeComponent()
this.GB_Modifier.Controls.Add(this.L_CatchRateMod);
this.GB_Modifier.Controls.Add(this.NUD_CatchRateMod);
this.GB_Modifier.Controls.Add(this.CHK_CallRate);
this.GB_Modifier.Controls.Add(this.L_CallRateVal);
this.GB_Modifier.Controls.Add(this.NUD_CallRate);
this.GB_Modifier.Controls.Add(this.CHK_EXP);
this.GB_Modifier.Controls.Add(this.L_CallRateVal);
this.GB_Modifier.Controls.Add(this.CHK_Growth);
this.GB_Modifier.Controls.Add(this.CHK_QuickHatch);
this.GB_Modifier.Controls.Add(this.L_FinalXP);
@@ -1139,10 +1160,20 @@ private void InitializeComponent()
this.GB_Modifier.TabStop = false;
this.GB_Modifier.Text = "Modifier Options";
//
// CHK_NoTutor
//
this.CHK_NoTutor.AutoSize = true;
this.CHK_NoTutor.Location = new System.Drawing.Point(6, 95);
this.CHK_NoTutor.Name = "CHK_NoTutor";
this.CHK_NoTutor.Size = new System.Drawing.Size(176, 30);
this.CHK_NoTutor.TabIndex = 21;
this.CHK_NoTutor.Text = "Remove All TM/Move Tutor\nCompatibility (Metronome Mode)";
this.CHK_NoTutor.UseVisualStyleBackColor = true;
//
// CHK_CatchRateMod
//
this.CHK_CatchRateMod.AutoSize = true;
this.CHK_CatchRateMod.Location = new System.Drawing.Point(204, 81);
this.CHK_CatchRateMod.Location = new System.Drawing.Point(204, 38);
this.CHK_CatchRateMod.Name = "CHK_CatchRateMod";
this.CHK_CatchRateMod.Size = new System.Drawing.Size(114, 17);
this.CHK_CatchRateMod.TabIndex = 16;
@@ -1152,7 +1183,7 @@ private void InitializeComponent()
// L_CatchRateMod
//
this.L_CatchRateMod.AutoSize = true;
this.L_CatchRateMod.Location = new System.Drawing.Point(204, 101);
this.L_CatchRateMod.Location = new System.Drawing.Point(230, 58);
this.L_CatchRateMod.Name = "L_CatchRateMod";
this.L_CatchRateMod.Size = new System.Drawing.Size(34, 13);
this.L_CatchRateMod.TabIndex = 15;
@@ -1160,7 +1191,7 @@ private void InitializeComponent()
//
// NUD_CatchRateMod
//
this.NUD_CatchRateMod.Location = new System.Drawing.Point(267, 99);
this.NUD_CatchRateMod.Location = new System.Drawing.Point(267, 56);
this.NUD_CatchRateMod.Maximum = new decimal(new int[] {
255,
0,
@@ -1183,25 +1214,16 @@ private void InitializeComponent()
// CHK_CallRate
//
this.CHK_CallRate.AutoSize = true;
this.CHK_CallRate.Location = new System.Drawing.Point(204, 38);
this.CHK_CallRate.Location = new System.Drawing.Point(204, 80);
this.CHK_CallRate.Name = "CHK_CallRate";
this.CHK_CallRate.Size = new System.Drawing.Size(128, 17);
this.CHK_CallRate.TabIndex = 13;
this.CHK_CallRate.Text = "Modify SOS Call Rate";
this.CHK_CallRate.UseVisualStyleBackColor = true;
//
// L_CallRateVal
//
this.L_CallRateVal.AutoSize = true;
this.L_CallRateVal.Location = new System.Drawing.Point(204, 58);
this.L_CallRateVal.Name = "L_CallRateVal";
this.L_CallRateVal.Size = new System.Drawing.Size(34, 13);
this.L_CallRateVal.TabIndex = 12;
this.L_CallRateVal.Text = "Value";
//
// NUD_CallRate
//
this.NUD_CallRate.Location = new System.Drawing.Point(267, 56);
this.NUD_CallRate.Location = new System.Drawing.Point(267, 98);
this.NUD_CallRate.Maximum = new decimal(new int[] {
255,
0,
@@ -1226,6 +1248,15 @@ private void InitializeComponent()
this.CHK_EXP.Text = "Modify EXP Yield";
this.CHK_EXP.UseVisualStyleBackColor = true;
//
// L_CallRateVal
//
this.L_CallRateVal.AutoSize = true;
this.L_CallRateVal.Location = new System.Drawing.Point(230, 100);
this.L_CallRateVal.Name = "L_CallRateVal";
this.L_CallRateVal.Size = new System.Drawing.Size(34, 13);
this.L_CallRateVal.TabIndex = 12;
this.L_CallRateVal.Text = "Value";
//
// CHK_Growth
//
this.CHK_Growth.AutoSize = true;
@@ -1251,7 +1282,7 @@ private void InitializeComponent()
// L_FinalXP
//
this.L_FinalXP.AutoSize = true;
this.L_FinalXP.Location = new System.Drawing.Point(6, 71);
this.L_FinalXP.Location = new System.Drawing.Point(6, 74);
this.L_FinalXP.Name = "L_FinalXP";
this.L_FinalXP.Size = new System.Drawing.Size(63, 13);
this.L_FinalXP.TabIndex = 6;
@@ -1259,7 +1290,7 @@ private void InitializeComponent()
//
// NUD_EXP
//
this.NUD_EXP.Location = new System.Drawing.Point(69, 69);
this.NUD_EXP.Location = new System.Drawing.Point(69, 72);
this.NUD_EXP.Maximum = new decimal(new int[] {
300,
0,
@@ -1312,7 +1343,6 @@ private void InitializeComponent()
this.GB_Randomizer.Controls.Add(this.CHK_rATK);
this.GB_Randomizer.Controls.Add(this.NUD_TypePercent);
this.GB_Randomizer.Controls.Add(this.CHK_rHP);
this.GB_Randomizer.Controls.Add(this.CHK_HM);
this.GB_Randomizer.Controls.Add(this.L_StatDev);
this.GB_Randomizer.Controls.Add(this.CHK_TM);
this.GB_Randomizer.Controls.Add(this.NUD_StatDev);
@@ -1322,7 +1352,7 @@ private void InitializeComponent()
this.GB_Randomizer.Controls.Add(this.CHK_Item);
this.GB_Randomizer.Location = new System.Drawing.Point(4, 12);
this.GB_Randomizer.Name = "GB_Randomizer";
this.GB_Randomizer.Size = new System.Drawing.Size(345, 129);
this.GB_Randomizer.Size = new System.Drawing.Size(345, 133);
this.GB_Randomizer.TabIndex = 418;
this.GB_Randomizer.TabStop = false;
this.GB_Randomizer.Text = "Randomizer Options";
@@ -1342,15 +1372,15 @@ private void InitializeComponent()
// L_Same
//
this.L_Same.AutoSize = true;
this.L_Same.Location = new System.Drawing.Point(216, 97);
this.L_Same.Location = new System.Drawing.Point(213, 99);
this.L_Same.Name = "L_Same";
this.L_Same.Size = new System.Drawing.Size(48, 13);
this.L_Same.Size = new System.Drawing.Size(51, 13);
this.L_Same.TabIndex = 23;
this.L_Same.Text = "Same(%)";
this.L_Same.Text = "Same (%)";
//
// NUD_Egg
//
this.NUD_Egg.Location = new System.Drawing.Point(267, 95);
this.NUD_Egg.Location = new System.Drawing.Point(267, 97);
this.NUD_Egg.Name = "NUD_Egg";
this.NUD_Egg.Size = new System.Drawing.Size(46, 20);
this.NUD_Egg.TabIndex = 22;
@@ -1458,11 +1488,11 @@ private void InitializeComponent()
// L_SingleType
//
this.L_SingleType.AutoSize = true;
this.L_SingleType.Location = new System.Drawing.Point(115, 78);
this.L_SingleType.Location = new System.Drawing.Point(115, 79);
this.L_SingleType.Name = "L_SingleType";
this.L_SingleType.Size = new System.Drawing.Size(77, 13);
this.L_SingleType.Size = new System.Drawing.Size(80, 13);
this.L_SingleType.TabIndex = 21;
this.L_SingleType.Text = "Single Type(%)";
this.L_SingleType.Text = "Single Type (%)";
//
// CHK_rDEF
//
@@ -1490,7 +1520,7 @@ private void InitializeComponent()
//
// NUD_TypePercent
//
this.NUD_TypePercent.Location = new System.Drawing.Point(134, 94);
this.NUD_TypePercent.Location = new System.Drawing.Point(134, 95);
this.NUD_TypePercent.Name = "NUD_TypePercent";
this.NUD_TypePercent.Size = new System.Drawing.Size(46, 20);
this.NUD_TypePercent.TabIndex = 20;
@@ -1512,26 +1542,14 @@ private void InitializeComponent()
this.CHK_rHP.Text = "HP";
this.CHK_rHP.UseVisualStyleBackColor = true;
//
// CHK_HM
//
this.CHK_HM.AutoSize = true;
this.CHK_HM.Checked = true;
this.CHK_HM.CheckState = System.Windows.Forms.CheckState.Checked;
this.CHK_HM.Location = new System.Drawing.Point(267, 15);
this.CHK_HM.Name = "CHK_HM";
this.CHK_HM.Size = new System.Drawing.Size(43, 17);
this.CHK_HM.TabIndex = 7;
this.CHK_HM.Text = "HM";
this.CHK_HM.UseVisualStyleBackColor = true;
//
// L_StatDev
//
this.L_StatDev.AutoSize = true;
this.L_StatDev.Location = new System.Drawing.Point(6, 90);
this.L_StatDev.Location = new System.Drawing.Point(6, 92);
this.L_StatDev.Name = "L_StatDev";
this.L_StatDev.Size = new System.Drawing.Size(67, 13);
this.L_StatDev.Size = new System.Drawing.Size(70, 13);
this.L_StatDev.TabIndex = 4;
this.L_StatDev.Text = "Deviance(%)";
this.L_StatDev.Text = "Deviance (%)";
//
// CHK_TM
//
@@ -1540,14 +1558,14 @@ private void InitializeComponent()
this.CHK_TM.CheckState = System.Windows.Forms.CheckState.Checked;
this.CHK_TM.Location = new System.Drawing.Point(219, 15);
this.CHK_TM.Name = "CHK_TM";
this.CHK_TM.Size = new System.Drawing.Size(42, 17);
this.CHK_TM.Size = new System.Drawing.Size(103, 17);
this.CHK_TM.TabIndex = 0;
this.CHK_TM.Text = "TM";
this.CHK_TM.Text = "TM Compatibility";
this.CHK_TM.UseVisualStyleBackColor = true;
//
// NUD_StatDev
//
this.NUD_StatDev.Location = new System.Drawing.Point(27, 106);
this.NUD_StatDev.Location = new System.Drawing.Point(27, 108);
this.NUD_StatDev.Name = "NUD_StatDev";
this.NUD_StatDev.Size = new System.Drawing.Size(46, 20);
this.NUD_StatDev.TabIndex = 3;
@@ -1618,7 +1636,7 @@ private void InitializeComponent()
//
// PB_MonSprite
//
this.PB_MonSprite.Location = new System.Drawing.Point(285, 0);
this.PB_MonSprite.Location = new System.Drawing.Point(285, 1);
this.PB_MonSprite.Name = "PB_MonSprite";
this.PB_MonSprite.Size = new System.Drawing.Size(80, 60);
this.PB_MonSprite.TabIndex = 89;
@@ -1626,7 +1644,7 @@ private void InitializeComponent()
//
// B_Dump
//
this.B_Dump.Location = new System.Drawing.Point(368, 10);
this.B_Dump.Location = new System.Drawing.Point(368, 19);
this.B_Dump.Name = "B_Dump";
this.B_Dump.Size = new System.Drawing.Size(82, 23);
this.B_Dump.TabIndex = 418;
@@ -1634,15 +1652,15 @@ private void InitializeComponent()
this.B_Dump.UseVisualStyleBackColor = true;
this.B_Dump.Click += new System.EventHandler(this.B_Dump_Click);
//
// CHK_NoTutor
// TB_RawColor
//
this.CHK_NoTutor.AutoSize = true;
this.CHK_NoTutor.Location = new System.Drawing.Point(6, 95);
this.CHK_NoTutor.Name = "CHK_NoTutor";
this.CHK_NoTutor.Size = new System.Drawing.Size(190, 17);
this.CHK_NoTutor.TabIndex = 21;
this.CHK_NoTutor.Text = "Remove All TM/Tutor Compatibility";
this.CHK_NoTutor.UseVisualStyleBackColor = true;
this.TB_RawColor.Location = new System.Drawing.Point(229, 209);
this.TB_RawColor.Name = "TB_RawColor";
this.TB_RawColor.ReadOnly = true;
this.TB_RawColor.Size = new System.Drawing.Size(30, 20);
this.TB_RawColor.TabIndex = 420;
this.TB_RawColor.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.TB_RawColor.Visible = false;
//
// PersonalEditor7
//
@@ -1747,7 +1765,6 @@ private void InitializeComponent()
private System.Windows.Forms.TextBox TB_Stage;
private System.Windows.Forms.Label L_Stage;
private System.Windows.Forms.MaskedTextBox TB_CatchRate;
private System.Windows.Forms.TextBox TB_RawColor;
private System.Windows.Forms.Label L_BST;
private System.Windows.Forms.TextBox TB_BST;
private System.Windows.Forms.CheckedListBox CLB_TM;
@@ -1764,7 +1781,6 @@ private void InitializeComponent()
private System.Windows.Forms.Label L_StatDev;
private System.Windows.Forms.CheckBox CHK_Item;
private System.Windows.Forms.CheckBox CHK_Type;
private System.Windows.Forms.CheckBox CHK_HM;
private System.Windows.Forms.CheckBox CHK_Tutors;
private System.Windows.Forms.CheckBox CHK_WGuard;
private System.Windows.Forms.CheckBox CHK_CatchRate;
@@ -1807,13 +1823,17 @@ private void InitializeComponent()
private System.Windows.Forms.ComboBox CB_ZMove;
private System.Windows.Forms.ComboBox CB_ZBaseMove;
private System.Windows.Forms.ComboBox CB_ZItem;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label L_ZMove;
private System.Windows.Forms.Label L_BaseMove;
private System.Windows.Forms.Label L_ZItem;
private System.Windows.Forms.Label L_ZCrystal;
private System.Windows.Forms.Label L_BeachTutors;
private System.Windows.Forms.CheckedListBox CLB_BeachTutors;
private System.Windows.Forms.CheckBox CHK_BeachTutors;
private System.Windows.Forms.CheckBox CHK_Shuffle;
private System.Windows.Forms.CheckBox CHK_NoTutor;
private System.Windows.Forms.Label L_HiddenAbility;
private System.Windows.Forms.Label L_Ability2;
private System.Windows.Forms.Label L_Ability1;
private System.Windows.Forms.TextBox TB_RawColor;
}
}

View File

@@ -281,7 +281,7 @@ private void savePersonal()
pkm.FormeSprite = Convert.ToUInt16(TB_FormeSprite.Text);
pkm.FormeCount = Convert.ToByte(TB_FormeCount.Text);
pkm.Color = (byte) (Convert.ToByte(CB_Color.SelectedIndex) | (Convert.ToByte(TB_RawColor.Text) & 0xF0));
pkm.Color = (byte)(Convert.ToByte(CB_Color.SelectedIndex) | (Convert.ToByte(TB_RawColor.Text) & 0xF0));
pkm.BaseEXP = Convert.ToUInt16(TB_BaseExp.Text);
decimal h; decimal.TryParse(TB_Height.Text, out h);
@@ -321,6 +321,7 @@ private void saveEntry()
private void B_Randomize_Click(object sender, EventArgs e)
{
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Randomize all? Cannot undo.", "Double check Randomization settings in the Enhancements tab.") != DialogResult.Yes) return;
saveEntry();
// input settings
@@ -334,7 +335,7 @@ private void B_Randomize_Click(object sender, EventArgs e)
StatsToRandomize = rstat_boxes.Select(g => g.Checked).ToArray(),
ModifyAbilities = CHK_Ability.Checked,
ModifyLearnsetTM = CHK_TM.Checked,
ModifyLearnsetHM = CHK_HM.Checked,
ModifyLearnsetHM = false, // no HMs in Gen 7
ModifyLearnsetTypeTutors = CHK_Tutors.Checked,
ModifyLearnsetMoveTutors = Main.Config.USUM && CHK_BeachTutors.Checked,
ModifyTypes = CHK_Type.Checked,
@@ -348,10 +349,12 @@ private void B_Randomize_Click(object sender, EventArgs e)
Main.SpeciesStat.Select(z => z.Write()).ToArray().CopyTo(files, 0);
readEntry();
WinFormsUtil.Alert("All relevant Pokémon Personal Entries have been randomized!");
WinFormsUtil.Alert("Randomized all Pokémon Personal data entries according to specification!", "Press the Dump All button to view the new Personal data!");
}
private void B_ModifyAll(object sender, EventArgs e)
{
if (WinFormsUtil.Prompt(MessageBoxButtons.YesNo, "Modify all? Cannot undo.", "Double check Modification settings in the Enhancements tab.") != DialogResult.Yes) return;
for (int i = 1; i < CB_Species.Items.Count; i++)
{
CB_Species.SelectedIndex = i; // Get new Species
@@ -378,11 +381,11 @@ private void B_ModifyAll(object sender, EventArgs e)
TB_HatchCycles.Text = 1.ToString();
if (CHK_CallRate.Checked)
TB_CallRate.Text = ((int)NUD_CallRate.Value).ToString();
if(CHK_CatchRateMod.Checked)
if (CHK_CatchRateMod.Checked)
TB_CatchRate.Text = ((int)NUD_CatchRateMod.Value).ToString();
}
CB_Species.SelectedIndex = 1;
WinFormsUtil.Alert("All species modified according to specification!");
WinFormsUtil.Alert("Modified all Pokémon Personal data entries according to specification!", "Press the Dump All button to view the new Personal data!");
}
private bool dumping;
private void B_Dump_Click(object sender, EventArgs e)

View File

@@ -736,7 +736,7 @@ private void B_Randomize_Click(object sender, EventArgs e)
}
// high-power attacks
if (CHK_ForceHighPower.Checked && pk.Level >= NUD_ForceHighPower.Value && CB_Moves.SelectedIndex != 3)
if (CHK_ForceHighPower.Checked && pk.Level >= NUD_ForceHighPower.Value)
pk.Moves = learn.GetHighPoweredMoves(pk.Species, pk.Form, 4);
// sanitize moves
@@ -779,7 +779,12 @@ private void SetMoves(IList<int> moves)
// Randomization UI
private void CB_Moves_SelectedIndexChanged(object sender, EventArgs e)
{
CHK_Damage.Visible = CHK_STAB.Visible = NUD_Damage.Visible = NUD_STAB.Visible = CB_Moves.SelectedIndex == 1; // Randomized
CHK_Damage.Checked = CHK_STAB.Checked =
CHK_Damage.Enabled = CHK_STAB.Enabled =
NUD_Damage.Enabled = NUD_STAB.Enabled = CB_Moves.SelectedIndex == 1;
CHK_ForceHighPower.Enabled = CHK_ForceHighPower.Checked = NUD_ForceHighPower.Enabled =
CHK_NoFixedDamage.Enabled = CHK_NoFixedDamage.Checked = (CB_Moves.SelectedIndex == 1 || CB_Moves.SelectedIndex == 2);
}
private void CHK_Damage_CheckedChanged(object sender, EventArgs e)
{
@@ -791,14 +796,18 @@ private void CHK_STAB_CheckedChanged(object sender, EventArgs e)
}
private void CHK_RandomPKM_CheckedChanged(object sender, EventArgs e)
{
CHK_BST.Visible = CHK_RandomPKM.Checked;
if (CHK_RandomPKM.Checked)
return;
foreach (CheckBox c in new[] { CHK_G1, CHK_G2, CHK_G3, CHK_G4, CHK_G5, CHK_G6, CHK_G7, CHK_L, CHK_E })
{
c.Visible = false;
c.Checked = true;
}
if (!CHK_RandomPKM.Checked)
foreach (CheckBox c in new[] { CHK_G1, CHK_G2, CHK_G3, CHK_G4, CHK_G5, CHK_G6, CHK_G7, CHK_L, CHK_E, CHK_BST })
{
c.Enabled = false;
c.Checked = false;
}
else
foreach (CheckBox c in new[] { CHK_G1, CHK_G2, CHK_G3, CHK_G4, CHK_G5, CHK_G6, CHK_G7, CHK_L, CHK_E, CHK_BST })
{
c.Enabled = true;
c.Checked = true;
}
}
private void CHK_RandomClass_CheckedChanged(object sender, EventArgs e)
{

View File

@@ -465,7 +465,7 @@ private void B_Starters_Click(object sender, EventArgs e)
var specrand = getRandomizer();
var formrand = new FormRandomizer(Main.Config) { AllowMega = false, AllowAlolanForm = true };
var items = Randomizer.getRandomItemList();
int[] banned = Legal.Z_Moves.Concat(new int[] {165, 464, 621}).ToArray();
int[] banned = Legal.Z_Moves.Concat(new int[] { 165, 464, 621 }).ToArray();
// Assign Species
for (int i = 0; i < 3; i++)
@@ -496,8 +496,9 @@ private void B_Starters_Click(object sender, EventArgs e)
if (CHK_SpecialMove.Checked && !CHK_Metronome.Checked)
{
int rv = Util.rand.Next(1, CB_SpecialMove.Items.Count);
if (banned.Contains(rv)) continue; // disallow banned moves
int rv;
do { rv = Util.rand.Next(1, CB_SpecialMove.Items.Count); }
while (banned.Contains(rv)) ;
t.SpecialMove = rv;
}
@@ -526,7 +527,7 @@ private void B_RandAll_Click(object sender, EventArgs e)
var formrand = new FormRandomizer(Main.Config) { AllowMega = false, AllowAlolanForm = true };
var move = new LearnsetRandomizer(Main.Config, Main.Config.Learnsets);
var items = Randomizer.getRandomItemList();
int[] banned = Legal.Z_Moves.Concat(new int[] { 165, 621 }).ToArray();
int[] banned = Legal.Z_Moves.Concat(new int[] { 165, 464, 621 }).ToArray();
int randFinalEvo() => (int)(Util.rnd32() % FinalEvo.Length);
int randLegend() => (int)(Util.rnd32() % ReplaceLegend.Length);
@@ -560,8 +561,9 @@ private void B_RandAll_Click(object sender, EventArgs e)
t.SpecialMove = 0; // remove Surf Pikachu's special move
else
{
int rv = Util.rand.Next(1, CB_SpecialMove.Items.Count);
if (banned.Contains(rv)) continue; // disallow banned moves
int rv;
do { rv = Util.rand.Next(1, CB_SpecialMove.Items.Count); }
while (banned.Contains(rv));
t.SpecialMove = rv;
}
}