Merge pull request #315 from WoodyXP/313-add-sam-information-V2

Added Era and Range to Sams and Ground Units V2
This commit is contained in:
Pax1601 2023-06-29 17:16:45 +02:00 committed by GitHub
commit 9f6da4845a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 198 additions and 47 deletions

View File

@ -17,6 +17,7 @@ interface UnitBlueprint {
era?: string[];
label: string;
shortLabel: string;
range?: string;
loadouts: LoadoutBlueprint[];
filename: string;
}

File diff suppressed because it is too large Load Diff

View File

@ -35,6 +35,15 @@ export class UnitDatabase {
return null;
}
/* Gets a specific blueprint by range */
getByRange(range: string) {
for (let unit in this.blueprints) {
if (this.blueprints[unit].range === range)
return this.blueprints[unit];
}
return null;
}
/* Get all blueprints by role */
getByRole(role: string) {
var units = [];