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

32 lines
1.0 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 XiXingDaFa extends SkillBase{
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.XiXingDaFa;
this.name = '吸星大法';
this.icon = '1032';
this.desc = '攻擊多目標並恢復本方氣血。 ';
this.particleEffect = '24228';
this.faXi = MagicType.ThreeCorpse;
this.scale = AffectType.GROUP;
this.effectPos = EffectPos.STAGE;
this.vecLevelExp = [600, 5700];
}
getLevelData(level:number):any{
return {
nTargetCnt: Math.min(5, Math.floor(3 * (1 + Math.pow(level, 0.3) * 5 / 100)))
}
}
getDetail():string{
let stLevelData = this.getLevelData(this.curExp);
return `放出屍蠱之蟲蠶食對方多個單位的生命並化為己用。可將造成傷害的300%化為己方所用,目標人數${stLevelData.nTargetCnt}人。 `;
}
}