mass drop bug
drones last 2.5s longer
pulse uses more energy %
This commit is contained in:
lilgreenland
2020-01-06 13:56:49 -08:00
parent cd4d75acdc
commit ea328a764b
2 changed files with 8 additions and 10 deletions

View File

@@ -696,12 +696,10 @@ const mech = {
if (mech.isHolding) {
mech.isHolding = false;
mech.throwCharge = 0;
if (mech.holdingTarget) {
mech.definePlayerMass()
mech.holdingTarget.collisionFilter.category = cat.body;
mech.holdingTarget.collisionFilter.mask = cat.player | cat.map | cat.body | cat.bullet | cat.mob | cat.mobBullet
mech.holdingTarget = null;
}
mech.definePlayerMass()
mech.holdingTarget = null;
mech.holdingTarget.collisionFilter.category = cat.body;
mech.holdingTarget.collisionFilter.mask = cat.player | cat.map | cat.body | cat.bullet | cat.mob | cat.mobBullet
}
},
definePlayerMass(mass = mech.defaultMass) {