27 lines
803 B
TypeScript
27 lines
803 B
TypeScript
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
|
|
|
// 帳飲東都
|
|
export default class ZhangYinDongDu extends SkillBase{
|
|
constructor() {
|
|
super();
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
this.id = ESkillType.ZhangYinDongDu;
|
|
this.name = '帳飲東都';
|
|
this.icon = "2001";
|
|
this.desc = '增加自身HP';
|
|
this.action_type = ActionType.PASSIVE;
|
|
}
|
|
|
|
getEffect(level:number, qinmi:number, relive:number):any {
|
|
let ret:any = {}
|
|
ret.add = Math.floor(4500 * (relive * 0.5 + 1) * (Math.pow(level, 0.5) / 10 + Math.pow(qinmi, 0.16666666666666666) * 10 / (100 + relive * 20)))
|
|
return ret;
|
|
}
|
|
|
|
getDetail():string{
|
|
return `增加召喚獸氣血上限。 `;
|
|
}
|
|
} |