Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps

Home Page:https://azgaar.github.io/Fantasy-Map-Generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Burg Population By Group

GeckoNickDeveloper opened this issue · comments

Problem
The process of edit the population of burgs is kinda tedious 'cause it has to be done one by one.

Solution
Add a column in the csv file that explicit the group of the burg, allowing a faster modification of a large number of burgs in terms of population through the usage of softwares like Google Sheet or Excel.

Alternatives
Define a minimum and maximum number of population per group and add a button to regenerate populations within this range

If you want to raise/lower population of all burgs, go to Tools>Units and slide the Urbanization Rate up or down.

We don't really have groups other that cities and towns, but we may have them in the furure.

In the meantime, if you want to apply a multiplier to burgs of a certain culture, state, etc. you could do so from the Console with the following code
pack.burgs.forEach(b => {
if (!b.i) return;
// b.state also works for this
if (b.culture = 1) {
// change the 1.5 multiplier to your desired one
b.population = b.population * 1.5; // For example, increase population by 50%

// You can perform any other population modification here

}
});

This only requires using the console first with pack.cultures or pack.states to find out the numeric ID of the aggrupation that you want to alter.

Cities already is the group for Capitals, every other burg is in the "Towns" group.

Yes, and there is a plan to add villages as a separate group. Maybe even make this group configurable and based on population.

Yes, and there is a plan to add villages as a separate group. Maybe even make this group configurable and based on population.

That reminds me I haven't worked on the Mass-Burg-Assign code!