Skip to content

Commit

Permalink
Correctly fix Characteristics
Browse files Browse the repository at this point in the history
Previous fix solved it incorrectly.

Please stop being a thorn, characteristics :(
  • Loading branch information
kwsch committed Sep 5, 2015
1 parent 84586f2 commit a40a708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PKX/f1-Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ private void updateIVs(object sender, EventArgs e)
int[] ivs =
{
Util.ToInt32(TB_HPIV.Text), Util.ToInt32(TB_ATKIV.Text), Util.ToInt32(TB_DEFIV.Text),
Util.ToInt32(TB_SPAIV.Text), Util.ToInt32(TB_SPDIV.Text), Util.ToInt32(TB_SPEIV.Text)
Util.ToInt32(TB_SPEIV.Text), Util.ToInt32(TB_SPAIV.Text), Util.ToInt32(TB_SPDIV.Text)
};

changingFields = true;
Expand Down Expand Up @@ -1541,7 +1541,7 @@ private void updateIVs(object sender, EventArgs e)
break; // P%6 is this stat
}

L_Characteristic.Text = characteristics[new[]{0, 1, 2, 4, 5, 3}[pm6stat] * 5 + maxIV % 5];
L_Characteristic.Text = characteristics[pm6stat * 5 + maxIV % 5];
updateStats();
}
private void updateEVs(object sender, EventArgs e)
Expand Down

0 comments on commit a40a708

Please sign in to comment.