35 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2025-04-24 17:03:28 +08:00
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
// 天外飛魔
export default class TianWaiFeiMo extends SkillBase{
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.TianWaiFeiMo;
this.name = '天外飛魔';
this.icon = '1020';
this.desc = '使單目標進入加速狀態。 ';
this.particleEffect = '23119';
this.buffEffect = 'su';
this.buffEffectY = 30;
this.faXi = MagicType.Speed;
this.vecLevelExp = [300, 1700, 5300, 11900, 22500];
this.skillActOn = ActionOn.SELF;
}
getLevelData(level:number):any{
return {
nTargetCnt: 1,
nRound: Math.floor(3 * (1 + Math.pow(level, 0.35) * 5 / 100)),
nSpeedAdd: Math.round(15 + level / 5000),
}
}
getDetail():string{
let stLevelData = this.getLevelData(this.curExp);
return `天外魔神處學來的法術,激發自身和隊友潛能。速度增加使用者自身的${stLevelData.nSpeedAdd}%(負敏單位無效)。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
}
}