class Game_Troop < Game_Unit
alias make_drop_items_KGC_ExtraDropItem make_drop_items
def make_drop_items
@actor = actor
drop_items = make_drop_items_KGC_ExtraDropItem
dead_members.each { |enemy|
enemy.extra_drop_items.each_with_index { |di, i|
next if di.kind == 0
if di.drop_prob > 0
next if (di.drop_prob * (actor.luck + 100)/100) < rand(100)
else
next if rand(di.denominator) != 0
end
if di.kind == 1
drop_items.push($data_items[di.item_id])
elsif di.kind == 2
drop_items.push($data_weapons[di.weapon_id])
elsif di.kind == 3
drop_items.push($data_armors[di.armor_id])
end
if $imported["EnemyGuide"]
KGC::Commands.set_enemy_item_dropped(enemy.enemy.id, i + 2)
end
}
}
return drop_items
end
end