class Scene_Battle < Scene_Base
#-----------------------------------------------------------------------------
# * Use Item (Overwrite)
#-----------------------------------------------------------------------------
def use_item
item_use_animation
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)
targets.each {|target| item.repeats.times { invoke_item(target, item) } }
end
#-----------------------------------------------------------------------------
# * Item Use Animations
#-----------------------------------------------------------------------------
def item_use_animation
item = @subject.current_action.item
#---------------------------------------------------------------------------
# Cast Animation
#---------------------------------------------------------------------------
if item.note =~/<cast_animation:(.*)>/
@subject.animation_id = "#$1".to_i
@log_window.wait
wait_for_animation
end
end
end