Start 0.8 support

This commit is contained in:
2021-05-23 00:03:37 +02:00
parent 3d23807820
commit b93a29f7fc
16 changed files with 63 additions and 46 deletions

View File

@@ -38,7 +38,7 @@ export class SoSCardDeck {
this.cleanCardList();
// Randomize deck
while (this.data.deck.length != NB_POKER_CARD) {
let idx = new Roll("1d54").roll().total;
let idx = new Roll("1d54").roll( {async:false} ).total;
if (!this.data.cardState[idx - 1]) {
if (idx == 53) { // Red Joker
this.data.deck.push( { cardName: 'jr' } );