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

26 lines
820 B
TypeScript
Raw Normal View History

2025-04-23 09:34:08 +08:00
import SKDataUtil from "../../gear/SKDataUtil";
import GameUtil from "../../core/GameUtil";
import { ESkillType, EMagicType, EBuffType, EActionOn, ESkillQuality } from "../../role/EEnum";
import SkillBase from "../core/SkillBase";
export default class ShouWangShenLi extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.ShouWangShenLi;
this.skill_name = '兽王神力';
this.skill_type = EMagicType.ATTACK;
this.buff_type = EBuffType.ONCE;
this.act_on = EActionOn.SELF;
this.quality = ESkillQuality.LOW;
}
getEffect(params:any=null):any{
let profic = params.profic || 0;
let ret = SKDataUtil.clone(GameUtil.skillEffect);
ret.atk = Math.round(50 * (profic * 0.85 * 8 / 100 + 1));
ret.hit = 30;
ret.round = Math.floor(3 * (1 + profic ** 0.35 * 5 / 100));
return ret;
}
}