1
0
Fork 0
spacetac/src/core/models/ModelFlea.ts

63 lines
2.1 KiB
TypeScript
Raw Normal View History

2018-03-06 14:39:48 +00:00
/// <reference path="ShipModel.ts" />
module TK.SpaceTac {
2018-03-06 14:39:48 +00:00
export class ModelFlea extends ShipModel {
constructor() {
super("flea", "Flea");
}
getDescription(): string {
return "An agile but weak ship, specialized in disruptive technologies.";
}
2018-03-06 14:39:48 +00:00
getLevelUpgrades(level: number): ShipUpgrade[] {
if (level == 1) {
let engine = new MoveAction("Engine", {
2018-03-28 22:48:21 +00:00
distance_per_power: 420,
});
let depleter = new TriggerAction("Power Depleter", {
effects: [new StickyEffect(new AttributeLimitEffect("power_capacity", 3))],
power: 2,
range: 450,
}, "powerdepleter");
depleter.configureCooldown(1, 1);
2018-03-28 22:48:21 +00:00
let gatling = new TriggerAction("Shield Basher", {
effects: [new DamageEffect(2, DamageEffectMode.SHIELD_ONLY, false)],
2018-03-01 18:35:10 +00:00
power: 3,
range: 300,
2018-03-28 22:48:21 +00:00
}, "submunitionmissile");
gatling.configureCooldown(2, 1);
return [
{
2018-03-06 14:39:48 +00:00
code: "Flea Base",
effects: [
2018-03-26 15:30:43 +00:00
new AttributeEffect("initiative", 2),
new AttributeEffect("evasion", 1),
2018-03-21 22:25:25 +00:00
new AttributeEffect("hull_capacity", 1),
new AttributeEffect("shield_capacity", 2),
2018-03-28 22:48:21 +00:00
new AttributeEffect("power_capacity", 6),
]
},
{
code: "Main Engine",
actions: [engine]
},
{
code: "Power Depleter",
actions: [depleter]
},
{
code: "Gatling Gun",
actions: [gatling]
},
];
} else {
return this.getStandardUpgrades(level);
}
}
}
}