diff --git a/core/models.ts b/core/models.ts index a8930b7..4357789 100644 --- a/core/models.ts +++ b/core/models.ts @@ -259,6 +259,14 @@ export class WardSkin extends CommunityDragonObject { this.regionDescriptions = json.regionalDescriptions.map((x: any) => new Description(x)); this.rarities = json.rarities.map((x: any) => new Rarity(x)); } + + getWardImage(version: string): string { + return this.resolveClientPath({path: this.wardImagePath, args: {locale: "default", version: version}}); + } + + getWardShadowImage(version: string): string { + return this.resolveClientPath({path: this.wardShadowImagePath, args: {locale: "default", version: version}}); + } } export class Description extends CommunityDragonObject { diff --git a/layouts/default.vue b/layouts/default.vue index 2bfec47..7fc6386 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -38,7 +38,7 @@
| Id | +Icon | +Name | +
|---|---|---|
|
+ |
+
+ |
+
+ |
+
{{ skin.regionDescriptions[0].description }}
+ +