small fix

This commit is contained in:
Kwoth 2017-03-22 20:04:00 +01:00
parent 655b98d16d
commit c1b14cc96b
3 changed files with 6 additions and 6 deletions

View File

@ -144,11 +144,11 @@ namespace NadekoBot.Modules.Gambling
await ReplyErrorLocalized("min_bet_limit", 1 + CurrencySign).ConfigureAwait(false); await ReplyErrorLocalized("min_bet_limit", 1 + CurrencySign).ConfigureAwait(false);
return; return;
} }
const int maxAmount = 9999;
if (amount > 9999) if (amount > maxAmount)
{ {
GetText("slot_maxbet", 999 + CurrencySign); GetText("slot_maxbet", maxAmount + CurrencySign);
await ReplyErrorLocalized("max_bet_limit", 999 + CurrencySign).ConfigureAwait(false); await ReplyErrorLocalized("max_bet_limit", maxAmount + CurrencySign).ConfigureAwait(false);
return; return;
} }

View File

@ -9006,7 +9006,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// 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..
/// </summary> /// </summary>
public static string waifuclaim_desc { public static string waifuclaim_desc {
get { get {

View File

@ -3001,7 +3001,7 @@
<value>claimwaifu claim</value> <value>claimwaifu claim</value>
</data> </data>
<data name="waifuclaim_desc" xml:space="preserve"> <data name="waifuclaim_desc" xml:space="preserve">
<value>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.</value> <value>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.</value>
</data> </data>
<data name="waifuclaim_usage" xml:space="preserve"> <data name="waifuclaim_usage" xml:space="preserve">
<value>`{0}claim 50 @Himesama`</value> <value>`{0}claim 50 @Himesama`</value>