# Ranks for levels
# Uses a rank system for levels 1 to 21
# levels after 21 returns S++ the same as 21
# written by Akin
module Akin_Level
def self.rank(level)
if level <= 1
return "F-"
elsif level == 2
return "F"
elsif level == 3
return "F+"
elsif level == 4
return "E-"
elsif level == 5
return "E"
elsif level == 6
return "E+"
elsif level == 7
return "D-"
elsif level == 8
return "D+"
elsif level == 9
return "C-"
elsif level == 10
return "C"
elsif level == 11
return "C+"
elsif level == 12
return "B-"
elsif level == 13
return "B"
elsif level == 14
return "B+"
elsif level == 15
return "A-"
elsif level == 16
return "A"
elsif level == 17
return "A+"
elsif level == 18
return "S-"
elsif level == 19
return "S"
elsif level == 20
return "S+"
else
return "S++"
end
end
end
class Game_Actor < Game_Battler
def display_level_up(new_skills)
$game_message.new_page
rank = Akin_Level.rank(@level)
text = sprintf(Vocab::LevelUp, @name, Vocab::level, rank)
$game_message.texts.push(text)
for skill in new_skills
text = sprintf(Vocab::ObtainSkill, skill.name)
$game_message.texts.push(text)
end
end
end
class Window_Base < Window
def draw_actor_level(actor, x, y)
self.contents.font.color = system_color
self.contents.draw_text(x, y, 32, WLH, Vocab::level_a)
self.contents.font.color = normal_color
rank = Akin_Level.rank(actor.level)
self.contents.draw_text(x + 32, y, 24, WLH, rank, 2)
end
end