2017-04-18 19:51:23 +00:00
|
|
|
/// <reference path="../LootTemplate.ts"/>
|
2015-02-27 00:00:00 +00:00
|
|
|
|
2017-02-09 00:00:35 +00:00
|
|
|
module TS.SpaceTac.Equipments {
|
2017-04-18 19:51:23 +00:00
|
|
|
export class PowerDepleter extends LootTemplate {
|
2015-02-27 00:00:00 +00:00
|
|
|
constructor() {
|
2017-04-18 22:55:59 +00:00
|
|
|
super(SlotType.Weapon, "Power Depleter", "Direct-hit weapon that creates an energy well near the target, sucking its power surplus");
|
2015-02-27 00:00:00 +00:00
|
|
|
|
2017-06-11 20:44:12 +00:00
|
|
|
this.setSkillsRequirements({ "skill_photons": 1 });
|
2017-05-22 16:29:04 +00:00
|
|
|
this.setCooldown(irepeat(2), irepeat(3));
|
2017-04-18 19:51:23 +00:00
|
|
|
this.addFireAction(irepeat(4), istep(500, irepeat(20)), 0, [
|
|
|
|
new StickyEffectTemplate(new AttributeLimitEffect("power_capacity"), { "value": irepeat(3) }, irepeat(2))
|
|
|
|
]);
|
2015-02-27 00:00:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|