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

34 lines
1.1 KiB
TypeScript
Raw Normal View History

2025-04-23 09:34:08 +08:00
import SkillBase from "../core/SkillBase";
import GameUtil from "../../core/GameUtil";
import SKDataUtil from "../../gear/SKDataUtil";
import { EActionOn, EBuffType, EMagicType, ESkillQuality, ESkillType } from "../../role/EEnum";
export default class MoShenHuTi extends SkillBase {
constructor() {
super();
this.skill_id = ESkillType.MoShenHuTi;
this.skill_name = '魔神护体';
this.skill_type = EMagicType.DEFENSE;
this.buff_type = EBuffType.ONCE;
this.act_on = EActionOn.SELF;
this.quality = ESkillQuality.LOW;
}
getEffect(params: any = null): any {
let profic = params.profic || 0;
/* Detail = "
kongzhi %
fashang%
fangyu%
1Time个回合"*/
let ret = SKDataUtil.clone(GameUtil.skillEffect);
ret.kongzhi = Math.round(1.1 * (profic ** 0.35 * 20 / 100 + 1));
ret.fashang = Math.round(18 * (profic ** 0.35 * 2 / 100 + 1));
ret.fangyu = Math.round(15 * (profic ** 0.35 * 2 / 100 + 1));
ret.round = Math.floor(3 * (1 + profic ** 0.35 * 5 / 100));
return ret;
}
}