32 lines
991 B
TypeScript
32 lines
991 B
TypeScript
|
import SkillBase, { MagicType, ESkillType } from "../core/SkillBase";
|
|||
|
|
|||
|
// 鶴頂紅粉
|
|||
|
export default class HeDingHongFen extends SkillBase {
|
|||
|
constructor() {
|
|||
|
super();
|
|||
|
this.init();
|
|||
|
}
|
|||
|
|
|||
|
init() {
|
|||
|
this.id = ESkillType.HeDingHongFen;
|
|||
|
this.name = '鶴頂紅粉';
|
|||
|
this.icon = '1003';
|
|||
|
this.desc = '使單個目標中毒。 ';
|
|||
|
this.particleEffect = '21101';
|
|||
|
this.buffEffect = 'du';
|
|||
|
this.faXi = MagicType.Toxin;
|
|||
|
this.vecLevelExp = [1700, 13000];
|
|||
|
}
|
|||
|
|
|||
|
getLevelData(level:number):any{
|
|||
|
return {
|
|||
|
nTargetCnt: 1,
|
|||
|
nRound: Math.floor(2 * (1 + Math.pow(level, 0.34) * 4 / 100))
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
getDetail():string{
|
|||
|
let stLevelData = this.getLevelData(this.curExp);
|
|||
|
return `利用無色無味的劇毒修煉出來的藥粉,消滅敵人於無形。目標人數${stLevelData.nTargetCnt}人,持續${stLevelData.nRound}個回合。 (毒發傷害不超過最大生命值50%)`;
|
|||
|
}
|
|||
|
}
|