if (x == y) {
//武器
var wuqi = $dataWeapons[k]
var num = $gameParty.numItems(wuqi )
if (num > m) {
$gameParty.gainItem(wuqi, -n);
}
//防具
var fangju = $dataArmors[k]
var num = $gameParty.numItems(fangju)
if (num > m) {
$gameParty.gainItem(fangju, -n);
}
//道具
var item = $dataItems[k]
var num = $gameParty.numItems(item)
if (num > m) {
$gameParty.gainItem(item, -n);
}
}
if (x == y) {
//武器
var wuqi = $dataWeapons[k]
var num = $gameParty.numItems(wuqi )
if (num > m) {
$gameParty.gainItem(wuqi, -n);
}
//防具
var fangju = $dataArmors[k]
var num = $gameParty.numItems(fangju)
if (num > m) {
$gameParty.gainItem(fangju, -n);
}
//道具
var item = $dataItems[k]
var num = $gameParty.numItems(item)
if (num > m) {
$gameParty.gainItem(item, -n);
}
}