Skip to content

Commit b602ccf

Browse files
committed
style: fix remaining Biome formatting in provinces-generator
1 parent 88464d1 commit b602ccf

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/modules/provinces-generator.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,22 @@ class ProvinceModule {
117117
if (s.lock && !regenerateLockedStates) return; // don't regenerate provinces of a locked state
118118

119119
// Use only major burgs as province centers (capitals, regional centers, market towns, large villages, pop > 1)
120-
const majorSettlementTypes = new Set(["capital", "regionalCenter", "marketTown", "largeVillage", "largePort"]);
120+
const majorSettlementTypes = new Set([
121+
"capital",
122+
"regionalCenter",
123+
"marketTown",
124+
"largeVillage",
125+
"largePort",
126+
]);
121127
const stateBurgs = burgs
122128
.filter((b) => {
123129
if (b.state !== s.i || b.removed || provinceIds[b.cell]) return false;
124130
// Include capitals always, and major settlements or burgs with pop > 1
125-
return b.capital || majorSettlementTypes.has(b.settlementType || "") || (b.population || 0) > 1;
131+
return (
132+
b.capital ||
133+
majorSettlementTypes.has(b.settlementType || "") ||
134+
(b.population || 0) > 1
135+
);
126136
})
127137
.sort(
128138
(a, b) => b.population! * gauss(1, 0.2, 0.5, 1.5, 3) - a.population!,

0 commit comments

Comments
 (0)