xy-server/game/skill/pet/BaiBuDeYi.ts

32 lines
1020 B
TypeScript
Raw Normal View History

2025-04-23 09:34:08 +08:00
import { ESkillType, EActionType,EAttrTypeL1, ESkillQuality } from "../../role/EEnum";
import SkillBase from "../core/SkillBase";
//技能效果:提升召唤兽法术闪躲属性
export default class BaiBuDeYi extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.BaiBuDeYi;
this.skill_name = '百不得一';
this.action_type = EActionType.PASSIVE;
this.effectMap = {
[EAttrTypeL1.FASHUDUOSHAN]: { add: 0 },
// [EAttrTypeL1.PHY_DEADLY]: { add: 0 }
};
this.kind = ESkillType.BaiBuDeYi;
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;
}
}