From 422c33fe31b1e3a84720fa685b4f2e1c5965ea1f Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sat, 4 Nov 2023 10:29:27 +0100 Subject: fix pay_ap --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index d563e64..dc11e31 100644 --- a/rules.js +++ b/rules.js @@ -226,7 +226,7 @@ function log_pay_ap(amount) { function pay_ap(amount, verbose=true) { if (verbose) log_pay_ap(amount) - game.fln_ap = Math.min(MAX_AP, game.fln_ap + amount) + game.fln_ap = Math.max(0, game.fln_ap - amount) return amount } -- cgit v1.2.3