-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmax_exp.rb
22 lines (21 loc) · 1.21 KB
/
max_exp.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#==============================================================================
# ■ 最高レベルでも経験値を表示 RGSS3 v1.1 MIT License; see git.io/tic
#------------------------------------------------------------------------------
# ステータス画面で、アクターが最高レベルならカンストした経験値を表示します。
#==============================================================================
class Window_Status
#--------------------------------------------------------------------------
# ● 経験値情報の描画【※再定義※】
#--------------------------------------------------------------------------
def draw_exp_info(x, y)
s1 = @actor.max_level? ? @actor.current_level_exp : @actor.exp
s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp
s_next = sprintf(Vocab::ExpNext, Vocab::level)
change_color(system_color)
draw_text(x, y + line_height * 0, 180, line_height, Vocab::ExpTotal)
draw_text(x, y + line_height * 2, 180, line_height, s_next)
change_color(normal_color)
draw_text(x, y + line_height * 1, 180, line_height, s1, 2)
draw_text(x, y + line_height * 3, 180, line_height, s2, 2)
end
end