mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BUGFIX: Player can win more than casino's limit (#2042)
This commit is contained in:
@@ -4,6 +4,9 @@ import { dialogBoxCreate } from "../ui/React/DialogBox";
|
||||
const gainLimit = 10e9;
|
||||
|
||||
export function win(n: number): void {
|
||||
if (reachedLimit()) {
|
||||
return;
|
||||
}
|
||||
Player.gainMoney(n, "casino");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user