36 lines
1.4 KiB
TypeScript
36 lines
1.4 KiB
TypeScript
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
|
// 乾坤借速
|
|
export default class QianKunJieSu extends SkillBase{
|
|
constructor() {
|
|
super();
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
this.id = ESkillType.QianKunJieSu;
|
|
this.name = '乾坤借速';
|
|
this.icon = '1024';
|
|
this.desc = '使多目標進入加速狀態。 ';
|
|
this.particleEffect = '23220';
|
|
this.buffEffect = 'su';
|
|
this.buffEffectY = 30;
|
|
this.faXi = MagicType.Speed;
|
|
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)),
|
|
nSpeedAdd: Math.round(12 + 8 * level / 25000),
|
|
}
|
|
}
|
|
|
|
getDetail():string{
|
|
let stLevelData = this.getLevelData(this.curExp);
|
|
return `借助戰鬥魔神的力量,增加自己和隊友主動性。速度增加使用者自身的${stLevelData.nSpeedAdd}%(負敏單位無效)。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
|
|
}
|
|
} |