added hornets and ablative synthesis, and ceramic plating

This commit is contained in:
landgreen
2019-11-10 19:07:39 -08:00
parent ef47202450
commit 0dd239add2
8 changed files with 237 additions and 171 deletions

View File

@@ -231,8 +231,10 @@ const mobs = {
// ctx.lineDashOffset = 6*(game.cycle % 215);
if (this.distanceToPlayer() < this.laserRange) {
//if (Math.random()>0.2 && this.seePlayer.yes && this.distanceToPlayer2()<800000) {
mech.damage(0.0003 * game.dmgScale);
if (mech.fieldMeter > 0.1) mech.fieldMeter -= 0.005
if (!b.AoEImmunity) {
mech.damage(0.0003 * game.dmgScale);
if (mech.fieldMeter > 0.1) mech.fieldMeter -= 0.005
}
ctx.beginPath();
ctx.moveTo(this.position.x, this.position.y);
ctx.lineTo(mech.pos.x, mech.pos.y);