mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
feat: burgs - export icons
This commit is contained in:
parent
63898d8fd8
commit
4a8ce1af0e
2 changed files with 16 additions and 6 deletions
|
|
@ -537,7 +537,7 @@ window.Routes = (function () {
|
|||
return roadConnections.length > 2;
|
||||
}
|
||||
|
||||
const connectivityRates = {
|
||||
const connectivityRateMap = {
|
||||
roads: 0.2,
|
||||
trails: 0.1,
|
||||
searoutes: 0.2,
|
||||
|
|
@ -550,7 +550,7 @@ window.Routes = (function () {
|
|||
|
||||
const connectivity = Object.values(connections).reduce((acc, routeId) => {
|
||||
const route = pack.routes.find(route => route.i === routeId);
|
||||
const rate = connectivityRates[route.group] || connectivityRates.default;
|
||||
const rate = connectivityRateMap[route.group] || connectivityRateMap.default;
|
||||
return acc + rate;
|
||||
}, 0.8);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue