mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
casino roulette actually advances the seed now.
This commit is contained in:
parent
75de6c665d
commit
ad938b1525
@ -164,9 +164,9 @@ export function Roulette(props: IProps): React.ReactElement {
|
|||||||
let playerWin = strategy.match(n);
|
let playerWin = strategy.match(n);
|
||||||
// oh yeah, the house straight up cheats. Try finding the seed now!
|
// oh yeah, the house straight up cheats. Try finding the seed now!
|
||||||
if (playerWin && Math.random() > 0.9) {
|
if (playerWin && Math.random() > 0.9) {
|
||||||
playerWin = false;
|
while (playerWin) {
|
||||||
while (strategy.match(n)) {
|
n = Math.floor(rng.random() * 37);
|
||||||
n = (n + 1) % 36;
|
playerWin = strategy.match(n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (playerWin) {
|
if (playerWin) {
|
||||||
|
Loading…
Reference in New Issue
Block a user