mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Merge branch 'pr/325'
This commit is contained in:
commit
785647ad24
3
client/src/@types/unitdatabase.d.ts
vendored
3
client/src/@types/unitdatabase.d.ts
vendored
@ -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
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user