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

31 lines
1.1 KiB
TypeScript
Raw 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 { EAttrTypeL1 } from "../../../core/EEnum";
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
import FactionTalent from "../../../FactionTalent";
import SKDataUtil from "../../../gear_2.3.4/util/SKDataUtil";
// 攻心・把玩
export default class GongXin1 extends SkillBase {
constructor() {
super();
this.id = ESkillType.GongXin1;
this.name = "攻心";
this.icon = "gx";
this.effectDesc = "每逢5的整數倍回合單法傷害提升PVE常駐提高";
this.effectMap = {
[EAttrTypeL1.MP_MAX]: { add: 7, index: 0 },
[EAttrTypeL1.MP]: { add: 7, index: 0 }
};
this.action_type = ActionType.PASSIVE;
this.quality = ESkillQuality.LOW;
}
getDetail(info = null):string{
let factionTalentLevel = FactionTalent.Instance.factionTalentLevel;
let addition = factionTalentLevel * 0.1
if(info){
addition = SKDataUtil.toDecimal2((1 + (info.addition / 10)) * addition);
}
return `每逢5的整數倍回合單法傷害提升PVE常駐提高`;
}
}