summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-02 11:30:27 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-02 11:30:27 +0100
commit2177473a839c4599646b3852e2eb090243ee1f77 (patch)
treeae83baa273b245392243dfb6bd518da5e45c0a4f
parent34ad9cfe24460d5464fc1ca311026a70c9684fc5 (diff)
downloadalgeria-2177473a839c4599646b3852e2eb090243ee1f77.tar.gz
fuzzer: allow +0 AP
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 639f7c2..2337388 100644
--- a/rules.js
+++ b/rules.js
@@ -207,8 +207,8 @@ function lower_gov_psl(amount) {
}
function raise_fln_ap(amount, reason) {
- if (amount <= 0)
- throw Error(`ASSERT: amount > 0, but was ${amount}`)
+ if (amount < 0)
+ throw Error(`ASSERT: amount >= 0, but was ${amount}`)
if (reason)
logp(`FLN AP +${amount} (${reason})`)
else