mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Added hint when drawing 0 cards (#4697)
* Logging a player drawing 0 cards will now result in the message "player had no cards left to draw." * Added hint when drawing when deck is empty * Added hint when drawing when deck is empty * Added hint when drawing when deck is empty * Update cockatrice/src/messagelogwidget.cpp update log message to present tense Co-authored-by: ebbit1q <ebbit1q@gmail.com> * added deckIsEmpty parameter to messagelogwidget::logDrawCards * run format Co-authored-by: ebbit1q <ebbit1q@gmail.com>
This commit is contained in:
parent
b99bd0176a
commit
8e4ddf366c
4 changed files with 12 additions and 8 deletions
|
|
@ -2216,7 +2216,7 @@ void Player::eventDrawCards(const Event_DrawCards &event)
|
|||
|
||||
hand->reorganizeCards();
|
||||
deck->reorganizeCards();
|
||||
emit logDrawCards(this, event.number());
|
||||
emit logDrawCards(this, event.number(), deck->getCards().size() == 0);
|
||||
}
|
||||
|
||||
void Player::eventRevealCards(const Event_RevealCards &event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue