Merge branch 'pr/325'

This commit is contained in:
Pax1601 2023-07-13 11:28:43 +02:00
commit 785647ad24
6 changed files with 4999 additions and 5545 deletions

View File

@ -14,7 +14,8 @@ interface LoadoutBlueprint {
interface UnitBlueprint {
name: string;
era: string[];
coalition: string;
era: string;
label: string;
shortLabel: string;
type?: string;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -48,13 +48,9 @@ export class UnitDatabase {
getEras() {
var eras: string[] = [];
for (let unit in this.blueprints) {
var unitEras = this.blueprints[unit].era;
if (unitEras) {
for (let era of unitEras) {
if (era !== "" && !eras.includes(era))
eras.push(era);
}
}
var era = this.blueprints[unit].era;
if (era && era !== "" && !eras.includes(era))
eras.push(era);
}
return eras;
}