32 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-04-24 17:03:28 +08:00
import { EAttrTypeL1 } from "../../../core/EEnum";
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
import FactionTalent from "../../../FactionTalent";
// 乾光・無價
export default class QianGuang3 extends SkillBase {
constructor() {
super();
this.id = ESkillType.QianGuang3;
this.name = "乾光";
this.icon = "qg";
this.effectDesc = "增加抗鬼火、抗毒、抗三尸、物理吸收";
this.effectMap = {
[EAttrTypeL1.K_WILDFIRE]: { add: 15, index: 0 },
[EAttrTypeL1.K_POISON]: { add: 15, index: 1 },
[EAttrTypeL1.K_BLOODRETURN]: { add: 15, index: 2 },
[EAttrTypeL1.PHY_GET]: { add: 15, index: 3 }
};
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}%抗鬼火、抗毒、抗三尸、物理吸收`;
}
}