refactor - define stateForms

This commit is contained in:
Azgaar 2022-09-03 19:52:22 +03:00
parent 2be3c68290
commit cffb0a8ec3
10 changed files with 262 additions and 108 deletions

View file

@ -157,8 +157,7 @@ window.Names = (function () {
base = 1;
}
const min = nameBases[base].min - 1;
const max = Math.max(nameBases[base].max - 2, min);
return getBase(base, min, max, "", 0);
return getBase(base, min, min, "", 0);
};
// generate state name based on capital or random name and culture-specific suffix