$VIPArcherScript ||= {};$VIPArcherScript[:expand_drop] = 20141101
class RPG::Enemy < RPG::BaseItem
def get_extra_drop_item
expand_drop_item = []
self.note.split(/[\r\n]+/).each{ |line|
if line =~ /<drops((?:\s+\w+){3})%>/
expand_item = $1.lstrip.split(/\s+/)
expand_drop_item.push(expand_item)
end}
return expand_drop_item
end
def make_drop_item(drop_item)
return nil if drop_item == []
di = RPG::Enemy::DropItem.new
di.kind = ["","i","w","a"].index(drop_item[0])
di.data_id = drop_item[1].to_i
di.denominator = 100 / drop_item[2].to_f
return di
end
alias extra_drop_items drop_items
def drop_items
items = extra_drop_items.clone
get_extra_drop_item.each{|item| items.push(make_drop_item(item)) if item}
return items
end
end