mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-09-08 10:05:47 -05:00
simplify aura rand
This commit is contained in:
@@ -512,14 +512,8 @@ private void B_RandAll_Click(object sender, EventArgs e)
|
||||
if (CHK_RemoveShinyLock.Checked)
|
||||
t.ShinyLock = false;
|
||||
|
||||
if (CHK_RandomAura.Checked)
|
||||
{
|
||||
if (t.Aura == 0)
|
||||
continue; // don't apply aura to a pkm without it
|
||||
|
||||
CB_Aura.Items.AddRange(aura.Take(0).ToArray()); // don't allow (None) as an option; temporarily remove
|
||||
t.Aura = (int)(Util.rnd32() % CB_Aura.Items.Count);
|
||||
}
|
||||
if (CHK_RandomAura.Checked && t.Aura != 0) // don't apply aura to a pkm without it
|
||||
t.Aura = Util.rand.Next(1, CB_Aura.Items.Count); // don't allow none
|
||||
}
|
||||
foreach (EncounterTrade7 t in Trades)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user