if(recoupment > 0 && probability <= 50) {
var drop = setWinnerDrop(itemsbot, true);
if(drop) {
resolve(drop);
} else {
var drop = setWinnerDrop(itemsbot, false);
if(drop) {
resolve(drop);
} else {
resolve(false);
return;
}
}
} else {
var drop = setWinnerDrop(itemsbot, false);
if(drop) {
resolve(drop);
} else {
resolve(false);
return;
}
}
resolve((recoupment > 0 && probability <= 50 && setWinnerDrop(itemsbot, true))
|| setWinnerDrop(itemsbot, false) || false);