mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-02-05 10:01:24 +01:00
refactor: migrate states generator (#1291)
* refactor: migrate states generator * Update src/modules/states-generator.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/modules/states-generator.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
363c82ee30
commit
88c70b9264
6 changed files with 829 additions and 643 deletions
|
|
@ -223,7 +223,7 @@ class NamesGenerator {
|
|||
}
|
||||
|
||||
// generate state name based on capital or random name and culture-specific suffix
|
||||
getState(name: string, culture: number, base: number): string {
|
||||
getState(name: string, culture: number, base?: number): string {
|
||||
if (name === undefined) {
|
||||
ERROR && console.error("Please define a base name");
|
||||
return "ERROR";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue