summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-01 21:35:05 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-02 08:22:06 +0000
commite53604ad8fe138be665cd20c4f48fb12b3ebc19a (patch)
tree7542e195543b85b727b695edcd17ff20668b2239
parentcba31c4958fb137fe45bad52d1965038022b35ea (diff)
download1989-dawn-of-freedom-e53604ad8fe138be665cd20c4f48fb12b3ebc19a.tar.gz
Fix Malta Summit when at max stability track
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 56e31cb..50df92b 100644
--- a/rules.js
+++ b/rules.js
@@ -6732,8 +6732,8 @@ states.vm_malta_summit = {
let roll = roll_d6()
log(`Roll: D${roll}`)
if (game.stability > 0) {
- logi(`+${game.stability} from USSR Stability Track`)
- log(`Modified roll: ${roll + game.stability}`)
+ logi(`+${Math.min(game.stability, 3)} from USSR Stability Track`)
+ log(`Modified roll: ${roll + Math.min(game.stability, 3)}`)
}
if (roll + game.stability > 3) {
log('Summit successful')