Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module PAC
- CLASS_MAX_LVL = [50]
- DEFAULT_MAX_LVL = 99
- end
- class Game_Actor
- def max_level
- return (PAC::CLASS_MAX_LVL[@class_id - 1] || PAC::DEFAULT_MAX_LVL)
- end
- def change_exp(exp, show)
- last_level = @level
- last_skills = skills
- @exp = [[exp, 9999999].min, 0].max
- while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0 and @level < max_level
- level_up
- end
- while @exp < @exp_list[@level]
- level_down
- end
- @hp = [@hp, maxhp].min
- @mp = [@mp, maxmp].min
- if show and @level > last_level
- display_level_up(skills - last_skills)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement