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 ZhuShen2 extends SkillBase { constructor() { super(); this.id = ESkillType.ZhuShen2; this.name = "誅神"; this.icon = "zs"; this.effectDesc = "對召喚獸忽視抗控制、忽視傷法、破防程度增加"; this.effectMap = { [EAttrTypeL1.ICE_EHAN]: { add: 10, index: 0 }, }; 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 = SKDataUtil.toDecimal2((1 + (info.addition / 10)) * addition); } return `對召喚獸忽視抗控制、忽視傷法、破防程度增加${addition}%`; } }