mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 10:10:47 +01:00
Update champion viewer
This commit is contained in:
@@ -126,19 +126,26 @@ export class SkinLine extends CommunityDragonObject {
|
||||
|
||||
export class Passive extends CommunityDragonObject {
|
||||
name: string;
|
||||
abilityIconPath: string;
|
||||
description: string;
|
||||
|
||||
constructor(json: any) {
|
||||
super();
|
||||
|
||||
this.name = json.name;
|
||||
this.abilityIconPath = json.abilityIconPath;
|
||||
this.description = json.description;
|
||||
}
|
||||
|
||||
getAbilityIcon(version: string): string {
|
||||
return this.resolveGamePath({ path: this.abilityIconPath, version: version});
|
||||
}
|
||||
}
|
||||
|
||||
export class Spell extends CommunityDragonObject {
|
||||
spellKey: string;
|
||||
name: string;
|
||||
abilityIconPath: string;
|
||||
description: string;
|
||||
|
||||
constructor(json: any) {
|
||||
@@ -146,8 +153,13 @@ export class Spell extends CommunityDragonObject {
|
||||
|
||||
this.spellKey = json.spellKey;
|
||||
this.name = json.name;
|
||||
this.abilityIconPath = json.abilityIconPath;
|
||||
this.description = json.description;
|
||||
}
|
||||
|
||||
getAbilityIcon(version: string): string {
|
||||
return this.resolveGamePath({ path: this.abilityIconPath, version: version});
|
||||
}
|
||||
}
|
||||
|
||||
export class ChampionSummary extends CommunityDragonObject {
|
||||
|
||||
Reference in New Issue
Block a user