mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 00:14:09 -05:00
Recalculate IV total on randomization
updateIVs calls updateStats at the end.
This commit is contained in:
@@ -1545,9 +1545,8 @@ private void updateHPType(object sender, EventArgs e)
|
||||
private void updateIVs(object sender, EventArgs e)
|
||||
{
|
||||
if (changingFields || !fieldsInitialized) return;
|
||||
if (sender != null)
|
||||
if (Util.ToInt32((sender as MaskedTextBox).Text) > 31)
|
||||
(sender as MaskedTextBox).Text = "31";
|
||||
if (sender != null && Util.ToInt32((sender as MaskedTextBox).Text) > 31)
|
||||
(sender as MaskedTextBox).Text = "31";
|
||||
|
||||
changingFields = true;
|
||||
|
||||
@@ -1624,7 +1623,7 @@ private void updateRandomIVs(object sender, EventArgs e)
|
||||
TB_SPEIV.Text = (Util.rnd32() & 0x1F).ToString();
|
||||
}
|
||||
changingFields = false;
|
||||
updateStats();
|
||||
updateIVs(null, null);
|
||||
}
|
||||
private void updateRandomEVs(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user