import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 四面楚歌 export default class SiMianChuGe extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.SiMianChuGe; this.name = '四面楚歌'; this.icon = '1010'; this.desc = '使多個目標封印。 '; this.particleEffect = '21208'; this.buffEffect = 'bing'; this.faXi = MagicType.Seal; this.scale = AffectType.GROUP; this.effectPos = EffectPos.STAGE; this.vecLevelExp = [200, 300, 1700, 1900, 5300, 7100, 11900, 18500]; } getLevelData(level:number):any{ return { nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100))), nRound: Math.floor(3 * (1 + Math.pow(level, 0.3) * 7 / 100)) } } getDetail():string{ let stLevelData = this.getLevelData(this.curExp); return `發動四面八方的能量,隔絕對手與外界的接觸,使其只能坐以待斃。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `; } }