import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 天誅地滅 export default class TianZhuDiMie extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.TianZhuDiMie; this.name = '天誅地滅'; this.icon = '1017'; this.desc = '雷法攻擊多目標。 '; this.particleEffect = '22214'; this.faXi = MagicType.Thunder; this.scale = AffectType.GROUP; this.effectPos = EffectPos.STAGE; this.vecLevelExp = [600, 5700]; } getLevelData(level:number):any{ let nCurGrade = this.getCurGrade(); return { nTargetCnt: Math.min(5, Math.floor(3 * (1 + Math.pow(level, 0.3) * 5 / 100))), Hurt: Math.floor(60 * nCurGrade * (Math.pow(level, 0.4) * 2.8853998118144273 / 100 + 1)) } } getDetail():string{ let stLevelData = this.getLevelData(this.curExp); return `繚繞的仙氣,喚起天界異人之雷力,施與對手無比絕倫的傷害。目標人數${stLevelData.nTargetCnt}人。 (基礎傷害${stLevelData.Hurt})`; } }