#--------------------------------------------------------------------------
# ● 升级
#--------------------------------------------------------------------------
def level_up
if @level < 30
@level += 1
for learning in self.class.learnings
learn_skill(learning.skill_id) if learning.level == @level
end
end
end