From 956bfd9b54fc8a9c2da35a73440067e66cea9298 Mon Sep 17 00:00:00 2001 From: CrackmaticSoftware <248342529+CrackmaticSoftware@users.noreply.github.com> Date: Wed, 10 Dec 2025 17:33:19 +0100 Subject: [PATCH] wheel fix (#8) * fix dice lose print * dice can now display rigged results * lambchop * removed GetRandomNext * updated lambchop randomness to use GetRandomNumber() * Change lambchop game timeout to 12 seconds * lambchop quickfix * sync * wheel game * new newBalance calculation * wheel quickfix --- KfChatDotNetBot/Commands/Kasino/WheelCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KfChatDotNetBot/Commands/Kasino/WheelCommand.cs b/KfChatDotNetBot/Commands/Kasino/WheelCommand.cs index 4800c1d..5dee261 100644 --- a/KfChatDotNetBot/Commands/Kasino/WheelCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/WheelCommand.cs @@ -123,14 +123,14 @@ public class WheelCommand : ICommand wheel.ConvertWheelToOvalString()); } - // payout logic + // payout logics var multi = -1.0m; if (wheel.GetDifficulty() == 0) multi = LOW_DIFF_MULTIS[target]; if (wheel.GetDifficulty() == 1) multi = MEDIUM_DIFF_MULTIS[target]; if (wheel.GetDifficulty() == 2) multi = HIGH_DIFF_MULTIS[target]; if (multi == -1.0m) throw new InvalidOperationException($"Could not derrive multi from target: {target} on wheel diff {wheel.GetDifficulty()}"); - var win = multi == 0.00m; + var win = multi != 0.00m; string wheelResultMessage; decimal newBalance; @@ -238,7 +238,7 @@ public class Wheel string middle = _wheelElements[19] + _middleFill + _wheelElements[9]; // bottom row indices 10..18 but reversed so 18..10 var reversedBottom = new List(9); - for (int i = 19; i >= 10; i--) + for (int i = 18; i >= 10; i--) reversedBottom.Add(_wheelElements[i]); string bottom = string.Concat(reversedBottom); return $"{top}\n{middle}\n{bottom}";