From b0aef8b23789eec2904cadb55755029a7d58261d Mon Sep 17 00:00:00 2001 From: Darien Rousseau <45698803+not-pyroman@users.noreply.github.com> Date: Sat, 23 Dec 2023 19:48:20 -0600 Subject: [PATCH] now that coin isn't weighted, this shouldn't be a thing --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ed4fb25..538daad 100644 --- a/index.js +++ b/index.js @@ -647,7 +647,7 @@ client.on("interactionCreate", async interaction => { outcome = coin == side ? true : false; // If they win, give them the prize, if they lose take up to double the prize away // if they lose inverse the bet and double it - if (!outcome) bet = -bet * 2; + if (!outcome) bet = -bet; await checkAndModifyPoints(interaction.user, bet); setCooldown(interaction.user, "coinflip", config.games.coinflip.cooldown * 60 * 1000) //sanity checks in case they somehow started a coinflip despite having a negative balance if (coin == "heads") return interaction.reply({