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

33 lines
1.2 KiB
TypeScript

import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 九龍冰封
export default class JiuLongBingFeng extends SkillBase {
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.JiuLongBingFeng;
this.name = '九龍冰封';
this.icon = '1018';
this.desc = '水法攻擊多目標。 ';
this.particleEffect = '22216';
this.faXi = MagicType.Water;
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})`;
}
}