summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-15 12:46:10 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-15 12:46:10 +0200
commitb7dc4ddf831eb2b5534558a28788f7a7af49009f (patch)
treea04a45c263efa4e8429be4400c535f3c14ab2a99
parenta710f774fde5f1c189aad9419dac5ea1a9b2d641 (diff)
downloadplantagenet-b7dc4ddf831eb2b5534558a28788f7a7af49009f.tar.gz
x
-rw-r--r--rules.js4
-rw-r--r--rules.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 18d19bd..628ed0b 100644
--- a/rules.js
+++ b/rules.js
@@ -4965,7 +4965,7 @@ function log_lord_engage(lord) {
}
const battle_steps = [
null,
- { name: "Missiles", hits: count_archery_hits },
+ { name: "Missiles", hits: count_missile_hits },
{ name: "Melee", hits: count_melee_hits },
];
function remove_lord_from_battle(lord) {
@@ -5002,7 +5002,7 @@ function filled(pos) {
return true;
return false;
}
-function count_archery_hits(lord) {
+function count_missile_hits(lord) {
let hits = 0;
hits += get_lord_forces(lord, LONGBOWMEN) << 2;
hits += get_lord_forces(lord, BURGUNDIANS) << 2;
diff --git a/rules.ts b/rules.ts
index 84b236f..ba8972f 100644
--- a/rules.ts
+++ b/rules.ts
@@ -5944,7 +5944,7 @@ function log_lord_engage(lord: Lord) {
const battle_steps = [
null,
- { name: "Missiles", hits: count_archery_hits },
+ { name: "Missiles", hits: count_missile_hits },
{ name: "Melee", hits: count_melee_hits },
]
@@ -5986,7 +5986,7 @@ function filled(pos) {
return false
}
-function count_archery_hits(lord: Lord) {
+function count_missile_hits(lord: Lord) {
let hits = 0
hits += get_lord_forces(lord, LONGBOWMEN) << 2
hits += get_lord_forces(lord, BURGUNDIANS) << 2