From 7dea27a7ff9d77fa9a32b18526bc262d3651ce81 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 3 Feb 2023 10:55:58 +0100 Subject: Lint fixes. --- rules.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 889cf0d..f155f6b 100644 --- a/rules.js +++ b/rules.js @@ -130,7 +130,6 @@ function find_locale(name) { } const lord_name = data.lords.map((lord) => lord.name) -const vassal_name = data.vassals.map((vassal) => vassal.name) const lord_count = data.lords.length const vassal_count = data.vassals.length @@ -990,10 +989,6 @@ function is_p1_lord(lord) { return lord >= first_p1_lord && lord <= last_p1_lord } -function is_p2_lord(lord) { - return lord >= first_p2_lord && lord <= last_p2_lord -} - function is_friendly_lord(lord) { return lord >= first_friendly_lord && lord <= last_friendly_lord } @@ -1462,19 +1457,13 @@ function calculate_distance(start, adjacent) { return distance } -for (let loc = 0; loc <= last_locale; ++loc) { +for (let loc = 0; loc <= last_locale; ++loc) data.locales[loc].distance = calculate_distance(loc, "adjacent") - data.locales[loc].distance_by_waterway = calculate_distance(loc, "adjacent_by_waterway") -} function locale_distance(from, to) { return data.locales[from].distance[to] } -function locale_distance_by_waterway(from, to) { - return data.locales[from].distance_by_waterway[to] -} - // === SETUP === function muster_lord_forces(lord) { -- cgit v1.2.3