import GameUtil from "../../../game/core/GameUtil"; import { ESkillType, EMagicType, EActionType, EBuffType, ESkillQuality } from "../../../game/role/EEnum"; import SKDataUtil from "../../gear/SKDataUtil"; import SkillBase from "../core/SkillBase"; // 我见犹怜 export default class WoJianYouLian extends SkillBase { constructor() { super(); this.skill_id = ESkillType.WoJianYouLian; this.skill_name = '我见犹怜'; this.skill_type = EMagicType.GHOST_FIRE; this.action_type = EActionType.INITIATIVE; this.buff_type = EBuffType.ONCE; this.kind = ESkillType.WoJianYouLian; this.quality = ESkillQuality.HIGH; } getEffect(params: any = null): any { let level = params.level || 0; let relive = params.relive || 0; let qinmi = params.qinmi || 0; let maxmp = params.maxmp || 0; let huhuo = params.huhuo || 0; let ret = SKDataUtil.clone(GameUtil.skillEffect); let cnt = 1; if(huhuo <= 3){ cnt = 3; }else{ cnt = 5; } ret.cnt = cnt; ret.hurt = Math.floor(80 * level + maxmp / 100 * 9 * (relive * 0.6 + 1) * (Math.pow(level,0.4) / 10 + Math.pow(qinmi,0.166666666666666666) * 10 / (100 + relive * 20))); return ret; } }