mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
plinko fixes (#34)
* more plinko fixes more plinko fixes * fix fix * fix
This commit is contained in:
@@ -38,13 +38,13 @@ public class PlinkoCommand : ICommand
|
||||
|
||||
private static readonly Dictionary<int, decimal> PlinkoPayoutBoard = new()
|
||||
{
|
||||
{0, 25},
|
||||
{1, (decimal)2.5},
|
||||
{0, 8},
|
||||
{1, (decimal)0.5},
|
||||
{2, (decimal)0.25},
|
||||
{3, (decimal)0.1},
|
||||
{3, (decimal)0.25},
|
||||
{4, (decimal)0.25},
|
||||
{5, (decimal)2.5},
|
||||
{6, 25},
|
||||
{5, (decimal)0.5},
|
||||
{6, 8},
|
||||
|
||||
};
|
||||
private static readonly List<(int row, int col)> validPositions = new() //would need to come up with a formula to make this to have user defined difficulty, good luck
|
||||
@@ -57,7 +57,10 @@ public class PlinkoCommand : ICommand
|
||||
(5, 0), (5, 1),(5, 2), (5, 4), (5, 5), (5, 6),
|
||||
(6, 0), (6, 1),(6, 2), (6, 3), (6, 4), (6, 5), (6, 6)
|
||||
};
|
||||
|
||||
// 1 1 1 1 1 1 1
|
||||
// 2 1 0.5 1 0.5 1 2
|
||||
// 4 0.5 0.5 0.25 0.5 0.5 4
|
||||
// 8 0.5 0.25 0.25 0.25 0.5 8
|
||||
public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
|
||||
CancellationToken ctx)
|
||||
{
|
||||
@@ -150,7 +153,7 @@ public class PlinkoCommand : ICommand
|
||||
else
|
||||
{
|
||||
await botInstance.SendChatMessageAsync(
|
||||
$"{user.FormatUsername()}, you [color={settings[BuiltIn.Keys.KiwiFarmsRedColor].Value!}lost[/color] ${wager-currentPayout} KKK from a plinko ball worth {wager}.", true, autoDeleteAfter: TimeSpan.FromSeconds(5));
|
||||
$"{user.FormatUsername()}, you [color={settings[BuiltIn.Keys.KiwiFarmsRedColor].Value!}]lost[/color] ${wager-currentPayout} KKK from a plinko ball worth {wager}.", true, autoDeleteAfter: TimeSpan.FromSeconds(5));
|
||||
}
|
||||
ballsInPlay.RemoveAt(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user