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 ModelBreeze extends ShipModel {
|
2018-02-08 15:16:03 +00:00
|
|
|
constructor() {
|
|
|
|
super("breeze", "Breeze");
|
|
|
|
}
|
|
|
|
|
|
|
|
getDescription(): string {
|
|
|
|
return "A swift piece of maneuvrability, able to go deep behind enemy lines, and come back without a scratch.";
|
|
|
|
}
|
|
|
|
|
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-23 17:04:22 +00:00
|
|
|
max_distance: 2000
|
2018-02-08 15:16:03 +00:00
|
|
|
});
|
|
|
|
engine.configureCooldown(2, 1);
|
|
|
|
|
|
|
|
let gatling = new TriggerAction("Gatling Gun", {
|
2018-03-21 23:52:13 +00:00
|
|
|
effects: [new DamageEffect(2, DamageEffectMode.SHIELD_THEN_HULL)],
|
2018-02-08 15:16:03 +00:00
|
|
|
power: 2,
|
2019-05-23 17:04:22 +00:00
|
|
|
range: 400,
|
2018-02-08 15:16:03 +00:00
|
|
|
}, "gatlinggun");
|
2018-03-29 22:57:53 +00:00
|
|
|
gatling.configureCooldown(2, 1);
|
2018-02-08 15:16:03 +00:00
|
|
|
|
|
|
|
let shield_steal = new TriggerAction("Shield Steal", {
|
2018-03-21 22:25:25 +00:00
|
|
|
effects: [new ValueTransferEffect("shield", -1)],
|
2018-02-08 15:16:03 +00:00
|
|
|
power: 1,
|
2019-05-23 17:04:22 +00:00
|
|
|
blast: 600
|
2018-02-08 15:16:03 +00:00
|
|
|
}, "shieldtransfer");
|
|
|
|
shield_steal.configureCooldown(1, 2);
|
|
|
|
|
|
|
|
return [
|
|
|
|
{
|
2018-03-06 14:39:48 +00:00
|
|
|
code: "Breeze Base",
|
2018-02-08 15:16:03 +00:00
|
|
|
effects: [
|
2018-03-26 15:30:43 +00:00
|
|
|
new AttributeEffect("initiative", 3),
|
|
|
|
new AttributeEffect("evasion", 1),
|
2018-03-21 22:25:25 +00:00
|
|
|
new AttributeEffect("hull_capacity", 1),
|
2018-03-28 22:48:21 +00:00
|
|
|
new AttributeEffect("shield_capacity", 2),
|
|
|
|
new AttributeEffect("power_capacity", 6),
|
2018-02-08 15:16:03 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Main Engine",
|
|
|
|
actions: [engine]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Gatling Gun",
|
|
|
|
actions: [gatling]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Shield Steal",
|
|
|
|
actions: [shield_steal]
|
|
|
|
},
|
|
|
|
];
|
|
|
|
} else {
|
|
|
|
return this.getStandardUpgrades(level);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|