import SkillBase, { AffectType, EffectPos, MagicType, ESkillType } from "../core/SkillBase"; // 百日眠 export default class BaiRiMian extends SkillBase{ constructor() { super(); this.init(); } init() { this.id = ESkillType.BaiRiMian; this.name = '百日眠'; this.icon = '1009'; this.desc = '使多個目標昏睡。 '; this.particleEffect = '21206'; this.buffEffect = 'shui'; this.faXi = MagicType.Sleep; 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}個回合。 `; } }