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

32 lines
1.1 KiB
TypeScript
Raw 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";
//技能效果:对敌方使用仙法时会给目标添加一个神树标记(最多只能标记一个目标)目标施放随机1~4阶火法
export default class GuiQulaiXi extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.GuiQulaiXi;
this.skill_name = '归去来兮';
this.action_type = EActionType.PASSIVE;
this.effectMap = {
[EAttrTypeL1.FASHUDUOSHAN]: { add: 0 },
// [EAttrTypeL1.PHY_DEADLY]: { add: 0 }
};
this.kind = ESkillType.GuiQulaiXi;
this.quality = ESkillQuality.SHEN;
}
//召唤兽计算被动计算传入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;
}
}