2025-04-24 17:03:28 +08:00

33 lines
992 B
TypeScript

import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 迷魂醉
export default class MiHunZui extends SkillBase{
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.MiHunZui;
this.name = '迷魂醉';
this.icon = '1005';
this.desc = '使單個目標昏睡。 ';
this.particleEffect = '21105';
this.buffEffect = 'shui';
this.faXi = MagicType.Sleep;
this.vecLevelExp = [200, 1900, 7100, 18500];
}
getLevelData(level:number):any{
return {
nTargetCnt: 1,
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}個回合。 `;
}
}