woops, not 50%, need 2% XD
This commit is contained in:
parent
7bd8163fea
commit
ac26502d57
@ -44,7 +44,7 @@ namespace NadekoBot.Modules.Games.Commands
|
|||||||
if (!plantpickCooldowns.TryGetValue(e.Channel.Id, out lastSpawned) || (lastSpawned + new TimeSpan(0, cd, 0)) < now)
|
if (!plantpickCooldowns.TryGetValue(e.Channel.Id, out lastSpawned) || (lastSpawned + new TimeSpan(0, cd, 0)) < now)
|
||||||
{
|
{
|
||||||
var rnd = Math.Abs(GetRandomNumber());
|
var rnd = Math.Abs(GetRandomNumber());
|
||||||
if ((rnd % 2) == 0)
|
if ((rnd % 50) == 0)
|
||||||
{
|
{
|
||||||
var msg = await e.Channel.SendFile(GetRandomCurrencyImagePath());
|
var msg = await e.Channel.SendFile(GetRandomCurrencyImagePath());
|
||||||
var msg2 = await e.Channel.SendMessage($"❗ A random {NadekoBot.Config.CurrencyName} appeared! Pick it up by typing `>pick`");
|
var msg2 = await e.Channel.SendMessage($"❗ A random {NadekoBot.Config.CurrencyName} appeared! Pick it up by typing `>pick`");
|
||||||
|
Loading…
Reference in New Issue
Block a user