From 744b001f563d810477354103540098634892f8d7 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 19 Jan 2022 18:48:21 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Fun/horserace.js | 6 +++--- languages/ru-RU/fun/horserace.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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