explosions mods rework
mod: recursion - gives missiles a 30% chance to spawn a larger missile when they explode mod: electric reactive armor - immune to harm from explosions while energy is full (was 80%) mod: ammonium nitrate - explosions are 60% bigger, but they do 300% more damage to you mod: trinitrotoluene - explosions are 50% smaller and do 71% more damage
This commit is contained in:
26
js/spawn.js
26
js/spawn.js
@@ -1146,18 +1146,20 @@ const spawn = {
|
||||
});
|
||||
Matter.Body.setPosition(this, this.startingPosition);
|
||||
|
||||
ctx.beginPath();
|
||||
this.laser(this.vertices[0], this.angle + Math.PI / 3);
|
||||
this.laser(this.vertices[1], this.angle + Math.PI);
|
||||
this.laser(this.vertices[2], this.angle - Math.PI / 3);
|
||||
ctx.strokeStyle = "#50f";
|
||||
ctx.lineWidth = 1.5;
|
||||
ctx.setLineDash([70 + 300 * Math.random(), 55 * Math.random()]);
|
||||
ctx.stroke(); // Draw it
|
||||
ctx.setLineDash([0, 0]);
|
||||
ctx.lineWidth = 20;
|
||||
ctx.strokeStyle = "rgba(80,0,255,0.07)";
|
||||
ctx.stroke(); // Draw it
|
||||
if (!this.isStunned) {
|
||||
ctx.beginPath();
|
||||
this.laser(this.vertices[0], this.angle + Math.PI / 3);
|
||||
this.laser(this.vertices[1], this.angle + Math.PI);
|
||||
this.laser(this.vertices[2], this.angle - Math.PI / 3);
|
||||
ctx.strokeStyle = "#50f";
|
||||
ctx.lineWidth = 1.5;
|
||||
ctx.setLineDash([70 + 300 * Math.random(), 55 * Math.random()]);
|
||||
ctx.stroke(); // Draw it
|
||||
ctx.setLineDash([0, 0]);
|
||||
ctx.lineWidth = 20;
|
||||
ctx.strokeStyle = "rgba(80,0,255,0.07)";
|
||||
ctx.stroke(); // Draw it
|
||||
}
|
||||
// this.laser(this.vertices[2], this.angle + Math.PI / 3);
|
||||
this.checkStatus();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user