35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
|
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
|||
|
|
|||
|
// 萬毒攻心
|
|||
|
export default class WanDuGongXin extends SkillBase {
|
|||
|
constructor() {
|
|||
|
super();
|
|||
|
this.init();
|
|||
|
}
|
|||
|
|
|||
|
init() {
|
|||
|
this.id = ESkillType.WanDuGongXin;
|
|||
|
this.name = '萬毒攻心 ';
|
|||
|
this.icon = '1007';
|
|||
|
this.desc = '使多個目標中毒。 ';
|
|||
|
this.particleEffect = '21202';
|
|||
|
this.buffEffect = 'du';
|
|||
|
this.faXi = MagicType.Toxin;
|
|||
|
this.scale = AffectType.GROUP;
|
|||
|
this.effectPos = EffectPos.STAGE;
|
|||
|
this.vecLevelExp = [300, 1700, 5300, 11900, 13000];
|
|||
|
}
|
|||
|
|
|||
|
getLevelData(level:number):any{
|
|||
|
return {
|
|||
|
nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100))),
|
|||
|
nRound: Math.floor(2 * (1 + Math.pow(level, 0.34) * 4 / 100))
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
getDetail():string{
|
|||
|
let stLevelData = this.getLevelData(this.curExp);
|
|||
|
return `集天下最毒之物所修煉而成的法術,劇毒無比,中者不死即傷。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 (毒發傷害不超過最大生命值50%)`;
|
|||
|
}
|
|||
|
}
|