Fix borked code due to dodgy merge conflict

This commit is contained in:
barelyprofessional
2026-02-20 18:26:38 -06:00
parent 6b6bfe2699
commit 0305f2a35c
@@ -332,23 +332,15 @@ public class LambchopCommand : ICommand
double riggingFactor = Money.GetRandomDouble(gambler); double riggingFactor = Money.GetRandomDouble(gambler);
if (_houseEdge > 0 && riggingFactor < _houseEdge * 2) // shitty hack because I made the decision to clamp houseEdge to max 50% 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 // More rigging means death tile is more likely near the end
double riggingFactor = Money.GetRandomDouble(gambler); int minDeathTile = Math.Max(0, FIELD_LENGTH - 3);
if (_houseEdge > 0 && riggingFactor < _houseEdge * 2) // shitty hack because I made the decision to clamp houseEdge to max 50% return Money.GetRandomNumber(gambler, minDeathTile, FIELD_LENGTH, incrementMaxParam:false); // return 15 means dying on the last tile xd
{ }
// More rigging means death tile is more likely near the end else
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 // Player fail, random tile in the path becomes death tile
} return Money.GetRandomNumber(gambler,0, FIELD_LENGTH, incrementMaxParam:false);
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 // Tiles 1 - 15