Character creation implementation. People and training ready, still need to work on abilities and spells

This commit is contained in:
2025-04-21 21:53:15 +02:00
parent 7beeed8a61
commit f599b561af
30 changed files with 7538 additions and 7 deletions

2817
shared/character-config.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -18,6 +18,7 @@ export function parsePath(path: string): string
}
export function parseId(id: string | undefined): string |undefined
{
return id;
return id?.normalize('NFD')?.replace(/[\u0300-\u036f]/g, '')?.replace(/^\d\. */g, '')?.replace(/\s/g, "-")?.replace(/%/g, "-percent")?.replace(/\?/g, "-q")?.toLowerCase();
}
export function padLeft(text: string, pad: string, length: number): string

2723
shared/test.ts Normal file

File diff suppressed because it is too large Load Diff