xy-server/game/skill/pet/FengTiYangWei.ts
2025-04-23 09:34:08 +08:00

25 lines
953 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { ESkillType, EActionType,EAttrTypeL1, ESkillQuality } from "../../role/EEnum";
import SkillBase from "../core/SkillBase";
//技能效果召唤兽自身提高忽视防御几率8.6%和忽视防御程度8.6%
export default class FengTiYangWei extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.FengTiYangWei;
this.skill_name = '奋蹄扬威';
this.action_type = EActionType.PASSIVE;
this.kind = ESkillType.FengTiYangWei;
this.quality = ESkillQuality.FINAL;
}
//召唤兽计算被动计算传入type,level,relive,qinmi//提升召唤兽法术闪躲属性,亲密等级越高,法术躲闪越高
getEffect(params: any = null): any {
let level = params.level || 0;
let relive = params.relive || 0;
let qinmi = params.qinmi || 0;
let ret: any = {};
ret.add = Math.round(0.1 + 4 * (relive * 0.4 + 1) * (level ** 0.5 / 10 + qinmi ** 0.1666667 * 10 / (100 + relive * 20)));
return ret;
}
}