mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
fixes (#22)
* Blackjack * sync * make BJ deck suffeling not OOB anymore * tag !juice recipients * lambchop RTP adjustment
This commit is contained in:
committed by
GitHub
parent
318241a58c
commit
be669bf951
@@ -116,7 +116,7 @@ public class SendJuiceCommand : ICommand
|
|||||||
$"Juice sent to {targetUser.KfUsername}", ct: ctx);
|
$"Juice sent to {targetUser.KfUsername}", ct: ctx);
|
||||||
await Money.ModifyBalanceAsync(targetGambler.Id, amount, TransactionSourceEventType.Juicer, $"Juice from {user.KfUsername}",
|
await Money.ModifyBalanceAsync(targetGambler.Id, amount, TransactionSourceEventType.Juicer, $"Juice from {user.KfUsername}",
|
||||||
gambler.Id, ctx);
|
gambler.Id, ctx);
|
||||||
await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, {await amount.FormatKasinoCurrencyAsync()} has been sent to {targetUser.KfUsername}", true);
|
await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, {await amount.FormatKasinoCurrencyAsync()} has been sent to {targetUser.FormatUsername()}", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -414,8 +414,8 @@ public class LambchopCommand : ICommand
|
|||||||
targetTile -= 1; // make it 0 indexed xd
|
targetTile -= 1; // make it 0 indexed xd
|
||||||
List<double> lambChopMultis =
|
List<double> lambChopMultis =
|
||||||
[
|
[
|
||||||
1.072, 1.191, 1.331, 1.498, 1.698, 1.940, 2.238, 2.612, 3.086,
|
1.062, 1.138, 1.228, 1.318, 1.426, 1.561, 1.714, 1.912, 2.142,
|
||||||
3.704, 4.527, 5.658, 7.275, 9.700, 13.580, 20.370
|
2.442, 2.871, 3.425, 4.272, 5.702, 8.539, 16.861
|
||||||
];
|
];
|
||||||
if (FIELD_LENGTH != lambChopMultis.Count)
|
if (FIELD_LENGTH != lambChopMultis.Count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ public static class BlackjackHelper
|
|||||||
// Shuffle using Fisher-Yates
|
// Shuffle using Fisher-Yates
|
||||||
for (int i = deck.Count - 1; i > 0; i--)
|
for (int i = deck.Count - 1; i > 0; i--)
|
||||||
{
|
{
|
||||||
int j = Money.GetRandomNumber(gambler, 0, i + 1, incrementMaxParam: false);
|
int j = Money.GetRandomNumber(gambler, 0, i + 1, incrementMaxParam:false);
|
||||||
(deck[i], deck[j]) = (deck[j], deck[i]);
|
(deck[i], deck[j]) = (deck[j], deck[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user