- class Scene_Battle 
-   def use_item 
-     item = @subject.current_action.item 
-     @log_window.display_use_item(@subject, item) 
-     @subject.use_item(item) 
-     refresh_status 
-     targets = @subject.current_action.make_targets.compact 
-     show_animation(targets, item.animation_id) 
-     if item.class == RPG::Skill 
-       repeats = ($data_skills[item.id].read_note('重复次数')).to_i 
-     else 
-       repeats = ($data_items[item.id].read_note('重复次数')).to_i 
-     end 
-     repeats = item.repeats if !repeats or repeats <= 0     
-     targets.each {|target| repeats.times { invoke_item(target, item) } } 
-   end 
- end 
- class Scene_ItemBase 
-   def use_item_to_actors 
-     if item.class == RPG::Skill 
-       repeats = ($data_skills[item.id].read_note('重复次数')).to_i 
-     else 
-       repeats = ($data_items[item.id].read_note('重复次数')).to_i 
-     end 
-     repeats = item.repeats if !repeats or repeats <= 0 
-     item_target_actors.each do |target| 
-       repeats.times { target.item_apply(user, item) } 
-     end 
-   end 
- end