#==============================================================================# ** Game_Party#------------------------------------------------------------------------------# This class handles the party. It includes information on amount of gold # and items. The instance of this class is referenced by $game_party.#==============================================================================class Game_Party < Game_Unit# dricc : ceci est un fix pour le script "enduits" de blockade# il permet d'utiliser le test "Si l'arme est possédé" . #-------------------------------------------------------------------------- # * Get Number of Items Possessed # item : item #-------------------------------------------------------------------------- def item_number_mother(item) case item when RPG::Item number = @items[item.id] when RPG::Weapon number = @weapons[item.mother_item_id] for i in @weapons.keys.sort if $data_weapons[i].mother_item_id == item.id then number = 1 end end when RPG::Armor number = @armors[item.mother_item_id] for i in @armors.keys.sort if $data_armors[i].mother_item_id == item.id then number = 1 end end end return number == nil ? 0 : number end