mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-25 22:05:08 -05:00
Shedinja Stat Calculation Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user