TheoAllen

Konsep swap parameter

Dec 9th, 2013
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. class Game_Battler
  2.  
  3.   alias original_atk atk
  4.   alias original_mat mat
  5.  
  6.   def atk
  7.     return original_mat if state?(16)
  8.     return original_atk
  9.   end
  10.  
  11. end
Advertisement
Add Comment
Please, Sign In to add comment