summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-11 10:47:03 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-11 10:47:03 +0200
commit8fa6de20a81182952cdf0b149ab2adb8c08267b0 (patch)
tree5ef16740d76ad65c9344421c48f01cdb1dbfb41c /rules.ts
parent763dd8f797f1e9948b420a4453e768b47f21fc95 (diff)
downloadplantagenet-8fa6de20a81182952cdf0b149ab2adb8c08267b0.tar.gz
clamp influence to correct range in tides of war
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.ts b/rules.ts
index ba9bda9..110a0f3 100644
--- a/rules.ts
+++ b/rules.ts
@@ -9206,7 +9206,7 @@ function goto_tides_of_war() {
log("Total: " + york)
log_br()
- game.influence = Math.max(0, Math.min(45, game.influence + lanc - york))
+ game.influence = Math.max(-45, Math.min(45, game.influence + lanc - york))
if (eligible_charity())
goto_we_done_deeds_of_charity()