mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.48 - hunting and nomad type only for small settlements
This commit is contained in:
parent
e088c011eb
commit
7b1e463c92
1 changed files with 6 additions and 2 deletions
|
|
@ -208,8 +208,12 @@
|
||||||
if (cells.haven[i] && pack.features[cells.f[cells.haven[i]]].type === "lake") return "Lake";
|
if (cells.haven[i] && pack.features[cells.f[cells.haven[i]]].type === "lake") return "Lake";
|
||||||
if (cells.h[i] > 60) return "Highland";
|
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 (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";
|
return "Generic";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue