diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-22 11:39:05 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | 12075d7532c9597d3cc7817e91a891ce888514ca (patch) | |
tree | 81c7b515cb7409c9070d8b7fa9efda4df3f22698 | |
parent | 10505553517ee6742014124e79b47b9a552abade (diff) | |
download | nevsky-12075d7532c9597d3cc7817e91a891ce888514ca.tar.gz |
Fix Baltic Sea Trade + Lodya.
-rw-r--r-- | rules.js | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -3965,6 +3965,7 @@ states.black_sea_trade = { function goto_baltic_sea_trade() { if (!is_winter() && has_global_capability(AOW_RUSSIAN_BALTIC_SEA_TRADE)) { if (!has_conquered_marker(LOC_NOVGOROD) && !has_conquered_marker(LOC_NEVA)) { + init_lodya_baltic_sea_trade() let t = count_all_teutonic_ships() let r = count_all_russian_ships() log(`C${AOW_RUSSIAN_BALTIC_SEA_TRADE}:`) @@ -5432,6 +5433,17 @@ function init_lodya_march(type) { } } +function init_lodya_baltic_sea_trade() { + let lord = find_lodya_lord_in_shared() + if (lord !== NOBODY) { + game.flags.lodya = -Math.min(2, get_lord_assets(lord, BOAT)) + if (game.flags.lodya < 0) + log_lodya() + } else { + game.flags.lodya = 0 + } +} + function init_lodya_supply() { game.flags.lodya = 0 if (!is_winter()) { |