added plasma field, removed electrostatic field, added throwing mod

This commit is contained in:
landgreen
2019-11-24 10:42:54 -08:00
parent b22d98e554
commit 9012b5a968
7 changed files with 278 additions and 229 deletions

View File

@@ -78,7 +78,7 @@ function mobCollisionChecks(event) {
for (let i = 0, j = pairs.length; i != j; i++) {
//body + player collision
if (mech.damageImmune < mech.cycle) {
if (game.isBodyDamage && mech.damageImmune < mech.cycle) {
if (pairs[i].bodyA === playerBody || pairs[i].bodyA === playerHead) {
collidePlayer(pairs[i].bodyB)
} else if (pairs[i].bodyB === playerBody || pairs[i].bodyB === playerHead) {