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

61 lines
1.9 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 ModelRhino extends ShipModel {
constructor() {
super("rhino", "Rhino");
}
getDescription(): string {
return "A sturdy ship, able to sustain massive damage.";
}
2018-03-06 14:39:48 +00:00
getLevelUpgrades(level: number): ShipUpgrade[] {
if (level == 1) {
let engine = new MoveAction("Engine", {
2018-07-09 14:59:17 +00:00
distance_per_power: 2,
});
let gatling = new TriggerAction("Gatling Gun", {
2018-03-21 22:25:25 +00:00
effects: [new DamageEffect(2)],
power: 3,
2018-07-10 14:23:32 +00:00
range: 8,
}, "gatlinggun");
gatling.configureCooldown(2, 2);
let laser = new TriggerAction("Prokhorov Laser", {
2018-03-28 22:48:21 +00:00
effects: [new DamageEffect(3)],
power: 4,
2018-07-10 14:23:32 +00:00
range: 5, angle: 60,
}, "prokhorovlaser");
return [
{
2018-03-06 14:39:48 +00:00
code: "Rhino Base",
effects: [
2018-03-26 15:30:43 +00:00
new AttributeEffect("initiative", 1),
2018-03-21 22:25:25 +00:00
new AttributeEffect("hull_capacity", 3),
2018-03-28 22:48:21 +00:00
new AttributeEffect("shield_capacity", 3),
new AttributeEffect("power_capacity", 6),
]
},
{
code: "Main Engine",
actions: [engine]
},
{
code: "Gatling Gun",
actions: [gatling]
},
{
code: "Prokhorov Laser",
actions: [laser]
},
];
} else {
return this.getStandardUpgrades(level);
}
}
}
}