From a4ddf08d846fac2b85cd78f69a07ad189637d3ec Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 23 Nov 2024 16:33:52 +0100 Subject: Fix objective protection range (it's 0-3 not 1-3). --- rules.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 4a31d01..043699a 100644 --- a/rules.js +++ b/rules.js @@ -384,8 +384,7 @@ for (let s of all_objectives) { function make_protect_range(result, start, here, range) { for (let next of data.cities.adjacent[here]) { - if (next !== start) - set_add(result, next) + set_add(result, next) if (range > 1) make_protect_range(result, start, next, range - 1) } -- cgit v1.2.3