summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-20 21:23:18 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-20 21:23:18 +0200
commit1f600e229755f1c6259f34faf0eb5abc1da6d34e (patch)
tree005ba060256ee57e3f2b1bb8be73c42b3ee261b8 /rules.ts
parentfcf5abc551a6ac6e0cb55e1cdaecfe6989bd4dfd (diff)
downloadplantagenet-1f600e229755f1c6259f34faf0eb5abc1da6d34e.tar.gz
Fix lord visibility mask.
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/rules.ts b/rules.ts
index 23d4e5f..4ff603d 100644
--- a/rules.ts
+++ b/rules.ts
@@ -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)
}