diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-20 21:23:18 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-20 21:23:18 +0200 |
commit | 1f600e229755f1c6259f34faf0eb5abc1da6d34e (patch) | |
tree | 005ba060256ee57e3f2b1bb8be73c42b3ee261b8 /rules.ts | |
parent | fcf5abc551a6ac6e0cb55e1cdaecfe6989bd4dfd (diff) | |
download | plantagenet-1f600e229755f1c6259f34faf0eb5abc1da6d34e.tar.gz |
Fix lord visibility mask.
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,6 +4,14 @@ // TODO: check all who = NOBODY etc resets // TODO: show fled retinue backsides +// TODO: check scotland-bamburgh way + +// TODO: 1.7.3 English Ships -- no more than 9 lords may have ships +// TODO: check interaction of Naval Blockade with Great Ships when parleying across multiple seas + +// TODO: manually rout lords in battle + +// TODO: [Influence] button instead of [Pay] when paying influence (or [Pay influence])? /* EVENTS and CAPABILITIES trigger - Pass instead of Done @@ -453,7 +461,7 @@ const last_lancaster_lord = 27 const all_york_lords = make_list(0, 13) as Lord[] const all_lancaster_lords = make_list(14, 27) as Lord[] -const YORK_LORD_MASK = 0x1fff +const YORK_LORD_MASK = 0x3fff const LANCASTER_LORD_MASK = YORK_LORD_MASK << 14 function is_york_lord(lord: Lord) { @@ -500,6 +508,8 @@ function is_lieutenant(lord: Lord) { } } +// TODO: optimize these functions with range checks (like wilderness war) + function is_seaport(loc: Locale) { return set_has(data.seaports, loc) } |