#=============================================================================== # # Yanfly Engine RD - Usable Item Fix # Last Date Updated: 2009.04.27 # Level: Easy # # This prevents non-battle usable items to included into the item menu during a # battle. What VX did originally was allow any kind of item so long as it was # an item type (not weapon type or armour type) despite whether or not it was # usable in battle. This one just limits the item menu to the ones usable in a # battle. For those with KGC's Usable Equipment script, this also works. # #=============================================================================== # Updates: # ---------------------------------------------------------------------------- # o 2009.04.27 - Started script. #=============================================================================== # Instructions #=============================================================================== # # Just plug it in somewhere above Main. There's really nothing to instruct here. # #=============================================================================== # # Compatibility # - Overwrites: Window_Item, include? # #=============================================================================== $imported = {} if $imported == nil $imported["UsableItemFix"] = true #=============================================================================== # Editting anything past this point may potentially result in causing computer # damage, incontinence, explosion of user's head, coma, death, and/or halitosis. # Therefore, edit at your own risk. #=============================================================================== #============================================================================== # Window_Item #============================================================================== class Window_Item < Window_Selectable #-------------------------------------------------------------------------- # overwrite include #-------------------------------------------------------------------------- def include?(item) return false if item == nil return false if $game_temp.in_battle and !$game_party.item_can_use?(item) return true end end #=============================================================================== # # END OF FILE # #===============================================================================