From c1b14cc96b356594dccc931326972a114e38471d Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 22 Mar 2017 20:04:00 +0100 Subject: [PATCH] small fix --- src/NadekoBot/Modules/Gambling/Commands/Slots.cs | 8 ++++---- src/NadekoBot/Resources/CommandStrings.Designer.cs | 2 +- src/NadekoBot/Resources/CommandStrings.resx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NadekoBot/Modules/Gambling/Commands/Slots.cs b/src/NadekoBot/Modules/Gambling/Commands/Slots.cs index f4cf201a..198d4d72 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/Slots.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/Slots.cs @@ -144,11 +144,11 @@ namespace NadekoBot.Modules.Gambling await ReplyErrorLocalized("min_bet_limit", 1 + CurrencySign).ConfigureAwait(false); return; } - - if (amount > 9999) + const int maxAmount = 9999; + if (amount > maxAmount) { - GetText("slot_maxbet", 999 + CurrencySign); - await ReplyErrorLocalized("max_bet_limit", 999 + CurrencySign).ConfigureAwait(false); + GetText("slot_maxbet", maxAmount + CurrencySign); + await ReplyErrorLocalized("max_bet_limit", maxAmount + CurrencySign).ConfigureAwait(false); return; } diff --git a/src/NadekoBot/Resources/CommandStrings.Designer.cs b/src/NadekoBot/Resources/CommandStrings.Designer.cs index 045f5885..cc7550b6 100644 --- a/src/NadekoBot/Resources/CommandStrings.Designer.cs +++ b/src/NadekoBot/Resources/CommandStrings.Designer.cs @@ -9006,7 +9006,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to Claim a waifu for yourself by spending currency. You must spend atleast 10% more than her current value unless she set `{0}affinity` towards you.. + /// Looks up a localized string similar to Claim a waifu for yourself by spending currency. You must spend at least 10% more than her current value unless she set `{0}affinity` towards you.. /// public static string waifuclaim_desc { get { diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx index 14a6e44a..790df4de 100644 --- a/src/NadekoBot/Resources/CommandStrings.resx +++ b/src/NadekoBot/Resources/CommandStrings.resx @@ -3001,7 +3001,7 @@ claimwaifu claim - Claim a waifu for yourself by spending currency. You must spend atleast 10% more than her current value unless she set `{0}affinity` towards you. + Claim a waifu for yourself by spending currency. You must spend at least 10% more than her current value unless she set `{0}affinity` towards you. `{0}claim 50 @Himesama`