Skip to content

Commit

Permalink
Shedinja Stat Calculation Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed Feb 3, 2015
1 parent 6f516a2 commit b1659c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Misc/PKX.cs
Expand Up @@ -376,7 +376,7 @@ internal static string getLocation(bool eggmet, int gameorigin, int locval)

// Calculate Stats
ushort[] stats = new ushort[6]; // Stats are stored as ushorts in the PKX structure. We'll cap them as such.
stats[0] = (ushort)((((HP_IV + (2 * HP_B) + (HP_EV / 4) + 100) * level) / 100) + 10);
stats[0] = (HP_B == 1) ? (ushort)1 : (ushort)((((HP_IV + (2 * HP_B) + (HP_EV / 4) + 100) * level) / 100) + 10);
stats[1] = (ushort)((((ATK_IV + (2 * ATK_B) + (ATK_EV / 4)) * level) / 100) + 5);
stats[2] = (ushort)((((DEF_IV + (2 * DEF_B) + (DEF_EV / 4)) * level) / 100) + 5);
stats[4] = (ushort)((((SPA_IV + (2 * SPA_B) + (SPA_EV / 4)) * level) / 100) + 5);
Expand Down

0 comments on commit b1659c9

Please sign in to comment.