bitburner-src/src/Casino/Game.ts

17 lines
423 B
TypeScript
Raw Normal View History

import { Player } from "@player";
2022-09-06 15:07:12 +02:00
import { dialogBoxCreate } from "../ui/React/DialogBox";
const gainLimit = 10e9;
export function win(n: number): void {
Player.gainMoney(n, "casino");
}
export function reachedLimit(): boolean {
const reached = Player.getCasinoWinnings() > gainLimit;
if (reached) {
dialogBoxCreate("Alright cheater get out of here. You're not allowed here anymore.");
}
return reached;
2022-09-13 18:37:24 +02:00
}