30 lines
999 B
TypeScript
30 lines
999 B
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 QianRen1 extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.id = ESkillType.QianRen1;
|
||
|
this.name = "千刃";
|
||
|
this.icon = "qr";
|
||
|
this.effectDesc = "破防程度增加";
|
||
|
this.effectMap = {
|
||
|
[EAttrTypeL1.PHY_BREAK]: { 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 `破防程度增加${addition}%`;
|
||
|
}
|
||
|
}
|