Start 0.8 support
This commit is contained in:
@@ -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' } );
|
||||
|
||||
Reference in New Issue
Block a user