var lost_s = []
for (var id in $gameParty._items) {
var item = $dataItems[id]
if (item .itypeId != 2) {
for (var i=0;i<$gameParty._items[id];i++) {
lost_s.push(id)
}
}
}
for (var i=0;i<lost_s.length;i++) {
var id = lost_sp[i]
var item = $dataItems[id]
$gameParty.gainItem(item, -1);
}
var lost_s = []
for (var id in $gameParty._items) {
var item = $dataItems[id]
if (item .itypeId != 2) {
for (var i=0;i<$gameParty._items[id];i++) {
lost_s.push(id)
}
}
}
for (var i=0;i<lost_s.length;i++) {
var id = lost_sp[i]
var item = $dataItems[id]
$gameParty.gainItem(item, -1);
}