summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-04 10:29:27 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-04 10:29:27 +0100
commit422c33fe31b1e3a84720fa685b4f2e1c5965ea1f (patch)
tree70327fea81e27a16885bd397d76b92c522ab6f51 /rules.js
parent7eaa58cd757e13169d574952a7c4c65c448f5ff9 (diff)
downloadalgeria-422c33fe31b1e3a84720fa685b4f2e1c5965ea1f.tar.gz
fix pay_ap
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
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
}