33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
||
|
||
// 失心瘋
|
||
export default class ShiXinFeng extends SkillBase{
|
||
constructor() {
|
||
super();
|
||
this.Init();
|
||
}
|
||
|
||
Init() {
|
||
this.id = ESkillType.ShiXinFeng;
|
||
this.name = '失心瘋';
|
||
this.icon = '1030';
|
||
this.desc = '使單目標遺忘技能。 ';
|
||
this.particleEffect = '24131';
|
||
this.buffEffect = 'wang';
|
||
this.buffEffectY = 100;
|
||
this.faXi = MagicType.Forget;
|
||
this.vecLevelExp = [200, 1900, 7100, 18500];
|
||
}
|
||
|
||
getLevelData(level:number):any{
|
||
return {
|
||
nTargetCnt: 1,
|
||
nRound: Math.floor(3 * (1 + Math.pow(level, 0.3) * 7 / 100))
|
||
}
|
||
}
|
||
|
||
getDetail():string{
|
||
let stLevelData = this.getLevelData(this.curExp);
|
||
return `鬼上身,使敵方喪心病狂。每個技能都有85%機率被遺忘,無法使用物品,目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
|
||
}
|
||
} |