neonblack

Command List

Feb 25th, 2013
113
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Window_ActorCommand < Window_Command
  2.   LIST = [
  3.     :skills,
  4.     :guard,
  5.     :item,
  6.   ]
  7.  
  8.   def make_command_list
  9.     return unless @actor
  10.     LIST.each do |item|
  11.       case item
  12.       when :attack
  13.         add_attack_command
  14.       when :skills
  15.         add_skill_commands
  16.       when :guard
  17.         add_guard_command
  18.       when :item
  19.         add_item_command
  20.       else
  21.         next
  22.       end
  23.     end
  24.   end
  25. end
RAW Paste Data