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 JiaoLongChuHai extends SkillBase{
|
|
constructor() {
|
|
super();
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
this.id = ESkillType.JiaoLongChuHai;
|
|
this.name = '蛟龍出海';
|
|
this.icon = "1014";
|
|
this.desc = '水法攻擊單目標。 ';
|
|
this.particleEffect = '22115';
|
|
this.faXi = MagicType.Water;
|
|
this.vecLevelExp = [];
|
|
}
|
|
|
|
getLevelData(level:number):any{
|
|
let nCurGrade = this.getCurGrade();
|
|
return {
|
|
nTargetCnt: 1,
|
|
Hurt: Math.floor(65 * nCurGrade * (Math.pow(level, 0.4) * 2.8853998118144273 / 100 + 1))
|
|
}
|
|
}
|
|
|
|
getDetail():string{
|
|
let stLevelData = this.getLevelData(this.curExp);
|
|
return `傳說中蛟龍飛升的時候天會降大雨,利用這個能量進行攻擊傷害別人。目標人數${stLevelData.nTargetCnt}人。 (基礎傷害${stLevelData.Hurt})`;
|
|
}
|
|
} |