This commit is contained in:
landgreen
2022-07-02 18:14:51 -07:00
parent 59085ef2af
commit fc12f85f17
2 changed files with 25 additions and 25 deletions

View File

@@ -2390,7 +2390,7 @@ const b = {
tech.laserCrit && !best.who.shield && tech.laserCrit && !best.who.shield &&
Vector.dot(Vector.normalise(Vector.sub(best.who.position, path[path.length - 1])), Vector.normalise(Vector.sub(path[path.length - 1], path[path.length - 2]))) > 0.99 - 0.6 / best.who.radius Vector.dot(Vector.normalise(Vector.sub(best.who.position, path[path.length - 1])), Vector.normalise(Vector.sub(path[path.length - 1], path[path.length - 2]))) > 0.99 - 0.6 / best.who.radius
) { ) {
damage *= 2 damage *= 1 + tech.laserCrit
simulation.drawList.push({ //add dmg to draw queue simulation.drawList.push({ //add dmg to draw queue
x: path[path.length - 1].x, x: path[path.length - 1].x,
y: path[path.length - 1].y, y: path[path.length - 1].y,

View File

@@ -6177,7 +6177,7 @@ const tech = {
{ {
name: "iridescence", name: "iridescence",
// description: "if a <strong class='color-laser'>laser</strong> hits a mob at a low angle of illumination<br><strong>+66%</strong> <strong class='color-laser'>laser</strong> <strong class='color-d'>damage</strong>", // description: "if a <strong class='color-laser'>laser</strong> hits a mob at a low angle of illumination<br><strong>+66%</strong> <strong class='color-laser'>laser</strong> <strong class='color-d'>damage</strong>",
description: "if mobs are struck near their <strong>center</strong><br><strong>+66%</strong> <strong class='color-laser'>laser</strong> <strong class='color-d'>damage</strong>", description: "if mobs are struck near their <strong>center</strong><br><strong>+88%</strong> <strong class='color-laser'>laser</strong> <strong class='color-d'>damage</strong>",
isGunTech: true, isGunTech: true,
maxCount: 3, maxCount: 3,
count: 0, count: 0,
@@ -6188,17 +6188,17 @@ const tech = {
}, },
requires: "laser, not pulse", requires: "laser, not pulse",
effect() { effect() {
tech.laserCrit = true; tech.laserCrit += 0.88;
}, },
remove() { remove() {
tech.laserCrit = false; tech.laserCrit = 0;
} }
}, },
{ {
name: "lens", name: "lens",
description: "if directed through a revolving <strong><span style='font-size: 125%;'>π</span> / 4</strong> circular arc<br><strong>+150%</strong> <strong class='color-laser'>laser</strong> gun <strong class='color-d'>damage</strong>", description: "if directed through a revolving <strong>+<span style='font-size: 125%;'>π</span> / 4</strong> circular arc<br><strong>+150%</strong> <strong class='color-laser'>laser</strong> gun <strong class='color-d'>damage</strong>",
isGunTech: true, isGunTech: true,
maxCount: 1, maxCount: 3,
count: 0, count: 0,
frequency: 2, frequency: 2,
frequencyDefault: 2, frequencyDefault: 2,
@@ -6208,32 +6208,32 @@ const tech = {
requires: "laser", requires: "laser",
effect() { effect() {
tech.isLaserLens = true tech.isLaserLens = true
b.guns[11].arcRange += 0.78
b.guns[11].chooseFireMethod() b.guns[11].chooseFireMethod()
}, },
remove() { remove() {
tech.isLaserLens = false tech.isLaserLens = false
b.guns[11].arcRange = 0
b.guns[11].chooseFireMethod() b.guns[11].chooseFireMethod()
} }
}, },
{ // {
name: "arc length", // name: "arc length",
description: "increase the circular arc of your <strong class='color-laser'>laser</strong> <strong>lens</strong><br>by <strong>+<span style='font-size: 125%;'>π</span> / 4</strong>", // description: "increase the circular arc of your <strong class='color-laser'>laser</strong> <strong>lens</strong><br>by <strong>+<span style='font-size: 125%;'>π</span> / 4</strong>",
isGunTech: true, // isGunTech: true,
maxCount: 3, // maxCount: 3,
count: 0, // count: 0,
frequency: 2, // frequency: 2,
frequencyDefault: 2, // frequencyDefault: 2,
allowed() { // allowed() {
return tech.isLaserLens && tech.haveGunCheck("laser") // return tech.isLaserLens && tech.haveGunCheck("laser")
}, // },
requires: "laser gun, lens", // requires: "laser gun, lens",
effect() { // effect() {
b.guns[11].arcRange += 0.78 // },
}, // remove() {
remove() { // }
b.guns[11].arcRange = 0.78 // },
}
},
{ {
name: "specular reflection", name: "specular reflection",
description: "<strong>+2</strong> <strong class='color-laser'>laser</strong> beam reflections", description: "<strong>+2</strong> <strong class='color-laser'>laser</strong> beam reflections",