import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 震天動地 export default class ZhenTianDongDi extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.ZhenTianDongDi; this.name = '震天動地'; this.icon = '1043'; this.effectDir = true; this.desc = '群體法術,提升自身命中、破防概率與破防程度對敵方多個單位進行物理攻擊。 '; this.particleEffect = '25240'; this.faXi = MagicType.SaoJi; 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}人)`; } }