29 lines
922 B
TypeScript
29 lines
922 B
TypeScript
|
import { EAttrTypeL1 } from "../../../core/EEnum";
|
||
|
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
|
||
|
import FactionTalent from "../../../FactionTalent";
|
||
|
|
||
|
// 沉著・珍藏
|
||
|
export default class ChenZhuo2 extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.id = ESkillType.ChenZhuo2;
|
||
|
this.name = "沉著";
|
||
|
this.icon = "cz";
|
||
|
this.effectDesc = "抗昏睡上限提高";
|
||
|
this.effectMap = {
|
||
|
[EAttrTypeL1.K_SLEEP]: { add: 10, index: 0 },
|
||
|
};
|
||
|
this.action_type = ActionType.PASSIVE;
|
||
|
this.quality = ESkillQuality.HIGH;
|
||
|
}
|
||
|
|
||
|
getDetail(info = null):string{
|
||
|
let factionTalentLevel = FactionTalent.Instance.factionTalentLevel;
|
||
|
let addition = factionTalentLevel * 0.2
|
||
|
if(info){
|
||
|
addition = (1 + (info.addition / 10)) * addition;
|
||
|
}
|
||
|
return `抗昏睡上限提高${addition}%`;
|
||
|
}
|
||
|
}
|