From ce2cd66bab2bb56f05864f6ff2a6cf15250e27b6 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Jan 2021 21:48:15 -0500 Subject: [PATCH] Fix --- commands/games-mp/car-race.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/games-mp/car-race.js b/commands/games-mp/car-race.js index d32ea2a9..db290d81 100644 --- a/commands/games-mp/car-race.js +++ b/commands/games-mp/car-race.js @@ -155,7 +155,7 @@ module.exports = class CarRaceCommand extends Command { let oppoCarSpaces = 0; let lastRoundWinner; let lastTurnTimeout = false; - while (userCarSpaces < 5 && oppoCarSpaces < 5) { + while (userCarSpaces < 6 && oppoCarSpaces < 6) { const board = this.generateBoard(bg, userCar, oppoCar, userCarSpaces, oppoCarSpaces); let text; if (lastRoundWinner) { @@ -177,8 +177,8 @@ module.exports = class CarRaceCommand extends Command { time: randomRange(1000, 30000) }); if (earlyEnd.size) { - if (earlyEnd.first().author.id === msg.author.id) oppoCarSpaces = 5; - else if (earlyEnd.first().author.id === opponent.id) userCarSpaces = 5; + if (earlyEnd.first().author.id === msg.author.id) oppoCarSpaces = 6; + else if (earlyEnd.first().author.id === opponent.id) userCarSpaces = 6; break; } const word = words[Math.floor(Math.random() * words.length)]; @@ -204,8 +204,8 @@ module.exports = class CarRaceCommand extends Command { } const win = winner.first(); if (win.content.toLowerCase() === 'end') { - if (win.author.id === msg.author.id) oppoCarSpaces = 5; - else if (win.author.id === opponent.id) userCarSpaces = 5; + if (win.author.id === msg.author.id) oppoCarSpaces = 6; + else if (win.author.id === opponent.id) userCarSpaces = 6; break; } if (win.author.id === msg.author.id) userCarSpaces += 1;