32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
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}人。 `;
|
||
}
|
||
} |