36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
||
// 魔神附身
|
||
export default class MoShenFuShen extends SkillBase{
|
||
constructor() {
|
||
super();
|
||
this.init();
|
||
}
|
||
|
||
init() {
|
||
this.id = ESkillType.MoShenFuShen;
|
||
this.name = '魔神附身';
|
||
this.icon = '1025';
|
||
this.desc = '使多目標進入加攻狀態。 ';
|
||
this.particleEffect = '23222';
|
||
this.buffEffect = 'liliang';
|
||
this.buffEffectY = 25;
|
||
this.faXi = MagicType.Attack;
|
||
this.scale = AffectType.GROUP;
|
||
this.effectPos = EffectPos.STAGE;
|
||
this.vecLevelExp = [200, 300, 1200, 1700, 4600, 5300, 11900, 22500];
|
||
this.skillActOn = ActionOn.SELF;
|
||
}
|
||
|
||
getLevelData(level:number):any{
|
||
return {
|
||
nTargetCnt: Math.min(7, Math.floor(3 * (1 + Math.pow(level, 0.3) * 8 / 100))),
|
||
nRound: Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100)),
|
||
nAttackAdd: Math.round(25 * (Math.pow(level, 0.35) * 3 / 100 + 1))
|
||
}
|
||
}
|
||
|
||
getDetail():string{
|
||
let stLevelData = this.getLevelData(this.curExp);
|
||
return `戰鬥魔神之力,強化己方戰鬥力。攻擊力增加${stLevelData.nAttackAdd}%,命中增加30%。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
|
||
}
|
||
} |