From 7b1e463c922ca39d9d4d3558162c288ee30827d9 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 21 Feb 2021 01:10:52 +0300 Subject: [PATCH] v1.5.48 - hunting and nomad type only for small settlements --- modules/burgs-and-states.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/burgs-and-states.js b/modules/burgs-and-states.js index 4270870c..d3d75e97 100644 --- a/modules/burgs-and-states.js +++ b/modules/burgs-and-states.js @@ -208,8 +208,12 @@ if (cells.haven[i] && pack.features[cells.f[cells.haven[i]]].type === "lake") return "Lake"; if (cells.h[i] > 60) return "Highland"; if (cells.r[i] && cells.r[i].length > 100 && cells.r[i].length >= pack.rivers[0].length) return "River"; - if ([1, 2, 3, 4].includes(cells.biome[i])) return "Nomadic"; - if (cells.biome[i] > 4 && cells.biome[i] < 10) return "Hunting"; + + if (!cells.burg[i] || pack.burgs[cells.burg[i]].population < 6) { + if (population < 5 && [1, 2, 3, 4].includes(cells.biome[i])) return "Nomadic"; + if (cells.biome[i] > 4 && cells.biome[i] < 10) return "Hunting"; + } + return "Generic"; }