2018-03-06 14:39:48 +00:00
|
|
|
/// <reference path="ShipModel.ts" />
|
2018-02-08 15:16:03 +00:00
|
|
|
|
|
|
|
module TK.SpaceTac {
|
2018-03-06 14:39:48 +00:00
|
|
|
export class ModelJumper extends ShipModel {
|
2018-02-08 15:16:03 +00:00
|
|
|
constructor() {
|
|
|
|
super("jumper", "Jumper");
|
|
|
|
}
|
|
|
|
|
|
|
|
getDescription(): string {
|
|
|
|
return "A mid-range action ship, with support abilities.";
|
|
|
|
}
|
|
|
|
|
2018-03-06 14:39:48 +00:00
|
|
|
getLevelUpgrades(level: number): ShipUpgrade[] {
|
2018-02-08 15:16:03 +00:00
|
|
|
if (level == 1) {
|
|
|
|
let engine = new MoveAction("Engine", {
|
2019-05-21 21:29:47 +00:00
|
|
|
max_distance: 650,
|
2018-02-08 15:16:03 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
let missile = new TriggerAction("SubMunition Missile", {
|
2018-03-28 22:48:21 +00:00
|
|
|
effects: [new DamageEffect(2)],
|
2018-02-08 15:16:03 +00:00
|
|
|
power: 3,
|
|
|
|
range: 400, blast: 120,
|
|
|
|
}, "submunitionmissile");
|
|
|
|
|
|
|
|
let protector = new TriggerAction("Damage Reductor", {
|
2018-03-26 15:30:43 +00:00
|
|
|
effects: [new StickyEffect(new AttributeEffect("evasion", 1), 2)],
|
2018-02-08 15:16:03 +00:00
|
|
|
power: 3,
|
|
|
|
range: 300, blast: 150
|
|
|
|
}, "damageprotector");
|
|
|
|
protector.configureCooldown(1, 3);
|
|
|
|
|
|
|
|
let hull_regrowth = new ToggleAction("Hull Regrowth", {
|
|
|
|
power: 2,
|
|
|
|
effects: [new ValueEffect("hull", 0, 0, 10)]
|
|
|
|
}, "fractalhull");
|
|
|
|
|
|
|
|
return [
|
|
|
|
{
|
2018-03-06 14:39:48 +00:00
|
|
|
code: "Jumper Base",
|
2018-02-08 15:16:03 +00:00
|
|
|
effects: [
|
2018-03-26 15:30:43 +00:00
|
|
|
new AttributeEffect("initiative", 1),
|
2018-03-28 22:48:21 +00:00
|
|
|
new AttributeEffect("hull_capacity", 3),
|
2018-03-21 22:25:25 +00:00
|
|
|
new AttributeEffect("shield_capacity", 2),
|
2018-02-08 15:16:03 +00:00
|
|
|
new AttributeEffect("power_capacity", 6),
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Main Engine",
|
|
|
|
actions: [engine]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Missile",
|
|
|
|
actions: [missile]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Damage Reductor",
|
|
|
|
actions: [protector]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Hull Regrowth",
|
|
|
|
actions: [hull_regrowth]
|
|
|
|
},
|
|
|
|
];
|
|
|
|
} else {
|
|
|
|
return this.getStandardUpgrades(level);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|