mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
changed biome to use pack instead of its own variable
This commit is contained in:
parent
23c9538b79
commit
fe51098b16
10 changed files with 39 additions and 41 deletions
|
|
@ -391,7 +391,7 @@
|
|||
}
|
||||
|
||||
function getBiomeCost(c, biome, type) {
|
||||
const b = biomesData.biomeList[biome];
|
||||
const b = pack.biomes[biome];
|
||||
if (cells.biome[pack.cultures[c].center] === biome) return 10; // tiny penalty for native biome
|
||||
if (type === "Hunting") return b.cost * 5; // non-native biome penalty for hunters
|
||||
if (type === "Nomadic" && biome > 4 && biome < 10) return b.cost * 10; // forest biome penalty for nomads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue