2025-04-24 17:03:28 +08:00

34 lines
1.2 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 孟婆湯
export default class MengPoTang extends SkillBase{
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.MengPoTang;
this.name = '孟婆湯';
this.icon = '1034';
this.desc = '使多目標遺忘技能。 ';
this.particleEffect = '24232';
this.buffEffect = 'wang';
this.buffEffectY = 100;
this.faXi = MagicType.Forget;
this.scale = AffectType.GROUP;
this.effectPos = EffectPos.STAGE;
this.vecLevelExp = [200, 300, 1700, 1900, 5300, 7100, 11900, 18500];
}
getLevelData(level:number):any{
return {
nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100))),
nRound: Math.floor(3 * (1 + Math.pow(level, 0.3) * 7 / 100))
}
}
getDetail():string{
let stLevelData = this.getLevelData(this.curExp);
return `飲下孟婆湯三生夢斷返生無路。每個技能都有75%機率被遺忘,無法使用物品,目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
}
}