32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import SkillBase, { ActionOn, ActionType, AffectType, EAttackType, EffectPos, MagicType, ESkillType } from "../core/SkillBase";
|
|
|
|
// 落日熔金
|
|
export default class LuoRiRongJin extends SkillBase{
|
|
constructor() {
|
|
super();
|
|
this.init();
|
|
}
|
|
|
|
init() {
|
|
this.id = ESkillType.LuoRiRongJin;
|
|
this.name = '落日熔金';
|
|
this.icon = '1029';
|
|
this.desc = '鬼火攻擊單目標。 ';
|
|
this.particleEffect = '24129';
|
|
this.faXi = MagicType.GhostFire;
|
|
this.vecLevelExp = [];
|
|
}
|
|
|
|
getLevelData(level:number):any{
|
|
let nCurGrade = this.getCurGrade();
|
|
return {
|
|
nTargetCnt: 1,
|
|
nHurt: Math.floor(65 * nCurGrade * (Math.pow(level, 0.4) * 2.8853998118144273 / 100 + 1))
|
|
}
|
|
}
|
|
|
|
getDetail():string{
|
|
let stLevelData = this.getLevelData(this.curExp);
|
|
return `熊熊冥火,烈血殘陽,映入耳目,所到之處,盡染血色,目標人數${stLevelData.nTargetCnt}人。 (基礎傷害${stLevelData.nHurt})`;
|
|
}
|
|
} |