plinko fixes (#34)

* more plinko fixes

more plinko fixes

* fix

fix

* fix
This commit is contained in:
alogindtractor
2026-01-08 07:13:30 -08:00
committed by GitHub
parent 73f933db4a
commit 21fd54f83e

View File

@@ -38,13 +38,13 @@ public class PlinkoCommand : ICommand
private static readonly Dictionary<int, decimal> PlinkoPayoutBoard = new() private static readonly Dictionary<int, decimal> PlinkoPayoutBoard = new()
{ {
{0, 25}, {0, 8},
{1, (decimal)2.5}, {1, (decimal)0.5},
{2, (decimal)0.25}, {2, (decimal)0.25},
{3, (decimal)0.1}, {3, (decimal)0.25},
{4, (decimal)0.25}, {4, (decimal)0.25},
{5, (decimal)2.5}, {5, (decimal)0.5},
{6, 25}, {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 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), (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) (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, public async Task RunCommand(ChatBot botInstance, MessageModel message, UserDbModel user, GroupCollection arguments,
CancellationToken ctx) CancellationToken ctx)
{ {
@@ -150,7 +153,7 @@ public class PlinkoCommand : ICommand
else else
{ {
await botInstance.SendChatMessageAsync( 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); ballsInPlay.RemoveAt(0);
} }