35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
|
|
|
// 失心狂亂
|
|
export default class ShiXinKuangLuan extends SkillBase{
|
|
constructor() {
|
|
super();
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
this.id = ESkillType.ShiXinKuangLuan;
|
|
this.name = '失心狂亂';
|
|
this.icon = '1008';
|
|
this.desc = '使多個目標混亂。 ';
|
|
this.particleEffect = '21204';
|
|
this.buffEffect = 'luan';
|
|
this.faXi = MagicType.Chaos;
|
|
this.scale = AffectType.GROUP;
|
|
this.effectPos = EffectPos.STAGE;
|
|
this.vecLevelExp = [600, 1000, 5700, 7100, 21800];
|
|
}
|
|
|
|
getLevelData(level:number):any{
|
|
return {
|
|
nTargetCnt: Math.min(5, Math.floor(3 * (1 + Math.pow(level, 0.35) * 3 / 100))),
|
|
nRound: Math.floor(3 * (1 + Math.pow(level, 0.3) * 5 / 100))
|
|
}
|
|
}
|
|
|
|
getDetail():string{
|
|
let stLevelData = this.getLevelData(this.curExp);
|
|
return `使用混亂法術,使目標變得喪心病狂,而自相攻擊起來。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
|
|
}
|
|
}
|