Better Bonus Exp Calculations
- Enables the user to enter a "BONUS_EXP" equation in the equation editor which will control how much BEXP is needed to level up from 0 to 100 EXP. By default, this is
50 * unit.get_internal_level() + 50
(the base Radiant Dawn equation) - Exp increment is not precalculated and forced to be an integer any longer. It can now change as you add or remove exp. Before, requiring 100 BEXP to level up, 120 BEXP to level up, or 150 BEXP to level up was all the same (it would require 100 BEXP to go from 0 to 100 EXP), since the exp_increment was calculated as
int(bexp_to_level_up / 100)
. However, now, for instance, when you add exp for a 150 BEXP requirement, the BEXP will go down by 1 half the time, and 2 the other half of the time, to end up with the user spending exactly 150 BEXP to go from 0 to 100 EXP. It also allows you to enter in values less than 100 for the BONUS_EXP equation (not possible before).
This has been tested for accuracy.