import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 獸王神力 export default class ShouWangShenLi extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.ShouWangShenLi; this.name = '獸王神力'; this.icon = '1021'; this.desc = '使單目標進入加攻狀態。 '; this.particleEffect = '23121'; this.buffEffect = 'liliang'; this.buffEffectY = 25; this.faXi = MagicType.Attack; this.vecLevelExp = [300, 1700, 5300, 11900, 22500]; this.skillActOn = ActionOn.SELF; } getLevelData(level:number):any{ return { nTargetCnt: 1, nRound: Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100)), nAttackAdd: Math.round(30 * (Math.pow(level, 0.35) * 3 / 100 + 1)) } } getDetail():string{ let stLevelData = this.getLevelData(this.curExp); return `共工法術,激發自己和隊友的魔性。攻擊力增加${stLevelData.nAttackAdd}%,命中增加30%。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `; } }