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