diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-06-27 12:42:03 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 4080f0823b30cd2a57ecda2d084530bfe73bd911 (patch) | |
tree | a8d8169f66769d45f796bae2340aa3dd905cb7e9 /rules.js | |
parent | baec7104dcde86fd752ea25a992238e2283b238a (diff) | |
download | plantagenet-4080f0823b30cd2a57ecda2d084530bfe73bd911.tar.gz |
Avoid battle removal
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2766,6 +2766,7 @@ function stronghold_strength(loc) { function stronghold_capacity(loc) { return stronghold_strength(loc) - count_besieged_lords(loc) } +/* function spoil_prov(lord) { add_lord_assets(lord, PROV, -1) @@ -2846,7 +2847,7 @@ states.avoid_battle = { conquered: game.pieces.conquered.slice(), } } - }*/ + } let from = get_lord_locale(game.command) let ways = list_ways(from, to) @@ -2863,7 +2864,7 @@ states.avoid_battle = { push_undo() end_avoid_battle() }, -} + states.avoid_battle_way = { inactive: "Avoid Battle", @@ -2941,8 +2942,6 @@ function avoid_battle_2() { set_lord_moved(lord, 1) } - if (is_trade_route(to)) - conquer_trade_route(to) game.march.avoid_to = 0 game.march.avoid_way = 0 @@ -2953,7 +2952,7 @@ function end_avoid_battle() { game.group = game.march.group // restore group game.march.group = 0 goto_march_withdraw() -} +}*/ // === ACTION: MARCH - WITHDRAW === @@ -6568,6 +6567,7 @@ states.wastage = { function end_wastage() { push_undo() + set_active_enemy() goto_reset() } |