mass-energy mod rework

This commit is contained in:
landgreen
2020-02-10 04:42:38 -08:00
parent b6604643db
commit c9dba2ac1c
5 changed files with 38 additions and 23 deletions

View File

@@ -503,7 +503,7 @@ const spawn = {
ctx.fill();
//when player is inside event horizon
if (Vector.magnitude(Vector.sub(this.position, player.position)) < eventHorizon && !mech.isStealth) {
if (Vector.magnitude(Vector.sub(this.position, player.position)) < eventHorizon) {
if (mech.fieldMeter > 0.1) {
mech.fieldMeter -= 0.005
} else {
@@ -601,7 +601,7 @@ const spawn = {
ctx.fillStyle = "rgba(0,0,0,0.05)";
ctx.fill();
//when player is inside event horizon
if (Vector.magnitude(Vector.sub(this.position, player.position)) < eventHorizon && !mech.isStealth) {
if (Vector.magnitude(Vector.sub(this.position, player.position)) < eventHorizon) {
if (mech.fieldMeter > 0.1) {
mech.fieldMeter -= 0.0075
} else {