This commit is contained in:
Azgaar 2020-06-22 01:19:53 +03:00
parent fe17372ddd
commit f9650ce7a8
2 changed files with 8 additions and 6 deletions

View file

@ -399,7 +399,7 @@ function randomizeCultureSet() {
function generateEra() {
if (!stored("year")) yearInput.value = rand(100, 2000); // current year
if (!stored("era")) eraInput.value = Names.getBaseShort(P(.7) ? 1 : rand(nameBases.length)) + " Era";
options.year = yearInput.value;
options.year = +yearInput.value;
options.era = eraInput.value;
options.eraShort = options.era.split(" ").map(w => w[0].toUpperCase()).join(""); // short name for era
}