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 NuTao1 extends SkillBase { constructor() { super(); this.id = ESkillType.NuTao1; this.name = "怒濤"; this.icon = "nt"; this.effectDesc = "增加仙法、三尸、鬼火狂暴率"; this.effectMap = { [EAttrTypeL1.KB_WIND]: { add: 7, index: 0 }, [EAttrTypeL1.KB_FIRE]: { add: 7, index: 1 }, [EAttrTypeL1.KB_WATER]: { add: 7, index: 2 }, [EAttrTypeL1.KB_THUNDER]: { add: 7, index: 3 }, [EAttrTypeL1.KB_BLOODRETURN]: { add: 7, index: 4 }, [EAttrTypeL1.KB_WILDFIRE]: { add: 7, index: 5 }, }; 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}%仙法、三尸、鬼火狂暴率`; } }