29 lines
943 B
TypeScript
29 lines
943 B
TypeScript
|
import { EAttrTypeL1 } from "../../../core/EEnum";
|
||
|
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
|
||
|
import FactionTalent from "../../../FactionTalent";
|
||
|
|
||
|
// 強魅・無價
|
||
|
export default class QiangMei3 extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.id = ESkillType.QiangMei3;
|
||
|
this.name = "強魅";
|
||
|
this.icon = "qm";
|
||
|
this.effectDesc = "犧牲氣血,增加強魅惑";
|
||
|
this.effectMap = {
|
||
|
[EAttrTypeL1.CHARM_ADD]: { add: 15, index: 0 },
|
||
|
};
|
||
|
this.action_type = ActionType.PASSIVE;
|
||
|
this.quality = ESkillQuality.FINAL;
|
||
|
}
|
||
|
|
||
|
getDetail(info = null):string{
|
||
|
let factionTalentLevel = FactionTalent.Instance.factionTalentLevel;
|
||
|
let addition = factionTalentLevel * 0.3
|
||
|
if(info){
|
||
|
addition = (1 + (info.addition / 10)) * addition;
|
||
|
}
|
||
|
return `犧牲氣血,增加${addition}%強魅惑`;
|
||
|
}
|
||
|
}
|