BUGFIX: Player can win more than casino's limit (#2042)

This commit is contained in:
catloversg
2025-03-22 00:49:15 +07:00
committed by GitHub
parent d62a1f38ca
commit de8c8691c2

View File

@@ -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");
}