import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";; // 閻羅追命 export default class YanLuoZhuiMing extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.YanLuoZhuiMing; this.name = '閻羅追命'; this.icon = '1026'; this.desc = '使多目標損失氣血和法力。 '; this.particleEffect = '23224'; this.faXi = MagicType.Frighten; this.scale = AffectType.GROUP; this.effectPos = EffectPos.STAGE; this.vecLevelExp = [300, 1700, 5300, 11900]; } getLevelData(level:number):any{ return { nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100))), nBloodSub: Math.round(25 * (Math.pow(level, 0.35) * 2 / 100 + 1)), nBlueSub: Math.round(37 * (Math.pow(level, 0.33) * 2 / 100 + 1)) } } getDetail():string{ let stLevelData = this.getLevelData(this.curExp); return `利用閻王的力量降低對手生命和魔法的超級法門,減少當前氣血${stLevelData.nBloodSub}%和法力${stLevelData.nBlueSub}%。目標人數${stLevelData.nTargetCnt}人。 `; } }