28 lines
937 B
TypeScript
28 lines
937 B
TypeScript
import SkillBase, { ActionType,ESkillQuality, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
|
|
|
export default class NiShenBinQi extends SkillBase{
|
|
constructor() {
|
|
super();
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
this.id = ESkillType.NiShenBinQi;
|
|
this.name = '凝神屏氣';
|
|
this.icon = "10329";
|
|
this.desc = '提升召喚獸法術命中屬性,親密等級越高,法術躲閃越高';
|
|
this.action_type = ActionType.PASSIVE;
|
|
this.quality = ESkillQuality.FINAL;
|
|
}
|
|
|
|
|
|
getEffect(level:number, qinmi:number, relive:number):any {
|
|
let ret:any = {}
|
|
ret.reduce = Math.floor(50 * (relive * 0.3 + 1) * (Math.pow(level, 0.5) / 10 + Math.pow(qinmi, 0.16666666666666666) * 10 / (100 + relive * 20)))
|
|
return ret;
|
|
}
|
|
|
|
getDetail():string{
|
|
return `提升召喚獸法術命中屬性,親密等級越高,法術躲閃越高`;
|
|
}
|
|
} |