UNPKG

enkanetwork

Version:

API wrapper for enka.network written on TypeScript which provides localization, caching and convenience

21 lines (20 loc) 661 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CharacterSkill = void 0; class CharacterSkill { id; icon; name; level; isBoosted; constructor(assets, language, skillId, level, proudSkillExtraLevelMap) { const skill = assets.skills.getById(skillId); const boost = proudSkillExtraLevelMap[skill.proudSkillGroupId]; this.id = skillId; this.icon = assets.getAssetPath(skill.skillIcon); this.name = assets.skills.getName(skill, language); this.isBoosted = !!boost; this.level = level + (boost || 0); } } exports.CharacterSkill = CharacterSkill;