Fantasy-Map-Generator/modules
barrulus e669549390 Fix population aggregation system to eliminate double-counting
- Fixed core issue where cells.pop and burg.population were both being counted
- Changed aggregation logic across all modules to use either burg OR cell population, never both
- If cell has burg: count only burg population (represents all people in that area)
- If cell has no burg: count only cells.pop (represents scattered population)

Files modified:
- modules/burgs-and-states.js: Fixed state population aggregation
- modules/ui/provinces-editor.js: Fixed province population aggregation
- modules/dynamic/editors/cultures-editor.js: Fixed culture population aggregation
- modules/dynamic/editors/religions-editor.js: Fixed religion population aggregation
- modules/ui/biomes-editor.js: Fixed biome population aggregation
- modules/ui/zones-editor.js: Fixed zone population calculations (2 locations)
- modules/military-generator.js: Redesigned military generation to use only burg populations

Military system changes:
- Removed rural military generation (all forces now come from settlements)
- Only burgs with 500+ people can maintain military forces
- Military strength based on actual burg population (2.5% mobilization rate)

Result: Population totals now consistent across all CSV exports (~2M total vs previous 40x discrepancy)
2025-08-13 18:54:32 +01:00
..
dynamic Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
io Add fantasy world coordinate system to GeoJSON exports 2025-08-12 12:03:31 +01:00
renderers Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
ui Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
biomes.js Urquhart routes (#1072) 2024-08-15 15:46:55 +02:00
burgs-and-states.js Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
coa-generator.js feat: add new emblem charges 2023-10-30 22:27:25 +04:00
coa-renderer.js Fix: rework texture data format (#1017) 2023-11-19 14:43:56 +04:00
cultures-generator.js Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
features.js fix: features - define first cell 2024-09-22 13:04:22 +02:00
fonts.js feat: new style - DarkSeas 2024-08-17 14:16:01 +02:00
heightmap-generator.js feat: heightmap brushes - linear edit option (1.88.00) 2022-10-31 00:24:54 +03:00
lakes.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
markers-generator.js feat: make lined icons work for all elements, v1.107.0 2025-02-08 14:05:28 +01:00
military-generator.js Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
names-generator.js fix: allow to load smaller namesbase without issues on regeneration 2024-10-09 01:08:47 +02:00
ocean-layers.js feat: optimizeSpeed rendering (1.87.15) 2022-10-13 00:52:49 +03:00
performance-optimizer.js Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
provinces-generator.js Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
religions-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
resample.js fix: sumap - clip routes by bbox 2024-12-14 15:12:38 +01:00
river-generator.js fix: 1.106.7 - rivers starting width calc 2024-12-17 17:11:13 +01:00
routes-generator.js Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
submap.js chore: parse DEBUG setting as an object 2024-10-22 14:45:25 +02:00
voronoi.js Fix: flux calculation from area-propotional value instead of normal value. (#654) 2021-08-15 12:43:20 +03:00
zones-generator.js fix: add p to priority queue 2024-10-26 14:29:52 +02:00