diff --git a/commands/Fun/horserace.js b/commands/Fun/horserace.js index 0c4096a3..ac5c86bf 100644 --- a/commands/Fun/horserace.js +++ b/commands/Fun/horserace.js @@ -105,7 +105,7 @@ class Horserace extends Command { } else { let winners = ""; for (let j = 0; j < winnings.length; j++) { - winners += `\n<@${winnings[j][0]}> выиграл **${winnings[j][1]}** ${message.getNoun(winnings[j][1], message.translate("misc:NOUNS:CREDITS:1"), message.translate("misc:NOUNS:CREDITS:2"), message.translate("misc:NOUNS:CREDITS:5"))}!`; + winners += `\n<@${winnings[j][0]}> выиграл **${Math.floor(winnings[j][1])}** ${message.getNoun(Math.floor(winnings[j][1]), message.translate("misc:NOUNS:CREDITS:1"), message.translate("misc:NOUNS:CREDITS:2"), message.translate("misc:NOUNS:CREDITS:5"))}!`; const memberData = await this.client.findOrCreateMember({ id: winnings[j][0], @@ -114,14 +114,14 @@ class Horserace extends Command { const info = { user: message.translate("economy/transactions:HORSERACE"), - amount: winnings[j][1], + amount: Math.floor(winnings[j][1]), date: Date.now(), type: "got" }; data.memberData.transactions.push(info); - memberData.money += winnings[j][1]; + memberData.money += Math.floor(winnings[j][1]); memberData.save(); } diff --git a/languages/ru-RU/fun/horserace.json b/languages/ru-RU/fun/horserace.json index b5ce712d..5f4083ef 100644 --- a/languages/ru-RU/fun/horserace.json +++ b/languages/ru-RU/fun/horserace.json @@ -8,7 +8,7 @@ "HORSE_NAME": "Лошадь {{number}}", "HORSE_VALUE": "Скорость - {{speed}}\nПрибыль - {{profit}}%", "BET": "**{{user}}** поставил {{amount}} на лошадь **{{horse}}**!", - "NO_WINNERS": "Победила лошадь {{horse}}. Никто не выиграл кредиты!", - "WINNERS": "Победила лошадь {{horse}}. {{winners}}!", + "NO_WINNERS": "Победила лошадь **{{horse}}**. Никто не выиграл кредиты!", + "WINNERS": "Победила лошадь **{{horse}}**. {{winners}}!", "GAME_RUNNING": "Игра уже идёт!" } \ No newline at end of file