32 lines
903 B
TypeScript
32 lines
903 B
TypeScript
|
import SkillBase, { AffectType, EAttackType, MagicType, ESkillType } from "../core/SkillBase";
|
||
|
|
||
|
// 暗影離魂
|
||
|
export default class AnYingLiHun extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.init();
|
||
|
}
|
||
|
|
||
|
init() {
|
||
|
this.id = ESkillType.AnYingLiHun;
|
||
|
this.name = '暗影離魂';
|
||
|
this.icon = '31152';
|
||
|
this.desc = '物理攻擊3個目標';
|
||
|
this.faXi = MagicType.Physics;
|
||
|
this.atkType = EAttackType.MELEE;
|
||
|
this.scale=AffectType.GROUP;
|
||
|
this.vecLevelExp = [1700, 13000];
|
||
|
}
|
||
|
|
||
|
getLevelData(level: number): any {
|
||
|
return {
|
||
|
nTargetCnt: Math.min(3, Math.floor(3 * (1 + Math.pow(level, 0.3) * 5 / 100))),
|
||
|
nRound: 1
|
||
|
};
|
||
|
}
|
||
|
|
||
|
getDetail(): string {
|
||
|
let stLevelData = this.getLevelData(this.curExp);
|
||
|
return `物理攻擊${stLevelData.nTargetCnt}目標! 機率攻擊5個目標`;
|
||
|
}
|
||
|
}
|