#
# Custom_Exp_Curve (Brew)
#
class Game_Actor
#--------------------------------------------------------------------------
# * Calculate EXP
# modify method to linear curve @ 100 EXP per level
#--------------------------------------------------------------------------
def make_exp_list
actor = $data_actors[@actor_id]
@exp_list[1] = 0
for i in 2..100
if i > actor.final_level
@exp_list[i] = 0
else
@exp_list[i] = @exp_list[i-1] + 100
end
end
end
#--------------------------------------------------------------------------
# * Set EXP
# modify method to round off extra exp when leveling up
#--------------------------------------------------------------------------
def exp=(exp)
@exp = [[exp, 9999999].min, 0].max
# Level up
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0
@level += 1
if @exp < @exp_list[@level+1]
@exp = @exp_list[@level]
end
# Learn skill
for j in $data_classes[@class_id].learnings
if j.level == @level
learn_skill(j.skill_id)
end
end
end
# Level down
while @exp < @exp_list[@level]
@level -= 1
end
# Correction if exceeding current max HP and max SP
@hp = [@hp, self.maxhp].min
@sp = [@sp, self.maxsp].min
end
end