fix(blackjack): update payout function signature
This commit is contained in:
parent
365b2c4d13
commit
968672da06
|
|
@ -166,7 +166,7 @@ export function createCardHelpers(world: World) {
|
||||||
message: "Both have Blackjack — Push! Press N for new round.",
|
message: "Both have Blackjack — Push! Press N for new round.",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const winnings = payout(0, "blackjack", bet.amount);
|
const winnings = payout("blackjack", bet.amount);
|
||||||
score.chips += bet.amount + winnings;
|
score.chips += bet.amount + winnings;
|
||||||
score.wins++;
|
score.wins++;
|
||||||
world.setSingleton(GamePhase, {
|
world.setSingleton(GamePhase, {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue