26 lines
778 B
TypeScript
26 lines
778 B
TypeScript
|
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
||
|
// 蹣跚
|
||
|
export default class PanShan extends SkillBase{
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.init();
|
||
|
}
|
||
|
|
||
|
init() {
|
||
|
this.id = ESkillType.PanShan;
|
||
|
this.name = '蹣跚';
|
||
|
this.icon = "2005";
|
||
|
this.desc = '減少自身SPD';
|
||
|
this.action_type = ActionType.PASSIVE;
|
||
|
}
|
||
|
|
||
|
getEffect(level:number, qinmi:number, relive:number):any {
|
||
|
let ret:any = {}
|
||
|
ret.reduce = Math.floor(38 * (relive * 0.3 + 1) * (Math.pow(level, 0.5) / 10 + Math.pow(qinmi, 0.16666666666666666) * 10 / (100 + relive * 20)))
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
getDetail():string{
|
||
|
return `減少召喚獸速度上限。 `;
|
||
|
}
|
||
|
}
|