mod - impact shear

mod - negative mass field: 80%->90% harm reduction while active, but 2x energy drain
mod - mobs fire nails when they die  (by Francois 👑 from discord)
This commit is contained in:
landgreen
2020-04-30 12:17:17 -07:00
parent a7faffa8a7
commit 9a719d3f2d
7 changed files with 172 additions and 188 deletions

View File

@@ -1461,9 +1461,16 @@ const mech = {
} else if ((keys[32] || game.mouseDownRight) && mech.fieldCDcycle < mech.cycle) { //push away
mech.grabPowerUp();
mech.lookForPickUp();
const DRAIN = 0.00035
let DRAIN = 0.00105;
if (mech.energy > DRAIN) {
mech.fieldDamageResistance = 0.2; // 1 - 0.8
if (b.isModHarmReduce) {
mech.fieldDamageResistance = 0.1; // 1 - 0.9
DRAIN = 0.0007 //2x energy drain
} else {
mech.fieldDamageResistance = 0.2; // 1 - 0.8
DRAIN = 0.00035
}
// mech.pushMobs360();
//repulse mobs