neutron bomb
acute stress mod removes 1/3 (was 1/2) of your energy zoom works with i and o now cell boss has double the chance to spilt on damage. After it splits, each daughter cell has the mother's reduced health new gun neutron bomb, persistent AoE damage (might still have issues sticking to objects properly) new mob neutron bomb stuns mobs
This commit is contained in:
@@ -972,7 +972,7 @@ const mobs = {
|
||||
this.removeConsBB();
|
||||
this.alive = false; //triggers mob removal in mob[i].replace(i)
|
||||
if (this.dropPowerUp) {
|
||||
if (b.isModEnergyLoss) mech.energy /= 2;
|
||||
if (b.isModEnergyLoss) mech.energy /= 3;
|
||||
powerUps.spawnRandomPowerUp(this.position.x, this.position.y, this.mass, radius);
|
||||
mech.lastKillCycle = mech.cycle; //tracks the last time a kill was made, mostly used in game.checks()
|
||||
if (Math.random() < b.modSporesOnDeath) {
|
||||
@@ -1034,7 +1034,8 @@ const mobs = {
|
||||
//if there are too many bodies don't turn into blocks to help performance
|
||||
if (this.leaveBody && body.length < 60 && this.mass < 100) {
|
||||
const len = body.length;
|
||||
body[len] = Matter.Bodies.fromVertices(this.position.x, this.position.y, this.vertices);
|
||||
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.setAngularVelocity(body[len], this.angularVelocity);
|
||||
body[len].collisionFilter.category = cat.body;
|
||||
|
||||
Reference in New Issue
Block a user