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

35 lines
1.2 KiB
TypeScript

import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 九陰純火
export default class JiuYinChunHuo extends SkillBase {
constructor() {
super();
this.Init();
}
Init() {
this.id = ESkillType.JiuYinChunHuo;
this.name = '九陰純火';
this.icon = '1015';
this.desc = '火法攻擊多目標。 ';
this.particleEffect = '22210';
this.faXi = MagicType.Fire;
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))),
Hurt: 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.Hurt})`;
}
}