mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
фикс
This commit is contained in:
parent
f6da7fd2ee
commit
e663602de9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue