Fix roulette '0' bet placement & display.
parent
00880ccadc
commit
c4df942846
|
@ -20,7 +20,7 @@ class RouletteAction(str, Enum):
|
|||
|
||||
@property
|
||||
def validation_function(self):
|
||||
if self == self.__class__.STRAIGHT_UP_BET: return lambda x:x and x >= 0 and x <= 37
|
||||
if self == self.__class__.STRAIGHT_UP_BET: return lambda x: x is not None and x >= 0 and x <= 37
|
||||
if self == self.__class__.LINE_BET: return lambda x: x in LINES
|
||||
if self == self.__class__.COLUMN_BET: return lambda x: x in COLUMNS
|
||||
if self == self.__class__.DOZEN_BET: return lambda x: x in DOZENS
|
||||
|
|
|
@ -293,8 +293,9 @@
|
|||
for (const individualBet of wagers) {
|
||||
const coinText = individualBet.amounts.coins > 0 ? `${individualBet.amounts.coins} ${coinImgHtml}` : "";
|
||||
const procoinText = individualBet.amounts.marseybux > 0 ? `${individualBet.amounts.marseybux} ${marseybuxImgHtml}` : "";
|
||||
const straightUpWhich = (individualBet.which == 37) ? "00" : individualBet.which;
|
||||
const details = {
|
||||
STRAIGHT_UP_BET: `that the number will be ${individualBet.which}`,
|
||||
STRAIGHT_UP_BET: `that the number will be ${straightUpWhich}`,
|
||||
LINE_BET: `that the number will be within line ${individualBet.which}`,
|
||||
COLUMN_BET: `that the number will be within column ${individualBet.which}`,
|
||||
DOZEN_BET: `that the number will be within dozen ${individualBet.which}`,
|
||||
|
|
Loading…
Reference in New Issue