32 lines
1.1 KiB
TypeScript
32 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 QianGuang2 extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.id = ESkillType.QianGuang2;
|
||
|
this.name = "乾光";
|
||
|
this.icon = "qg";
|
||
|
this.effectDesc = "增加抗鬼火、抗毒、抗三尸、物理吸收";
|
||
|
this.effectMap = {
|
||
|
[EAttrTypeL1.K_WILDFIRE]: { add: 10, index: 0 },
|
||
|
[EAttrTypeL1.K_POISON]: { add: 10, index: 1 },
|
||
|
[EAttrTypeL1.K_BLOODRETURN]: { add: 10, index: 2 },
|
||
|
[EAttrTypeL1.PHY_GET]: { add: 10, index: 3 }
|
||
|
};
|
||
|
this.action_type = ActionType.PASSIVE;
|
||
|
this.quality = ESkillQuality.HIGH;
|
||
|
}
|
||
|
|
||
|
getDetail(info = null):string{
|
||
|
let factionTalentLevel = FactionTalent.Instance.factionTalentLevel;
|
||
|
let addition = factionTalentLevel * 0.2
|
||
|
if(info){
|
||
|
addition = (1 + (info.addition / 10)) * addition;
|
||
|
}
|
||
|
return `增加${addition}%抗鬼火、抗毒、抗三尸、物理吸收`;
|
||
|
}
|
||
|
}
|