if @equip_type == 0
weapon_set = $data_classes[@actor.class_id].weapon_set
for i in 1...$data_weapons.size
if $game_party.weapon_number(i) > 0 and weapon_set.include?(i)
print <<EOF
index = #{i};
id = #{$data_weapons[ i ].id};
num by index = #{$game_party.weapon_number(i)};
num by id = #{$game_party.weapon_number($data_weapons[ i ].id)};
EOF
@data.push($data_weapons[ i ])
end
end
end
1.保證可以用索引(index)讀到物品
2.保證可以用物品找到索引(id)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |