#--------------------------------------------------------------------------
# ● 附魔属性更改
#--------------------------------------------------------------------------
def equip_fumo(item)
item = @fumo_item
b = item.level
num = item.gifts.size
gifts = []
rd = []
rd_1 = []
if item.is_a?(RPG::Weapon)
rd_1 = different_rand(PA::WEAPON_E.size - 1, num)
for i in 0...num
rd << PA::WEAPON_E[rd_1[i]]
end
end
if item.is_a?(RPG::Armor)
case item.kind
when 0
rd_1 = different_rand(PA::SHIELD_E.size - 1, num)
for i in 0...num
rd << PA::SHIELD_E[rd_1]
end
when 1
rd_1 = different_rand(PA::HELMET_E.size - 1, num)
for i in 0...num
rd << PA::HELMET_E[rd_1[/i]
end
when 2
rd_1 = different_rand(PA::CLOTHE_E.size - 1, num)
for i in 0...num
rd << PA::CLOTHE_E[rd_1[i]]
end
when 3 #首饰
rd_1 = different_rand(PA::NECK_E.size - 1, num)
for i in 0...num
rd << PA::NECK_E[rd_1[i]]
end
end
end
if item.is_a?(RPG::Armor)
rd.each{|n| gifts.push Game_Gift.new(n)}
a = Game_Equip.reini($base_armors[item.base_id],gifts)
Game_Equip.level(a, b)
$game_party.gain_item(a, 1)
else
rd.each{|n| gifts.push Game_Gift.new(n)}
a = Game_Equip.reini($base_weapons[item.base_id],gifts)
Game_Equip.level(a, b)
$game_party.gain_item(a, 1)
end
$game_party.lose_reini(item, 1)
@determine_window.active = false
@fumo_window.active = true
@price_window.refresh(0)
end