39 lines
1.6 KiB
TypeScript
Raw Normal View History

2025-04-24 17:03:28 +08:00
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 含情脈脈
export default class HanQingMoMo extends SkillBase {
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.HanQingMoMo;
this.name = '含情脈脈';
this.icon = '1023';
this.desc = '使多目標進入加防狀態。 ';
this.particleEffect = '23218';
this.buffEffect = 'fang';
this.buffEffectY = 45;
this.faXi = MagicType.Defense;
this.scale = AffectType.GROUP;
this.effectPos = EffectPos.STAGE;
this.vecLevelExp = [200, 300, 1200, 1700, 4600, 5300, 11900, 22500];
this.skillActOn = ActionOn.SELF;
}
getLevelData(level:number):any{
return {
nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.3) * 8 / 100))),
nRound: Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100)),
nKongAdd: Math.round(0.9 * (Math.pow(level, 0.35) * 20 / 100 + 1)),
nFaAdd: Math.round(15 * (Math.pow(level, 0.35) * 2 / 100 + 1)),
nFangAdd: Math.round(12 * (Math.pow(level, 0.35) * 2 / 100 + 1))
}
}
getDetail():string{
let stLevelData = this.getLevelData(this.curExp);
return `脈脈含情的眼神讓對手忘記傷害。控制抗性增加${stLevelData.nKongAdd}%,傷法抗性增加${stLevelData.nFaAdd}%,防禦增加${stLevelData.nFangAdd}%。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
}
}