Advertisement
nio_kasgami

Extra_accessory_Slot

May 7th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.63 KB | None | 0 0
  1. #==============================================================================
  2. # ■ Nio Kasgami Engine Ace "Extra_accessory_Slot"
  3. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4. # little snipset who permit to have a extra accessory set in the equip menu
  5. # Created by Nio Kasgami.
  6. # Data : 2015/05/07
  7. # Version : 1.0.0
  8. #==============================================================================
  9.  
  10. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  11. # Window_EquipSlot
  12. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13. class Window_EquipSlot < Window_Selectable
  14.   #--------------------------------------------------------------------------
  15.   # ● overwrite method: visible_line_number
  16.   #--------------------------------------------------------------------------
  17.     def visible_line_number
  18.     return 6
  19.   end
  20. end
  21.  
  22. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  23. # Game_Actor
  24. # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  25. class Game_Actor < Game_Battler
  26.   #--------------------------------------------------------------------------
  27.   # ● overwrite method: equip_slots
  28.   #--------------------------------------------------------------------------
  29.    def equip_slots
  30.     return [0,0,2,3,4,4] if dual_wield?       # Dual wield
  31.     return [0,1,2,3,4,4]                      # Normal
  32.   end
  33. end
  34. ################################################################################
  35. # END OF SCRIPT
  36. ################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement