import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 銷魂蝕骨 export default class XiaoHunShiGu extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.XiaoHunShiGu; this.name = '銷魂蝕骨'; this.icon = '1022'; this.desc = '使單目標損失氣血和法力。 '; this.particleEffect = '23123'; this.faXi = MagicType.Frighten; this.vecLevelExp = []; } getLevelData(level:number):any{ return { nTargetCnt: 1, nBloodSub: Math.round(27 * (Math.pow(level, 0.35) * 2 / 100 + 1)), nBlueSub: Math.round(38 * (Math.pow(level, 0.33) * 2 / 100 + 1)) } } getDetail():string{ let stLevelData = this.getLevelData(this.curExp); return `把對手的生命用鬼神的力量和魔法偷偷消耗,減少當前氣血${stLevelData.nBloodSub}%和法力${stLevelData.nBlueSub}%。目標人數${stLevelData.nTargetCnt}人。 `; } }