35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { EAttrTypeL1 } from "../../../core/EEnum";
|
|
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
|
|
import FactionTalent from "../../../FactionTalent";
|
|
|
|
// 明鏡・無價
|
|
export default class MingJing3 extends SkillBase {
|
|
constructor() {
|
|
super();
|
|
this.id = ESkillType.MingJing3;
|
|
this.name = "明鏡";
|
|
this.icon = "mj";
|
|
this.effectDesc = "抗封印上限提高";
|
|
this.effectMap = {
|
|
[EAttrTypeL1.K_SEAL]: { add: 15, index: 0 },
|
|
};
|
|
this.action_type = ActionType.PASSIVE;
|
|
this.quality = ESkillQuality.FINAL;
|
|
}
|
|
getLevelData():any{
|
|
let factionTalentLevel = FactionTalent.Instance.factionTalentLevel;
|
|
return {
|
|
add: 15 + factionTalentLevel * 0.5,
|
|
}
|
|
}
|
|
|
|
getDetail(info = null):string{
|
|
let factionTalentLevel = FactionTalent.Instance.factionTalentLevel;
|
|
let addition = factionTalentLevel * 0.3
|
|
if(info){
|
|
addition = (1 + (info.addition / 10)) * addition;
|
|
}
|
|
return `抗封印上限提高${addition}%`;
|
|
}
|
|
}
|