32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
|
import { EAttrTypeL1 } from "../../../core/EEnum";
|
||
|
import SkillBase, { ActionType, ESkillQuality, ESkillType } from "../core/SkillBase";
|
||
|
import FactionTalent from "../../../FactionTalent";
|
||
|
|
||
|
// 金剛・無價
|
||
|
export default class JinGang3 extends SkillBase {
|
||
|
constructor() {
|
||
|
super();
|
||
|
this.id = ESkillType.JinGang3;
|
||
|
this.name = "金剛";
|
||
|
this.icon = "jg";
|
||
|
this.effectDesc = "增加抗風、抗雷、抗水、抗火";
|
||
|
this.effectMap = {
|
||
|
[EAttrTypeL1.K_WIND]: { add: 15, index: 0 },
|
||
|
[EAttrTypeL1.K_FIRE]: { add: 10, index: 1 },
|
||
|
[EAttrTypeL1.K_WATER]: { add: 10, index: 2 },
|
||
|
[EAttrTypeL1.K_THUNDER]: { add: 10, index: 3 }
|
||
|
};
|
||
|
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}%抗風、抗雷、抗水、抗火`;
|
||
|
}
|
||
|
}
|