summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-01 14:17:34 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-01 14:17:34 +0000
commit102d457b47c56aaaf1a81e3390db6c602b8b7609 (patch)
tree4e5bd96b778080f925bed750b626ac3accd581cf /rules.js
parent5c373ae78fd9f0f0948412f153ab3a09ee5b8d49 (diff)
download1989-dawn-of-freedom-102d457b47c56aaaf1a81e3390db6c602b8b7609.tar.gz
Fix new remove influence state
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 25a2f4b..a7a462c 100644
--- a/rules.js
+++ b/rules.js
@@ -2126,7 +2126,7 @@ function remove_infl(space, ops) {
check_tyrant()
}
game[ops]--
- if (game.vm_influence_added && game.vm_influence_added[space]) {game.vm_influence_added[space]++}
+ if (game.vm_influence_added && game.vm_influence_added[space] >= 0) {game.vm_influence_added[space]++}
if (game[ops]===0) {game.valid_spaces = []}
}
@@ -8285,7 +8285,6 @@ CODE[72] = [ // Peasant Parties Revolt
]
CODE[73] = [ // Laszlo Tokes*
- [ vm_permanently_remove ],
[ vm_valid_spaces, 'Timisoara', 'Harghita/Covasna' ],
[ vm_prompt, 'in Timisoara and Harghita/Covasna' ],
[ vm_add_limited_infl, 2, 1 ],