IceDragon200

Speed thingy

Sep 24th, 2011
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.30 KB | None | 0 0
  1. class Game_Battler
  2.    
  3.   attr_writer :speed
  4.  
  5.   def speed
  6.     return (@speed ||= 20)
  7.   end
  8.  
  9. end
  10.  
  11. class Game_Actor
  12.  
  13.   alias :your_level_up :level_up unless $@
  14.   def level_up( *args, &block )
  15.     your_level_up( *args, &block )
  16.     for i in 2..4 ; @speed += rand(i) ; end
  17.   end
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment