summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 01bd29e..4155a52 100644
--- a/rules.js
+++ b/rules.js
@@ -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()) {