import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 倩女幽魂 export default class QianNvYouHun extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.QianNvYouHun; this.name = '倩女幽魂'; this.icon = '1031'; this.desc = '使多目標進入魅惑狀態。 '; this.particleEffect = '24226'; this.buffEffect = 'meihuo'; this.buffEffectY = 50; this.faXi = MagicType.Charm; this.scale = AffectType.GROUP; this.effectPos = EffectPos.STAGE; this.vecLevelExp = [200, 300, 1200, 1700, 4600, 5300, 11900, 22500]; //this.skillActOn = ActionOn.ENEMY; } getLevelData(level:number):any{ return { nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.3) * 8 / 100))), nRound: Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100)), nDebuff: Math.round(1.3 * (Math.pow(level, 0.35) * 20 / 100 + 1)) } } getDetail():string{ let stLevelData = this.getLevelData(this.curExp); return `小倩獨家秘籍。減少冰混睡忘抗性${stLevelData.nDebuff}%,目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `; } }