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

31 lines
1.0 KiB
TypeScript

import SKDataUtil from "../../gear/SKDataUtil";
import GameUtil from "../../core/GameUtil";
import { ESkillType, EMagicType, EBuffType, ESkillQuality } from "../../role/EEnum";
import SkillBase from "../core/SkillBase";
// 万毒攻心
export default class WanDuGongXin extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.WanDuGongXin;
this.skill_name = '万毒攻心';
this.skill_type = EMagicType.TOXIN;
this.buff_type = EBuffType.LOOP;
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 profic = params.profic || 0;
let du = params.du || 0;
let xianhurt = Math.floor(60 * level * (profic ** 0.4 * 2.5853998 / 100 + 1));
let hurt = Math.floor(xianhurt / 3) + (xianhurt * 0.1);
let ret = SKDataUtil.clone(GameUtil.skillEffect);
ret.hurt = hurt;
ret.round = Math.floor(2 * (1 + profic ** 0.34 * 4 / 100));
ret.cnt = Math.min(7, Math.floor(3 * (1 + profic ** 0.35 * 5 / 100)));
return ret;
}
}