needles, and diffraction

diffraction grating only gains 1 extra beam, but no longer gets a damage reduction
  also the beam split is wider than before

needle move twice as fast (was 50, now is 100)
  and they are 50% longer and 25% thinner
  damage was improved about 20%
  delay between each needle in a volley is slightly longer
This commit is contained in:
landgreen
2021-04-20 06:36:22 -07:00
parent 43568616fd
commit b50e2ba9ce
8 changed files with 59 additions and 91 deletions

View File

@@ -1198,7 +1198,11 @@ const mobs = {
}
Matter.World.remove(engine.world, this);
mob.splice(i, 1);
if (tech.isMobBlockFling) b.targetedBlock(body[body.length - 1], true)
if (tech.isMobBlockFling) {
const who = body[body.length - 1]
b.targetedBlock(who, true)
Matter.Body.setAngularVelocity(who, (0.5 + 0.2 * Math.random()) * (Math.random() < 0.5 ? -1 : 1));
}
} else {
Matter.World.remove(engine.world, this);
mob.splice(i, 1);