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

34 lines
1.2 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 飛舉九天
export default class FeiJvJiuTian extends SkillBase{
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.FeiJvJiuTian;
this.name = '飛舉九天';
this.icon = '1041';
this.effectDir = true;
this.desc = '群體法術,降低敵方多個目標傷害抵抗。 ';
this.particleEffect = '25238';
this.faXi = MagicType.PoJia;
this.scale = AffectType.GROUP;
this.effectPos = EffectPos.STAGE;
this.vecLevelExp = [600, 5700];
}
getLevelData(level:number):any{
let nCurGrade = this.getCurGrade();
return {
nTargetCnt: Math.min(5, Math.floor(3 * (1 + Math.pow(level, 0.3) * 5 / 100))),
Hurt: Math.floor(60 * nCurGrade * (Math.pow(level, 0.4) * 2.8853998118144273 / 100 + 1))
}
}
getDetail():string{
let stLevelData = this.getLevelData(this.curExp);
return `提升自身攻擊力、命中、破防概率和破防程度對敵方多個單位進行物理攻擊2回合內最多兩個目標。目標人數${stLevelData.nTargetCnt}人。 `;
}
}