From f22453c3b4771912c2d96c389add4fc83304dcb4 Mon Sep 17 00:00:00 2001 From: Golbolco Date: Fri, 1 Dec 2023 22:50:08 -0500 Subject: [PATCH] revert: coin issue --- Games/core/Game.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Games/core/Game.js b/Games/core/Game.js index 0d5c1d1e5..8e66cb3b0 100644 --- a/Games/core/Game.js +++ b/Games/core/Game.js @@ -1660,24 +1660,6 @@ module.exports = class Game { } } - //Logic for distributing coins - const coinValue = function distributeCoins() { - // Checks for ranked game - if (this.ranked && player.won) { - return 1; - } - // Checks for competitive game - else if (this.competitive && player.won) { - return 5; - } else if (this.competitive && player.won === false) { - return -1; - } - // Unranked + Sandbox games receive 0 coins - else { - return 0; - } - }; - await models.User.updateOne( { id: player.user.id }, { @@ -1686,7 +1668,7 @@ module.exports = class Game { $inc: { rankedPoints: rankedPoints, competitivePoints: competitivePoints, - coins: coinValue, + coins: this.ranked && player.won ? 1 : 0, }, } ).exec();