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 ModelCreeper extends ShipModel {
|
2018-02-08 15:16:03 +00:00
|
|
|
constructor() {
|
|
|
|
super("creeper", "Creeper");
|
|
|
|
}
|
|
|
|
|
|
|
|
getDescription(): string {
|
|
|
|
return "A fast ship, with low firepower but extensive support modules.";
|
|
|
|
}
|
|
|
|
|
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: 1200,
|
2018-02-08 15:16:03 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
let gatling = new TriggerAction("Gatling Gun", {
|
2018-03-21 22:25:25 +00:00
|
|
|
effects: [new DamageEffect(1)],
|
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");
|
|
|
|
gatling.configureCooldown(1, 1);
|
|
|
|
|
|
|
|
let repulse = new TriggerAction("Repulser", {
|
2019-05-23 17:04:22 +00:00
|
|
|
effects: [new RepelEffect(400)],
|
2018-02-08 15:16:03 +00:00
|
|
|
power: 2,
|
2019-05-23 17:04:22 +00:00
|
|
|
blast: 600,
|
2018-02-08 15:16:03 +00:00
|
|
|
}, "gravitshield");
|
|
|
|
repulse.configureCooldown(1, 1);
|
|
|
|
|
2018-03-29 22:57:53 +00:00
|
|
|
let repairdrone = new DeployDroneAction("Repair Drone", { power: 3, filter: ActionTargettingFilter.ALLIES }, {
|
2019-05-23 17:04:22 +00:00
|
|
|
deploy_distance: 600,
|
|
|
|
drone_radius: 300,
|
2018-02-08 15:16:03 +00:00
|
|
|
drone_effects: [
|
2018-03-29 22:57:53 +00:00
|
|
|
new ValueEffect("hull", 0, 0, 0, 1)
|
2018-02-08 15:16:03 +00:00
|
|
|
]
|
|
|
|
}, "repairdrone");
|
|
|
|
|
|
|
|
return [
|
|
|
|
{
|
2018-03-06 14:39:48 +00:00
|
|
|
code: "Creeper Base",
|
2018-02-08 15:16:03 +00:00
|
|
|
effects: [
|
2018-03-26 15:30:43 +00:00
|
|
|
new AttributeEffect("initiative", 3),
|
2018-03-28 22:48:21 +00:00
|
|
|
new AttributeEffect("hull_capacity", 2),
|
2018-03-21 22:25:25 +00:00
|
|
|
new AttributeEffect("shield_capacity", 2),
|
2018-03-28 22:48:21 +00:00
|
|
|
new AttributeEffect("power_capacity", 5),
|
2018-02-08 15:16:03 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Main Engine",
|
|
|
|
actions: [engine]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Gatling Gun",
|
|
|
|
actions: [gatling]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Repulser",
|
|
|
|
actions: [repulse]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: "Repair Drone",
|
|
|
|
actions: [repairdrone]
|
|
|
|
},
|
|
|
|
];
|
|
|
|
} else {
|
|
|
|
return this.getStandardUpgrades(level);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|