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 PoJun1 extends SkillBase {
|
|
constructor() {
|
|
super();
|
|
this.id = ESkillType.PoJun1;
|
|
this.name = "破軍";
|
|
this.icon = "pj";
|
|
this.effectDesc = "增加破防概率、破防程度";
|
|
this.effectMap = {
|
|
[EAttrTypeL1.PHY_BREAK]: { add: 7, index: 0 },
|
|
[EAttrTypeL1.PHY_BREAK_PROB]: { add: 7, index: 1 },
|
|
};
|
|
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 `增加${addition}%破防概率、破防程度`;
|
|
}
|
|
}
|