SamsaraGame/assets/Script/ts/game/skill/low/DianShanLeiMing.ts
2025-04-24 17:03:28 +08:00

33 lines
1.0 KiB
TypeScript

import SkillBase, { ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 電閃雷鳴
export default class DianShanLeiMing extends SkillBase{
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.DianShanLeiMing;
this.name = '電閃雷鳴';
this.icon = "1013";
this.desc = '雷法攻擊單目標。 ';
this.particleEffect = '22113';
this.skillEffectY = 40;
this.faXi = MagicType.Thunder;
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})`;
}
}