field harmincs adjustments
This commit is contained in:
@@ -707,6 +707,7 @@ const mech = {
|
||||
if (this.onGround && !this.crouch) this.yOffGoal = this.yOffWhen.stand;
|
||||
},
|
||||
drawHold(target, stroke = true) {
|
||||
if (target) {
|
||||
const eye = 15;
|
||||
const len = target.vertices.length - 1;
|
||||
ctx.fillStyle = "rgba(110,170,200," + (0.2 + 0.4 * Math.random()) + ")";
|
||||
@@ -732,6 +733,7 @@ const mech = {
|
||||
ctx.fill();
|
||||
if (stroke) ctx.stroke();
|
||||
}
|
||||
}
|
||||
},
|
||||
holding() {
|
||||
this.fieldMeter -= this.fieldRegen;
|
||||
@@ -1400,14 +1402,15 @@ const mech = {
|
||||
mech.fieldMode = 4;
|
||||
mech.fieldText();
|
||||
mech.setHoldDefaults();
|
||||
mech.fieldRegen *= 0.3;
|
||||
mech.fieldRegen *= 0.5;
|
||||
mech.fieldShieldingScale = 1.5;
|
||||
|
||||
mech.hold = function () {
|
||||
if (mech.isHolding) {
|
||||
mech.drawHold(mech.holdingTarget);
|
||||
mech.holding();
|
||||
mech.throw();
|
||||
} else if ((keys[32] || game.mouseDownRight && mech.fieldMeter > 0.1)) { //not hold but field button is pressed
|
||||
} else if ((keys[32] || game.mouseDownRight && mech.fieldMeter > 0)) { //not hold but field button is pressed
|
||||
mech.grabPowerUp();
|
||||
mech.lookForPickUp(180);
|
||||
} else if (mech.holdingTarget && mech.fireCDcycle < mech.cycle) { //holding, but field button is released
|
||||
@@ -1431,7 +1434,7 @@ const mech = {
|
||||
ctx.arc(mech.pos.x, mech.pos.y, grabRange3, 0, 2 * Math.PI);
|
||||
ctx.fill();
|
||||
mech.pushMobs360(netGrabRange);
|
||||
mech.pushBody360(netGrabRange);
|
||||
// mech.pushBody360(netGrabRange); //can't throw block when pushhing blocks away
|
||||
}
|
||||
mech.drawFieldMeter()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user