diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-08 11:38:34 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 5f88881e39a4f49cd355ba6eb8230bc4f0b91401 (patch) | |
tree | ce6b90bb20c5e3270518de58a8a722570bce6df7 | |
parent | 2ab5c4c485c4f5a4a1d116889a55029eabe62c55 (diff) | |
download | plantagenet-5f88881e39a4f49cd355ba6eb8230bc4f0b91401.tar.gz |
Tax - fix bug and add Stafford Branch effect.
-rw-r--r-- | rules.js | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -4421,7 +4421,7 @@ function can_tax_at(here) { if (is_friendly_locale(here) && !has_exhausted_marker(here)) { // London, Calais, and Harlech if (here === LOC_LONDON || here === LOC_CALAIS || here === LOC_HARLECH) - locales.push(LOC_LONDON) + return true // Own seat if (here === data.lords[game.command].seat) @@ -4503,13 +4503,19 @@ function end_tax() { } function get_tax_amount(loc) { + let tax + if (loc === LOC_LONDON || loc === LOC_CALAIS) - return 3 + tax = 3 + else if (is_city(loc)) + tax = 2 + else + tax = 1 - if (is_city(loc)) - return 2 + if (command_has_stafford_branch(loc)) + tax += 1 - return 1 + return tax } states.tax = { @@ -4525,7 +4531,6 @@ states.tax = { } }, locale(loc) { - push_undo() game.where = loc if (loc === data.lords[game.command].seat) { // Auto succeed without influence check at Lords seat. |