forked from MarseyWorld/MarseyWorld
dramacoins -> coins
parent
df2de5f087
commit
1f79a563bf
|
@ -182,7 +182,7 @@ def spin_roulette_wheel():
|
||||||
|
|
||||||
if coin_winnings > 0:
|
if coin_winnings > 0:
|
||||||
notification_text = notification_text + \
|
notification_text = notification_text + \
|
||||||
f"* You received {coin_winnings} dramacoins.\n"
|
f"* You received {coin_winnings} coins.\n"
|
||||||
|
|
||||||
if procoin_winnings > 0:
|
if procoin_winnings > 0:
|
||||||
notification_text = notification_text + \
|
notification_text = notification_text + \
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
${playerCards}
|
${playerCards}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const currency = state.wager.currency === 'coins' ? 'dramacoins' : 'marseybux';
|
const currency = state.wager.currency === 'coins' ? 'coins' : 'marseybux';
|
||||||
|
|
||||||
switch (state.status) {
|
switch (state.status) {
|
||||||
case 'BLACKJACK':
|
case 'BLACKJACK':
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
const [biggestWinnerAllTime, biggestWinner24h, biggestLoser24h, biggestLoserAllTime] = [
|
const [biggestWinnerAllTime, biggestWinner24h, biggestLoser24h, biggestLoserAllTime] = [
|
||||||
'biggestWinnerAllTime', 'biggestWinner24h', 'biggestLoser24h', 'biggestLoserAllTime'
|
'biggestWinnerAllTime', 'biggestWinner24h', 'biggestLoser24h', 'biggestLoserAllTime'
|
||||||
].map(id => document.getElementById(id));
|
].map(id => document.getElementById(id));
|
||||||
const formatLocalCurrencyName = currency => ({ coins: 'dramacoins', procoins: 'marseybux' })[currency];
|
const formatLocalCurrencyName = currency => ({ coins: 'coins', procoins: 'marseybux' })[currency];
|
||||||
|
|
||||||
biggestWinnerAllTime.innerHTML = `
|
biggestWinnerAllTime.innerHTML = `
|
||||||
<a href="/@${leaderboardData.all_time.biggest_win.user}">${leaderboardData.all_time.biggest_win.user}</a> <br /><small>${leaderboardData.all_time.biggest_win.amount} ${formatLocalCurrencyName(leaderboardData.all_time.biggest_win.currency)}</small>
|
<a href="/@${leaderboardData.all_time.biggest_win.user}">${leaderboardData.all_time.biggest_win.user}</a> <br /><small>${leaderboardData.all_time.biggest_win.amount} ${formatLocalCurrencyName(leaderboardData.all_time.biggest_win.currency)}</small>
|
||||||
|
|
Loading…
Reference in New Issue