29 lines
922 B
TypeScript
29 lines
922 B
TypeScript
|
import { EAttrTypeL1 } from "../../../core/EEnum";
|
||
|
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
|
||
|
import FactionTalent from "../../../FactionTalent";
|
||
|
|
||
|
// 通明・無價
|
||
|
export default class TongMing3 extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.id = ESkillType.TongMing3;
|
||
|
this.name = "通明";
|
||
|
this.icon = "tm";
|
||
|
this.effectDesc = "增加最大法力值";
|
||
|
this.effectMap = {
|
||
|
[EAttrTypeL1.MP_MAX]: { 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 = (1 + (info.addition / 10)) * addition;
|
||
|
}
|
||
|
return `增加${addition}%最大法力值`;
|
||
|
}
|
||
|
}
|