[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:
BruebachL 2026-04-29 22:09:30 +02:00 committed by GitHub
parent 314a577807
commit 9ac9a0c73a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 21 additions and 1 deletions

View file

@ -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());