mod - microstates

mod - many worlds: 100% chance on choosing a power up to spawn a reroll if you have no rerolls
mod - microstates: +7% damage for every 10 active bullets
  (requires mod: Lorentzian topology)
mod - laser diode: laser, pulse, and laser-bots use 37% less energy
25% increase in difficulty scaling  (level 10 should now have the difficulty of level 12)
  effects: player damage, mod damage, mob acceleration, mob reaction time, mob cooldown time
This commit is contained in:
landgreen
2020-05-17 19:23:24 -07:00
parent 0ff8021ea8
commit 4a355caa60
10 changed files with 151 additions and 42 deletions

View File

@@ -1089,7 +1089,7 @@ const mobs = {
const len = body.length;
const v = Matter.Vertices.hull(Matter.Vertices.clockwiseSort(this.vertices)) //might help with vertex collision issue, not sure
body[len] = Matter.Bodies.fromVertices(this.position.x, this.position.y, v);
Matter.Body.setVelocity(body[len], this.velocity);
Matter.Body.setVelocity(body[len], Vector.mult(this.velocity, 0.5));
Matter.Body.setAngularVelocity(body[len], this.angularVelocity);
body[len].collisionFilter.category = cat.body;
body[len].collisionFilter.mask = cat.player | cat.map | cat.body | cat.bullet | cat.mob | cat.mobBullet;