xy-server/game/skill/low/LiuShiZhiLie.ts

32 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-04-23 09:34:08 +08:00
import {ESkillType, EAttrTypeL1, EActionType, ESkillQuality, EBuffType, EMagicType} from "../../role/EEnum";
import SkillBase from "../core/SkillBase";
import GameUtil from "../../core/GameUtil";
import SKDataUtil from "../../gear/SKDataUtil";
// 六识炽烈
export default class LiuShiZhiLie extends SkillBase{
constructor() {
super();
this.skill_id = ESkillType.LiuShiZhiLie;
this.skill_name = "六识炽烈";
this.action_type=EActionType.PASSIVE;
this.skill_type = EMagicType.DEFENSE;
this.quality = ESkillQuality.HIGH;
this.buff_type = EBuffType.ONCE;
}
getEffect(params: any = null): any {
let relive = params.relive || 0;
let qinmi = params.qinmi || 0;
let level = params.level || 0;
let profic = params.profic || 0;
let ret = SKDataUtil.clone(GameUtil.skillEffect);
ret.hit = Math.floor(0.1 + 7 * (relive * 0.4 + 1) * (Math.pow(level, 0.5) / 10 + Math.pow(qinmi, 0.16666666666666666) * 10 / (100 + relive * 20)));
ret.round = Math.floor(3 * (1 + profic ** 0.35 * 5 / 100));
return ret;
}
}