mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-02 04:23:48 +01:00
Blackjack record loss
This commit is contained in:
parent
752a330735
commit
d84d93ad3b
@ -223,6 +223,7 @@ export class Blackjack extends Game<Props, State> {
|
|||||||
this.win(this.props.p, 2 * gains);
|
this.win(this.props.p, 2 * gains);
|
||||||
} else if (result === Result.DealerWon) {
|
} else if (result === Result.DealerWon) {
|
||||||
gains = -1 * this.state.bet;
|
gains = -1 * this.state.bet;
|
||||||
|
this.win(this.props.p, -this.state.bet); // Get the original bet back
|
||||||
// Dont need to take money here since we already did it at the start
|
// Dont need to take money here since we already did it at the start
|
||||||
} else if (result === Result.Tie) {
|
} else if (result === Result.Tie) {
|
||||||
this.win(this.props.p, this.state.bet); // Get the original bet back
|
this.win(this.props.p, this.state.bet); // Get the original bet back
|
||||||
|
Loading…
Reference in New Issue
Block a user