added phase shield damamge mod

This commit is contained in:
lilgreenland
2020-03-04 10:34:02 -08:00
parent 7a9ef5dcd1
commit 0fe34c219a
4 changed files with 47 additions and 5 deletions

View File

@@ -1099,6 +1099,22 @@ const b = {
b.isModMissileField = false; b.isModMissileField = false;
} }
}, },
{
name: "quantum dissipation",
description: "<strong>phase decoherence field</strong> uses <strong class='color-f'>energy</strong> to <br><strong class='color-d'>damage</strong> unshielded <strong>mobs</strong> that you <strong>overlap</strong>",
maxCount: 1,
count: 0,
allowed() {
return mech.fieldUpgrades[mech.fieldMode].name === "phase decoherence field"
},
requires: "phase decoherence field",
effect() {
b.isModPhaseFieldDamage = true;
},
remove() {
b.isModPhaseFieldDamage = false;
}
},
], ],
removeMod(index) { removeMod(index) {
b.mods[index].remove(); b.mods[index].remove();

View File

@@ -15,7 +15,7 @@ const level = {
if (level.levelsCleared === 0) { if (level.levelsCleared === 0) {
// level.difficultyIncrease(9) // level.difficultyIncrease(9)
// b.giveGuns("wave beam") // b.giveGuns("wave beam")
// mech.setField("plasma torch") // mech.setField("phase decoherence field")
// b.giveMod("wave phase velocity"); // b.giveMod("wave phase velocity");
// b.giveMod("reflective cavity"); // b.giveMod("reflective cavity");

View File

@@ -1609,6 +1609,19 @@ const mech = {
mech.grabPowerUp(); mech.grabPowerUp();
mech.lookForPickUp(); mech.lookForPickUp();
if (mech.energy > 0.006 && b.isModPhaseFieldDamage) { //damage mobs inside the player
let inPlayer = Matter.Query.region(mob, player.bounds)
if (inPlayer.length > 0) {
for (let i = 0; i < inPlayer.length; i++) {
if (inPlayer[i].dropPowerUp && !inPlayer[i].isShielded) {
inPlayer[i].damage(0.2 * b.dmgScale);
mech.energy -= 0.002;
break;
}
}
}
}
} else { } else {
mech.fieldCDcycle = mech.cycle + 120; mech.fieldCDcycle = mech.cycle + 120;
} }

View File

@@ -1,5 +1,22 @@
************** TODO - n-gon ************** ************** TODO - n-gon **************
mod - blocking with nano-scale is more efficient
mod - time dilation - Quantum Recovery
Expending all your energy while using the field will
cause the player to go back in time to 3 seconds before the field was activated
resets ammo?, health, position, velocity
need to track player info in game.checks() in an array
put the array in the time field object
cause the player to go back in time when the field was first activated (easier then going back to 3 seconds before)
mod - phase decoherence - Atomic Reconfigure
While moving and using the field, any enemies you pass through are damaged
mod - grenade explosions stun enemies
stun - blind, slow, but increase gravity effects
use status effect code
bug getting stuck in crouch mode bug getting stuck in crouch mode
press T to see it visually press T to see it visually
happened twice happened twice
@@ -18,10 +35,6 @@ mod - get your next recursive mod 3 times
mod - vacuum bomb needs a mod mod - vacuum bomb needs a mod
mod - grenade needs a mod mod - grenade needs a mod
mod - time dilation field needs a mod
mod - phase decoherence field needs a mod
buff mod field radius for standing wave harmonics
settings - auto aim at nearest mob settings - auto aim at nearest mob
settings - custom keys binding settings - custom keys binding