put cards on top in a random order (#4960)
This commit is contained in:
parent
9f86ed7887
commit
4acc8bfe80
1 changed files with 11 additions and 1 deletions
|
@ -855,7 +855,7 @@ void Player::retranslateUi()
|
||||||
aSetCounter[i]->setText(tr("&Set counters (%1)...").arg(counterColors[i]));
|
aSetCounter[i]->setText(tr("&Set counters (%1)...").arg(counterColors[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
aMoveToTopLibrary->setText(tr("&Top of library"));
|
aMoveToTopLibrary->setText(tr("&Top of library in random order"));
|
||||||
aMoveToXfromTopOfLibrary->setText(tr("X cards from the top of library..."));
|
aMoveToXfromTopOfLibrary->setText(tr("X cards from the top of library..."));
|
||||||
aMoveToBottomLibrary->setText(tr("&Bottom of library in random order"));
|
aMoveToBottomLibrary->setText(tr("&Bottom of library in random order"));
|
||||||
aMoveToHand->setText(tr("&Hand"));
|
aMoveToHand->setText(tr("&Hand"));
|
||||||
|
@ -2953,6 +2953,16 @@ void Player::cardMenuAction()
|
||||||
cmd->set_target_zone("deck");
|
cmd->set_target_zone("deck");
|
||||||
cmd->set_x(0);
|
cmd->set_x(0);
|
||||||
cmd->set_y(0);
|
cmd->set_y(0);
|
||||||
|
|
||||||
|
if (idList.card_size() > 1) {
|
||||||
|
auto *scmd = new Command_Shuffle;
|
||||||
|
scmd->set_zone_name("deck");
|
||||||
|
scmd->set_start(0);
|
||||||
|
scmd->set_end(idList.card_size());
|
||||||
|
// Server process events backwards, so...
|
||||||
|
commandList.append(scmd);
|
||||||
|
}
|
||||||
|
|
||||||
commandList.append(cmd);
|
commandList.append(cmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue