arsenal, generalist mod

This commit is contained in:
landgreen
2020-08-14 07:04:30 -07:00
parent 6bfc53d3be
commit 9ecbe9c479
6 changed files with 72 additions and 19 deletions

View File

@@ -1733,7 +1733,7 @@ const mech = {
// }
function drawField(radius) {
radius *= 0.9 + 2 * mech.energy * mech.energy;
radius *= 0.9 + 2.2 * mech.energy * mech.energy;
const rotate = mech.cycle * 0.005;
mech.fieldPhase += 0.5 - 0.5 * Math.sqrt(Math.max(0.01, Math.min(mech.energy, 1)));
const off1 = 1 + 0.06 * Math.sin(mech.fieldPhase);
@@ -1770,7 +1770,7 @@ const mech = {
// game.draw.bodyFill = "transparent"
// game.draw.bodyStroke = "transparent"
const DRAIN = 0.00014 + (mech.fireCDcycle > mech.cycle ? 0.007 : 0.001)
const DRAIN = 0.00013 + (mech.fireCDcycle > mech.cycle ? 0.005 : 0)
if (mech.energy > DRAIN) {
mech.energy -= DRAIN;
// if (mech.energy < 0.001) {