2017-06-12 22:28:54 +00:00
|
|
|
/// <reference path="../LootTemplate.ts"/>
|
|
|
|
|
2017-09-24 22:23:22 +00:00
|
|
|
module TK.SpaceTac.Equipments {
|
2017-06-12 22:28:54 +00:00
|
|
|
export class DamageProtector extends LootTemplate {
|
|
|
|
constructor() {
|
2017-09-17 22:49:53 +00:00
|
|
|
super(SlotType.Weapon, "Damage Protector", "Extend a time-displacement subfield, to reduce damage taken by ships around", 145);
|
2017-06-12 22:28:54 +00:00
|
|
|
|
2017-09-17 22:49:53 +00:00
|
|
|
this.setSkillsRequirements({ "skill_time": leveled(3) });
|
|
|
|
this.addToggleAction(leveled(2, 0.4), leveled(300, 10), [
|
|
|
|
new EffectTemplate(new DamageModifierEffect(), { factor: imap(leveled(-20), x => x * (100 / (100 - x))) })
|
2017-06-12 22:28:54 +00:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|