diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-20 14:42:58 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-03-20 15:00:22 +0100 |
commit | 6dce6185c884743ced1aba53c5de61e68dfd498d (patch) | |
tree | 1fa91a3400cfe7848b613cfdde97e0208a434ad7 | |
parent | 4325e38ba9793a03e3cb5d132c0aa4e3ac5f2e7e (diff) | |
download | nevsky-6dce6185c884743ced1aba53c5de61e68dfd498d.tar.gz |
Move Sea Trade to after Veche.
Ships levied by Veche should count for trade.
Keep old behavior around with hidden "cta1" option for replays
and on-going games.
-rw-r--r-- | rules.js | 29 |
1 files changed, 23 insertions, 6 deletions
@@ -3962,7 +3962,10 @@ function count_all_russian_ships() { function goto_russian_call_to_arms() { log_h2("Call to Arms - Novgorod Veche") - goto_black_sea_trade() + if (game.sea_trade_before_veche) + goto_black_sea_trade() + else + goto_novgorod_veche() } function goto_black_sea_trade() { @@ -4014,7 +4017,7 @@ function goto_baltic_sea_trade() { logi(`%${LOC_NEVA} Conquered`) } } - goto_novgorod_veche() + end_baltic_sea_trade() } states.baltic_sea_trade = { @@ -4031,15 +4034,22 @@ states.baltic_sea_trade = { log("Added 2 Coin to Veche.") game.pieces.veche_coin += 2 } - goto_novgorod_veche() + end_baltic_sea_trade() }, } +function end_baltic_sea_trade() { + if (game.sea_trade_before_veche) + goto_novgorod_veche() + else + end_levy_call_to_arms() +} + function goto_novgorod_veche() { if (game.pieces.veche_vp > 0 || is_lord_ready(LORD_ALEKSANDR) || is_lord_ready(LORD_ANDREY)) { game.state = "novgorod_veche" } else { - end_levy_call_to_arms() + end_novgorod_veche() } } @@ -4110,7 +4120,7 @@ states.novgorod_veche = { }, end_call_to_arms() { clear_undo() - end_levy_call_to_arms() + end_novgorod_veche() }, card: action_held_event, } @@ -4123,10 +4133,17 @@ states.novgorod_veche_done = { }, end_call_to_arms() { clear_undo() - end_levy_call_to_arms() + end_novgorod_veche() }, } +function end_novgorod_veche() { + if (game.sea_trade_before_veche) + end_levy_call_to_arms() + else + goto_black_sea_trade() +} + // === CAMPAIGN: CAPABILITY DISCARD === function count_mustered_lords() { |