summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
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
}