local StatsUtils = {} local CONST = {} CONST.EXP_MULTIPLICATOR = 4 CONST.EXP_RATIO = 5 CONST.BASE_STAT = 5 CONST.BASE_HP = 15 CONST.BASE_MP = 8 CONST.MULT_STAT = 2 CONST.MULT_HP = 2.7 CONST.MULT_MP = 1.5 function StatsUtils.getExpValue(level) return math.floor( ( CONST.EXP_MULTIPLICATOR * ( level ^ 3 ) ) / CONST.EXP_RATIO ) end function StatsUtils.getStatValue(level, base) return math.floor( (((base * CONST.MULT_STAT) * level)/100) ) + CONST.BASE_STAT end function StatsUtils.getHPValue(level, base) return math.floor( (((base * CONST.MULT_HP) * level)/100) ) + CONST.BASE_HP + level end function StatsUtils.getPPValue(level, base) return math.floor( (((base * CONST.MULT_MP) * level)/100) ) + CONST.BASE_MP end return StatsUtils