#encoding:utf-8
#==============================================================================
# ■ Window_BattleItem
#------------------------------------------------------------------------------
# 战斗画面中,选择“使用物品”的窗口。
#==============================================================================
class Window_BattleItem < Window_ItemList
#--------------------------------------------------------------------------
# ● 生成物品列表
#--------------------------------------------------------------------------
def make_item_list
@data = $game_party.all_items.select {|item| include?(item) and actor_cost?(item) }
@data.push(nil) if include?(nil)
end
#--------------------------------------------------------------------------
# ● 特定玩家判断
#--------------------------------------------------------------------------
def actor_cost?(item)
if item.note =~ /@actor_cost\[(.+?)\]/
return false unless $1.split(/,/).collect{|str|str.to_i}.include?(BattleManager.actor.id)
end
return true
end
end