Trainer Level Boost fix

This commit is contained in:
Kurt
2015-02-26 23:45:51 -08:00
parent 8046f7dccd
commit 2baa2a8b27

View File

@@ -584,7 +584,7 @@ private void Randomize()
trpk_form[p].SelectedIndex = (int)(rnd32() % trpk_form[p].Items.Count);
}
if (rLevel)
trpk_lvl[p].SelectedIndex = Math.Min((int)((decimal)trpk_lvl[p].SelectedIndex * (1 + rLevelPercent)), 100);
trpk_lvl[p].SelectedIndex = Math.Min((int)(trpk_lvl[p].SelectedIndex * ((decimal)(100 + rLevelPercent) / 100)), 100);
if (rAbility)
trpk_abil[p].SelectedIndex = (int)(1 + rnd32() % 3);
if (rDiffIV)