1
0
Fork 0

Hull and shield are now small values

This commit is contained in:
Michaël Lemaire 2018-03-21 23:25:25 +01:00
parent c28d7ba8eb
commit 6443f9afda
12 changed files with 47 additions and 47 deletions

View file

@ -20,14 +20,14 @@ module TK.SpaceTac {
// TODO Weapons should be less efficient in short range // TODO Weapons should be less efficient in short range
let charged_shot = new TriggerAction("Charged Shot", { let charged_shot = new TriggerAction("Charged Shot", {
effects: [new DamageEffect(40)], effects: [new DamageEffect(3)],
power: 3, power: 4,
range: 900, range: 900,
}, "gatlinggun"); }, "gatlinggun");
charged_shot.configureCooldown(2, 2); charged_shot.configureCooldown(2, 2);
let long_range_missile = new TriggerAction("Long Range Missile", { let long_range_missile = new TriggerAction("Long Range Missile", {
effects: [new DamageEffect(27)], effects: [new DamageEffect(2)],
power: 4, power: 4,
range: 700, blast: 120, range: 700, blast: 120,
}, "submunitionmissile"); }, "submunitionmissile");
@ -40,8 +40,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 8), new AttributeEffect("precision", 8),
new AttributeEffect("maneuvrability", 0), new AttributeEffect("maneuvrability", 0),
new AttributeEffect("hull_capacity", 80), new AttributeEffect("hull_capacity", 2),
new AttributeEffect("shield_capacity", 20), new AttributeEffect("shield_capacity", 1),
new AttributeEffect("power_capacity", 8), new AttributeEffect("power_capacity", 8),
] ]
}, },
@ -86,8 +86,8 @@ module TK.SpaceTac {
} else if (level == 3) { } else if (level == 3) {
let shield_booster = new TriggerAction("Shield Booster", { let shield_booster = new TriggerAction("Shield Booster", {
effects: [ effects: [
new StickyEffect(new AttributeEffect("shield_capacity", 50), 2), new StickyEffect(new AttributeEffect("shield_capacity", 2), 2),
new ValueEffect("shield", 70), new ValueEffect("shield", 3),
], ],
power: 2 power: 2
}, "forcefield"); }, "forcefield");
@ -112,8 +112,8 @@ module TK.SpaceTac {
{ {
code: "Hard Coated Hull", code: "Hard Coated Hull",
description: "Improved metal coating of outer hull layers, making them more damage resistant", description: "Improved metal coating of outer hull layers, making them more damage resistant",
cost: 2, cost: 3,
effects: [new AttributeEffect("hull_capacity", 10)] effects: [new AttributeEffect("hull_capacity", 1)]
}, },
]; ];
} else { } else {

View file

@ -19,14 +19,14 @@ module TK.SpaceTac {
engine.configureCooldown(2, 1); engine.configureCooldown(2, 1);
let gatling = new TriggerAction("Gatling Gun", { let gatling = new TriggerAction("Gatling Gun", {
effects: [new DamageEffect(45)], effects: [new DamageEffect(2)],
power: 2, power: 2,
range: 200, range: 200,
}, "gatlinggun"); }, "gatlinggun");
gatling.configureCooldown(3, 1); gatling.configureCooldown(3, 1);
let shield_steal = new TriggerAction("Shield Steal", { let shield_steal = new TriggerAction("Shield Steal", {
effects: [new ValueTransferEffect("shield", -40)], effects: [new ValueTransferEffect("shield", -1)],
power: 1, power: 1,
blast: 300 blast: 300
}, "shieldtransfer"); }, "shieldtransfer");
@ -38,8 +38,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 3), new AttributeEffect("precision", 3),
new AttributeEffect("maneuvrability", 12), new AttributeEffect("maneuvrability", 12),
new AttributeEffect("hull_capacity", 30), new AttributeEffect("hull_capacity", 1),
new AttributeEffect("shield_capacity", 50), new AttributeEffect("shield_capacity", 2),
new AttributeEffect("power_capacity", 7), new AttributeEffect("power_capacity", 7),
] ]
}, },

View file

@ -17,7 +17,7 @@ module TK.SpaceTac {
}); });
let laser = new TriggerAction("Wingspan Laser", { let laser = new TriggerAction("Wingspan Laser", {
effects: [new DamageEffect(25)], effects: [new DamageEffect(1)],
power: 4, power: 4,
range: 250, angle: 140, range: 250, angle: 140,
}, "prokhorovlaser"); }, "prokhorovlaser");
@ -36,8 +36,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 5), new AttributeEffect("precision", 5),
new AttributeEffect("maneuvrability", 6), new AttributeEffect("maneuvrability", 6),
new AttributeEffect("hull_capacity", 70), new AttributeEffect("hull_capacity", 2),
new AttributeEffect("shield_capacity", 40), new AttributeEffect("shield_capacity", 1),
new AttributeEffect("power_capacity", 8), new AttributeEffect("power_capacity", 8),
] ]
}, },

View file

@ -17,7 +17,7 @@ module TK.SpaceTac {
}); });
let gatling = new TriggerAction("Gatling Gun", { let gatling = new TriggerAction("Gatling Gun", {
effects: [new DamageEffect(20)], effects: [new DamageEffect(1)],
power: 2, power: 2,
range: 200, range: 200,
}, "gatlinggun"); }, "gatlinggun");
@ -34,7 +34,7 @@ module TK.SpaceTac {
deploy_distance: 300, deploy_distance: 300,
drone_radius: 150, drone_radius: 150,
drone_effects: [ drone_effects: [
new ValueEffect("hull", undefined, undefined, undefined, 30) new ValueEffect("hull", undefined, undefined, undefined, 1)
] ]
}, "repairdrone"); }, "repairdrone");
@ -44,8 +44,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 3), new AttributeEffect("precision", 3),
new AttributeEffect("maneuvrability", 12), new AttributeEffect("maneuvrability", 12),
new AttributeEffect("hull_capacity", 30), new AttributeEffect("hull_capacity", 1),
new AttributeEffect("shield_capacity", 50), new AttributeEffect("shield_capacity", 2),
new AttributeEffect("power_capacity", 7), new AttributeEffect("power_capacity", 7),
] ]
}, },

View file

@ -17,14 +17,14 @@ module TK.SpaceTac {
}); });
let missile = new TriggerAction("SubMunition Missile", { let missile = new TriggerAction("SubMunition Missile", {
effects: [new DamageEffect(15)], effects: [new DamageEffect(1)],
power: 2, power: 2,
range: 250, blast: 150, range: 250, blast: 150,
}, "submunitionmissile"); }, "submunitionmissile");
missile.configureCooldown(2, 2); missile.configureCooldown(2, 2);
let gatling = new TriggerAction("Gatling Gun", { let gatling = new TriggerAction("Gatling Gun", {
effects: [new DamageEffect(15)], effects: [new DamageEffect(1)],
power: 1, power: 1,
range: 350, range: 350,
}, "gatlinggun"); }, "gatlinggun");

View file

@ -24,7 +24,7 @@ module TK.SpaceTac {
depleter.configureCooldown(1, 1); depleter.configureCooldown(1, 1);
let gatling = new TriggerAction("Gatling Gun", { let gatling = new TriggerAction("Gatling Gun", {
effects: [new DamageEffect(20)], effects: [new DamageEffect(1)],
power: 3, power: 3,
range: 300, range: 300,
}, "gatlinggun"); }, "gatlinggun");
@ -36,8 +36,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 0), new AttributeEffect("precision", 0),
new AttributeEffect("maneuvrability", 15), new AttributeEffect("maneuvrability", 15),
new AttributeEffect("hull_capacity", 25), new AttributeEffect("hull_capacity", 1),
new AttributeEffect("shield_capacity", 45), new AttributeEffect("shield_capacity", 2),
new AttributeEffect("power_capacity", 8), new AttributeEffect("power_capacity", 8),
] ]
}, },

View file

@ -18,7 +18,7 @@ module TK.SpaceTac {
}); });
let missile = new TriggerAction("SubMunition Missile", { let missile = new TriggerAction("SubMunition Missile", {
effects: [new DamageEffect(30)], effects: [new DamageEffect(1)],
power: 3, power: 3,
range: 400, blast: 120, range: 400, blast: 120,
}, "submunitionmissile"); }, "submunitionmissile");
@ -41,8 +41,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 9), new AttributeEffect("precision", 9),
new AttributeEffect("maneuvrability", 3), new AttributeEffect("maneuvrability", 3),
new AttributeEffect("hull_capacity", 40), new AttributeEffect("hull_capacity", 2),
new AttributeEffect("shield_capacity", 40), new AttributeEffect("shield_capacity", 2),
new AttributeEffect("power_capacity", 6), new AttributeEffect("power_capacity", 6),
] ]
}, },

View file

@ -17,14 +17,14 @@ module TK.SpaceTac {
}); });
let gatling = new TriggerAction("Gatling Gun", { let gatling = new TriggerAction("Gatling Gun", {
effects: [new DamageEffect(40)], effects: [new DamageEffect(2)],
power: 3, power: 3,
range: 400, range: 400,
}, "gatlinggun"); }, "gatlinggun");
gatling.configureCooldown(2, 2); gatling.configureCooldown(2, 2);
let laser = new TriggerAction("Prokhorov Laser", { let laser = new TriggerAction("Prokhorov Laser", {
effects: [new DamageEffect(35)], effects: [new DamageEffect(2)],
power: 4, power: 4,
range: 250, angle: 60, range: 250, angle: 60,
}, "prokhorovlaser"); }, "prokhorovlaser");
@ -35,8 +35,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 4), new AttributeEffect("precision", 4),
new AttributeEffect("maneuvrability", 3), new AttributeEffect("maneuvrability", 3),
new AttributeEffect("hull_capacity", 100), new AttributeEffect("hull_capacity", 3),
new AttributeEffect("shield_capacity", 20), new AttributeEffect("shield_capacity", 1),
new AttributeEffect("power_capacity", 9), new AttributeEffect("power_capacity", 9),
] ]
}, },

View file

@ -17,26 +17,26 @@ module TK.SpaceTac {
}); });
let gatling1 = new TriggerAction("Primary Gatling", { let gatling1 = new TriggerAction("Primary Gatling", {
effects: [new DamageEffect(22)], effects: [new DamageEffect(2)],
power: 2, range: 400 power: 2, range: 400
}, "gatlinggun"); }, "gatlinggun");
gatling1.configureCooldown(1, 1); gatling1.configureCooldown(1, 1);
let gatling2 = new TriggerAction("Secondary Gatling", { let gatling2 = new TriggerAction("Secondary Gatling", {
effects: [new DamageEffect(28)], effects: [new DamageEffect(1)],
power: 1, range: 200 power: 1, range: 200
}, "gatlinggun"); }, "gatlinggun");
gatling2.configureCooldown(1, 1); gatling2.configureCooldown(1, 1);
let missile = new TriggerAction("Diffuse Missiles", { let missile = new TriggerAction("Diffuse Missiles", {
effects: [new DamageEffect(19)], effects: [new DamageEffect(1)],
power: 2, power: 2,
range: 200, blast: 100, range: 200, blast: 100,
}, "submunitionmissile"); }, "submunitionmissile");
missile.configureCooldown(1, 1); missile.configureCooldown(1, 1);
let laser = new TriggerAction("Low-power Laser", { let laser = new TriggerAction("Low-power Laser", {
effects: [new DamageEffect(26)], effects: [new DamageEffect(1)],
power: 2, power: 2,
range: 200, angle: 30 range: 200, angle: 30
}, "prokhorovlaser"); }, "prokhorovlaser");
@ -53,8 +53,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 8), new AttributeEffect("precision", 8),
new AttributeEffect("maneuvrability", 3), new AttributeEffect("maneuvrability", 3),
new AttributeEffect("hull_capacity", 60), new AttributeEffect("hull_capacity", 2),
new AttributeEffect("shield_capacity", 40), new AttributeEffect("shield_capacity", 1),
new AttributeEffect("power_capacity", 11), new AttributeEffect("power_capacity", 11),
] ]
}, },

View file

@ -31,7 +31,7 @@ module TK.SpaceTac {
depleter.configureCooldown(1, 1); depleter.configureCooldown(1, 1);
let missile = new TriggerAction("Defense Missiles", { let missile = new TriggerAction("Defense Missiles", {
effects: [new DamageEffect(40)], effects: [new DamageEffect(2)],
power: 3, power: 3,
range: 200, blast: 180, range: 200, blast: 180,
}, "submunitionmissile"); }, "submunitionmissile");
@ -42,8 +42,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 3), new AttributeEffect("precision", 3),
new AttributeEffect("maneuvrability", 2), new AttributeEffect("maneuvrability", 2),
new AttributeEffect("hull_capacity", 40), new AttributeEffect("hull_capacity", 1),
new AttributeEffect("shield_capacity", 70), new AttributeEffect("shield_capacity", 2),
new AttributeEffect("power_capacity", 8), new AttributeEffect("power_capacity", 8),
] ]
}, },

View file

@ -17,13 +17,13 @@ module TK.SpaceTac {
}); });
let laser = new TriggerAction("Prokhorov Laser", { let laser = new TriggerAction("Prokhorov Laser", {
effects: [new DamageEffect(35)], effects: [new DamageEffect(2)],
power: 3, power: 3,
range: 250, angle: 80, range: 250, angle: 80,
}); });
let hull = new TriggerAction("Hull Shedding", { let hull = new TriggerAction("Hull Shedding", {
effects: [new ValueEffect("hull", 120)], effects: [new ValueEffect("hull", 2)],
power: 1 power: 1
}, "fractalhull"); }, "fractalhull");
hull.configureCooldown(1, 4); hull.configureCooldown(1, 4);
@ -40,8 +40,8 @@ module TK.SpaceTac {
effects: [ effects: [
new AttributeEffect("precision", 8), new AttributeEffect("precision", 8),
new AttributeEffect("maneuvrability", 5), new AttributeEffect("maneuvrability", 5),
new AttributeEffect("hull_capacity", 80), new AttributeEffect("hull_capacity", 2),
new AttributeEffect("shield_capacity", 15), new AttributeEffect("shield_capacity", 1),
new AttributeEffect("power_capacity", 7), new AttributeEffect("power_capacity", 7),
] ]
}, },

View file

@ -56,8 +56,8 @@ module TK.SpaceTac {
*/ */
protected getStandardUpgrades(level: number): ShipUpgrade[] { protected getStandardUpgrades(level: number): ShipUpgrade[] {
return [ return [
{ code: `Hull upgrade Lv${level - 1}`, effects: [new AttributeEffect("hull_capacity", 5)], cost: 2 }, { code: `Hull upgrade Lv${level - 1}`, effects: [new AttributeEffect("hull_capacity", 1)], cost: 3 },
{ code: `Shield upgrade Lv${level - 1}`, effects: [new AttributeEffect("shield_capacity", 5)], cost: 2 }, { code: `Shield upgrade Lv${level - 1}`, effects: [new AttributeEffect("shield_capacity", 1)], cost: 3 },
{ code: `Power upgrade Lv${level - 1}`, effects: [new AttributeEffect("power_capacity", 1)], cost: 3 }, { code: `Power upgrade Lv${level - 1}`, effects: [new AttributeEffect("power_capacity", 1)], cost: 3 },
]; ];
} }