Nerfed $bf - now 1.8x

This commit is contained in:
Kwoth 2016-10-20 05:35:00 +02:00
parent 2848efcfb7
commit 2279b4a35e
4 changed files with 8 additions and 6 deletions

View File

@ -19,7 +19,7 @@ namespace NadekoBot.Modules.Administration
public class VoicePlusTextCommands public class VoicePlusTextCommands
{ {
Regex channelNameRegex = new Regex(@"[^a-zA-Z0-9 -]", RegexOptions.Compiled); Regex channelNameRegex = new Regex(@"[^a-zA-Z0-9 -]", RegexOptions.Compiled);
//guildid/voiceplustextenabled
private ConcurrentHashSet<ulong> voicePlusTextCache; private ConcurrentHashSet<ulong> voicePlusTextCache;
public VoicePlusTextCommands() public VoicePlusTextCommands()
{ {

View File

@ -4,6 +4,7 @@ using ImageProcessorCore;
using NadekoBot.Attributes; using NadekoBot.Attributes;
using NadekoBot.Extensions; using NadekoBot.Extensions;
using NadekoBot.Services; using NadekoBot.Services;
using System;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -92,8 +93,9 @@ namespace NadekoBot.Modules.Gambling
string str; string str;
if (isHeads == result) if (isHeads == result)
{ {
str = $"{umsg.Author.Mention}`You guessed it!` You won {amount * 2}{Gambling.CurrencySign}"; var toWin = (int)Math.Round(amount * 1.8);
await CurrencyHandler.AddCurrencyAsync((IGuildUser)umsg.Author, "Betflip Gamble", amount * 2, false).ConfigureAwait(false); str = $"{umsg.Author.Mention}`You guessed it!` You won {toWin}{Gambling.CurrencySign}";
await CurrencyHandler.AddCurrencyAsync((IGuildUser)umsg.Author, "Betflip Gamble", toWin, false).ConfigureAwait(false);
} }
else else
{ {

View File

@ -636,7 +636,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Bet to guess will the result be heads or tails. Guessing awards you double the currency you&apos;ve bet.. /// Looks up a localized string similar to Bet to guess will the result be heads or tails. Guessing awards you 1.8x the currency you&apos;ve bet..
/// </summary> /// </summary>
public static string betflip_desc { public static string betflip_desc {
get { get {

View File

@ -1174,7 +1174,7 @@
<value>betflip bf</value> <value>betflip bf</value>
</data> </data>
<data name="betflip_desc" xml:space="preserve"> <data name="betflip_desc" xml:space="preserve">
<value>Bet to guess will the result be heads or tails. Guessing awards you double the currency you've bet.</value> <value>Bet to guess will the result be heads or tails. Guessing awards you 1.8x the currency you've bet.</value>
</data> </data>
<data name="betflip_usage" xml:space="preserve"> <data name="betflip_usage" xml:space="preserve">
<value>`{0}bf 5 heads` or `{0}bf 3 t`</value> <value>`{0}bf 5 heads` or `{0}bf 3 t`</value>