Advertisement
neutale

Toru Higuruma - Maximum Experience

May 22nd, 2020
2,346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.20 KB | None | 0 0
  1. #==============================================================================
  2. # ■ Maximum Experience RGSS3 v1.1        MIT License; see git.io/tic
  3. #------------------------------------------------------------------------------
  4. # On status screen, if the actor is at the highest level-
  5. # Experience value that will be displayed as stuck.
  6. #==============================================================================
  7.  
  8. class Window_Status
  9.   #--------------------------------------------------------------------------
  10.   # ● Drawing experience value info [* redefined *]
  11.   #--------------------------------------------------------------------------
  12.   def draw_exp_info(x, y)
  13.     s1 = @actor.max_level? ? @actor.current_level_exp : @actor.exp
  14.     s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp
  15.     s_next = sprintf(Vocab::ExpNext, Vocab::level)
  16.     change_color(system_color)
  17.     draw_text(x, y + line_height * 0, 180, line_height, Vocab::ExpTotal)
  18.     draw_text(x, y + line_height * 2, 180, line_height, s_next)
  19.     change_color(normal_color)
  20.     draw_text(x, y + line_height * 1, 180, line_height, s1, 2)
  21.     draw_text(x, y + line_height * 3, 180, line_height, s2, 2)
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement