drone repair

tech: automatic - always fire, but get 2.5x ammo
  requires inertial frame

tech: drone repair - while drones are your active gun, drones respawn with a 50% chance to consume ammo
This commit is contained in:
landgreen
2021-04-02 10:53:44 -07:00
parent 94314f7a59
commit 45fb86189b
8 changed files with 480 additions and 282 deletions

View File

@@ -917,7 +917,6 @@ const mobs = {
this.torque -= 0.000004 * this.inertia;
} else if (this.noseLength > 1.5 && dot > 0 && dot < 0.03) {
//fire
console.log(dot)
spawn.bullet(this.vertices[1].x, this.vertices[1].y, 9 + Math.ceil(this.radius / 15));
const v = 15;
Matter.Body.setVelocity(mob[mob.length - 1], {