37 lines
1.4 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 MoShenHuTi extends SkillBase {
constructor() {
super();
this.init();
}
init() {
this.id = ESkillType.MoShenHuTi;
this.name = '魔神護體';
this.icon = '1019';
this.desc = '使單目標進入加防狀態。 ';
this.particleEffect = '23117';
this.buffEffect = 'fang';
this.buffEffectY = 45;
this.faXi = MagicType.Defense;
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)),
nKongAdd: Math.round(1.1 * (Math.pow(level, 0.35) * 20 / 100 + 1)),
nFaAdd: Math.round(18 * (Math.pow(level, 0.35) * 2 / 100 + 1)),
nFangAdd: Math.round(15 * (Math.pow(level, 0.35) * 2 / 100 + 1))
}
}
getDetail():string{
let stLevelData = this.getLevelData(this.curExp);
return `召喚鬼神依附到自己身上。控制抗性增加${stLevelData.nKongAdd}%,傷法抗性增加${stLevelData.nFaAdd}%,防禦增加${stLevelData.nFangAdd}%。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 `;
}
}