From 0305f2a35c9394a2e71235a568668955ed6e6e8d Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 20 Feb 2026 18:26:38 -0600 Subject: [PATCH] Fix borked code due to dodgy merge conflict --- .../Commands/Kasino/LambchopCommand.cs | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs b/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs index edcc055..6c0d662 100644 --- a/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/LambchopCommand.cs @@ -327,28 +327,20 @@ public class LambchopCommand : ICommand { return -1; // No death tile (player succeeds) } - + // Player fails - calculate where the death tile appears double riggingFactor = Money.GetRandomDouble(gambler); if (_houseEdge > 0 && riggingFactor < _houseEdge * 2) // shitty hack because I made the decision to clamp houseEdge to max 50% { - // Player fails - calculate where the death tile appears - double riggingFactor = Money.GetRandomDouble(gambler); - if (_houseEdge > 0 && riggingFactor < _houseEdge * 2) // shitty hack because I made the decision to clamp houseEdge to max 50% - { - // More rigging means death tile is more likely near the end - int minDeathTile = Math.Max(0, FIELD_LENGTH - 3); - return Money.GetRandomNumber(gambler, minDeathTile, FIELD_LENGTH, incrementMaxParam:false); // return 15 means dying on the last tile xd - } - else - { - // Player fail, random tile in the path becomes death tile - return Money.GetRandomNumber(gambler,0, FIELD_LENGTH, incrementMaxParam:false); - } + // More rigging means death tile is more likely near the end + int minDeathTile = Math.Max(0, FIELD_LENGTH - 3); + return Money.GetRandomNumber(gambler, minDeathTile, FIELD_LENGTH, incrementMaxParam:false); // return 15 means dying on the last tile xd + } + else + { + // Player fail, random tile in the path becomes death tile + return Money.GetRandomNumber(gambler,0, FIELD_LENGTH, incrementMaxParam:false); } - - // Player fail, random tile in the path becomes death tile - return Money.GetRandomNumber(gambler,0, FIELD_LENGTH); } // Tiles 1 - 15