Add summoner icons feat

This commit is contained in:
Blossomi Shymae
2024-05-01 21:28:14 -05:00
parent 52123350c6
commit cab1684b7c
2 changed files with 56 additions and 0 deletions

View File

@@ -231,6 +231,10 @@ export class SummonerIcon extends CommunityDragonObject {
this.descriptions = json.descriptions.map((x: any) => new Description(x));
this.rarities = json.rarities.map((x: any) => new Rarity(x));
}
getImage(version: string): string {
return this.resolveClientPath({path: this.imagePath ?? "", args: {version: version, locale: "default"}});
}
}
export class WardSkin extends CommunityDragonObject {