You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let IV_Sum =Math.floor(IV_HP/2) + IV_Str + IV_Spr + IV_Def + IV_Spd;// should be 40 if it has valid IVs - HP is worth half
35
35
36
-
let needsFix = (IV_HP%2!==0) || (IV_Sum !== ivTotalTarget);
36
+
let needsFix = (IV_HP%2!==0) || (IV_Sum !== ivTotalTarget);// checks if its valid HP must be even since the point goal is 40 and nothing else can be decimal except HP so if HP isnt whole the goal cant be reached - meaning HP must be even
37
37
38
38
if (needsFix) {
39
39
let ivs = [0, 0, 0, 0, 0];
40
40
41
-
for (let i =0; i < ivTotalTarget; ++i) {
41
+
for (let i =0; i < ivTotalTarget; ++i) {// good ol trial and error
0 commit comments