35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
|
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
||
|
|
||
|
// 血海深仇
|
||
|
export default class XueHaiShenChou extends SkillBase{
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.init();
|
||
|
}
|
||
|
|
||
|
init() {
|
||
|
this.id = ESkillType.XueHaiShenChou;
|
||
|
this.name = '血海深仇';
|
||
|
this.icon = '1033';
|
||
|
this.desc = '鬼火攻擊多目標。 ';
|
||
|
this.particleEffect = '24230';
|
||
|
this.faXi = MagicType.GhostFire;
|
||
|
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))),
|
||
|
nHurt: Math.floor(60 * nCurGrade * (Math.pow(level, 0.4) * 2.8853998118144273 / 100 + 1))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
getDetail():string{
|
||
|
let stLevelData = this.getLevelData(this.curExp);
|
||
|
return `血海深仇,引燃一切,對目標造成大量傷害,目標人數${stLevelData.nTargetCnt}人。 (基礎傷害${stLevelData.nHurt})`;
|
||
|
}
|
||
|
}
|