This commit is contained in:
JonnyBro 2022-01-19 22:23:10 +05:00
parent f6da7fd2ee
commit e663602de9

View file

@ -95,7 +95,7 @@ class Horserace extends Command {
if (horsePositions[i] === 3) { if (horsePositions[i] === 3) {
const winnings = []; const winnings = [];
const profit = Math.floor((((8.9 / 9) * (10 - thisGame.horseSpeeds[i])) + 1.1) * 10) / 10; const profit = Math.floor((((8.9 / 9) * (6 - thisGame.horseSpeeds[i])) + 1.1) * 10) / 10;
for (let j = 0; j < Object.keys(thisGame.bets).length; j++) { for (let j = 0; j < Object.keys(thisGame.bets).length; j++) {
if (Object.values(thisGame.bets)[j].horse === i + 1) { if (Object.values(thisGame.bets)[j].horse === i + 1) {