diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-15 16:44:02 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-15 16:45:24 +0200 |
commit | 6287eda064ea7b089d07074866c6da1d807bbf23 (patch) | |
tree | 20c9c75b3ba67fe715dbb90e1233e2e453d7ed5e | |
parent | 4d4c7db5e0819a5fbc19f8e3f11d5eeeb625d2e2 (diff) | |
download | andean-abyss-6287eda064ea7b089d07074866c6da1d807bbf23.tar.gz |
Tweak Bribe space to end when no more guerrillas/cubes can be removed.
-rw-r--r-- | rules.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -5823,7 +5823,13 @@ states.bribe_space = { piece(p) { logi("Removed " + piece_name(p)) remove_piece(p) - if (game.sa.targeted || is_any_base(p)) + if (game.sa.targeted) + end_bribe_space() + else if (is_any_base(p)) + end_bribe_space() + else if (is_cube(p) && !has_cube(game.sa.where)) + end_bribe_space() + else if (is_any_guerrilla(p) && !has_piece(game.sa.where, FARC, GUERRILLA) && !has_piece(game.sa.where, AUC, GUERRILLA)) end_bribe_space() else game.sa.targeted |= target_faction(p) |