forked from MarseyWorld/MarseyWorld
Fix roulette '0' bet placement & display.
parent
00880ccadc
commit
c4df942846
|
@ -20,13 +20,13 @@ 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__.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
|
||||
if self == self.__class__.EVEN_ODD_BET: return lambda x:x in [y.value for y in RouletteEvenOdd]
|
||||
if self == self.__class__.RED_BLACK_BET: return lambda x:x in [y.value for y in RouletteRedBlack]
|
||||
if self == self.__class__.HIGH_LOW_BET: return lambda x:x in [y.value for y in RouletteHighLow]
|
||||
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
|
||||
if self == self.__class__.EVEN_ODD_BET: return lambda x: x in [y.value for y in RouletteEvenOdd]
|
||||
if self == self.__class__.RED_BLACK_BET: return lambda x: x in [y.value for y in RouletteRedBlack]
|
||||
if self == self.__class__.HIGH_LOW_BET: return lambda x: x in [y.value for y in RouletteHighLow]
|
||||
raise ValueError("Unhandled validation function for RouletteAction")
|
||||
|
||||
|
||||
|
|
|
@ -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