negative mass field mod

This commit is contained in:
landgreen
2020-02-28 06:48:49 -08:00
parent c9898ad53f
commit 6f6131237a
4 changed files with 32 additions and 7 deletions

View File

@@ -1442,6 +1442,15 @@ const mech = {
ctx.globalCompositeOperation = "difference";
ctx.fill();
ctx.globalCompositeOperation = "source-over";
if (b.isModHawking) {
for (let i = 0, len = mob.length; i < len; i++) {
if (Vector.magnitude(Vector.sub(mob[i].position, mech.pos)) < this.fieldDrawRadius) {
}
}
}
} else {
//trigger cool down
mech.fieldCDcycle = mech.cycle + 120;