Fantasy-Map-Generator/modules/dynamic
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
..
editors Fix population aggregation system to eliminate double-counting 2025-08-13 18:54:32 +01:00
overview Urquhart routes (#1072) 2024-08-15 15:46:55 +02:00
auto-update.js fix: remove old feature masks, v1.108.0 2025-02-15 13:06:14 +01:00
export-json.js Zones generator update (#1113) 2024-09-01 12:48:39 +02:00
heightmap-selection.js Ocean heightmap and Scale bar styling change [v1.96] (#1045) 2024-02-24 19:12:48 +04:00
hierarchy-tree.js fix: hierarchy-tree - make sure nodes have parents not removed 2023-01-02 16:21:13 +03:00
installation.js feat(1.89.19): google translate support 2023-05-14 17:47:30 +04:00
supporters.js chore: update supporters 2024-11-28 12:19:05 +01:00