mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
based on suggestions simplified usage of biome usage
This commit is contained in:
parent
d9df7c2f15
commit
f6f49fd86b
4 changed files with 32 additions and 31 deletions
|
|
@ -292,10 +292,11 @@
|
|||
burgs.filter(b => b.i && !b.removed).forEach(b => b.state = cells.state[b.cell]); // assign state to burgs
|
||||
|
||||
function getBiomeCost(b, biome, type) {
|
||||
const bio = biomesData.biomeList[biome];
|
||||
if (b === biome) return 10; // tiny penalty for native biome
|
||||
if (type === "Hunting") return biomesData.biomeList[biome].cost * 2; // non-native biome penalty for hunters
|
||||
if (type === "Nomadic" && biome > 4 && biome < 10) return biomesData.biomeList[biome].cost * 3; // forest biome penalty for nomads
|
||||
return biomesData.biomeList[biome].cost; // general non-native biome penalty
|
||||
if (type === "Hunting") return bio.cost * 2; // non-native biome penalty for hunters
|
||||
if (type === "Nomadic" && biome > 4 && biome < 10) return bio.cost * 3; // forest biome penalty for nomads
|
||||
return bio.cost; // general non-native biome penalty
|
||||
}
|
||||
|
||||
function getHeightCost(f, h, type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue