mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 22:53:55 -07:00
[Game] Add a coinflip shortcut. (#6829)
Took 18 minutes Took 6 seconds Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
314a577807
commit
9ac9a0c73a
5 changed files with 21 additions and 1 deletions
|
|
@ -852,6 +852,14 @@ void PlayerActions::actRollDie()
|
|||
sendGameCommand(cmd);
|
||||
}
|
||||
|
||||
void PlayerActions::actFlipCoin()
|
||||
{
|
||||
Command_RollDie cmd;
|
||||
cmd.set_sides(2);
|
||||
cmd.set_count(1);
|
||||
sendGameCommand(cmd);
|
||||
}
|
||||
|
||||
void PlayerActions::actCreateToken()
|
||||
{
|
||||
DlgCreateToken dlg(player->getPlayerMenu()->getUtilityMenu()->getPredefinedTokens(), player->getGame()->getTab());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue