diff --git a/js/bullets.js b/js/bullets.js
index d88ab5a..7a809f2 100644
--- a/js/bullets.js
+++ b/js/bullets.js
@@ -276,7 +276,7 @@ const b = {
maxCount: 4,
count: 0,
effect() {
- b.modEnergySiphon += 0.18;
+ b.modEnergySiphon += 0.15;
mech.fieldMeter = mech.fieldEnergyMax
}
},
@@ -328,6 +328,15 @@ const b = {
mech.fieldMeter = mech.fieldEnergyMax
}
},
+ {
+ name: "quantum immortality", //28
+ description: "after dying, continue in an alternate reality
guns, ammo, field, and mods are randomized",
+ maxCount: 1,
+ count: 0,
+ effect() {
+ b.isModImmortal = true;
+ }
+ },
{
name: "+1 cardinality", //24
description: "one extra choice when selecting power ups",
@@ -359,15 +368,6 @@ const b = {
//have state is checked in mech.death()
}
},
- {
- name: "quantum immortality", //28
- description: "after dying, continue in an alternate reality
guns, ammo, field, and mods are randomized",
- maxCount: 1,
- count: 0,
- effect() {
- b.isModImmortal = true;
- }
- },
],
giveMod(index = 'random') {
if (index === 'random') {
diff --git a/js/index.js b/js/index.js
index 76d7220..6ae3026 100644
--- a/js/index.js
+++ b/js/index.js
@@ -2,12 +2,15 @@
/* TODO: *******************************************
*****************************************************
+show difficulty increase text in custom mode
+
+chart showing info about each mob type
+ can use css-grid chart like custom mod
+
add setting for random drops instead of choosing
-rework custom mode
+custom mode
custom mode grey out mods that are bad, like selection based mods
- enable recursive mods
- remove 5 mod cap on custom mode
change nail-bot's movement
maybe have it move in a circle around player?
@@ -158,12 +161,14 @@ const build = {
list: [],
choosePowerUp(who, index, type) {
if (type === "field" || type === "gun") {
+ let isDeselect = false
//if already click, toggle off
for (let i = 0; i < build.list.length; i++) {
if (build.list[i].index === index && build.list[i].type === type) {
build.list.splice(i, 1);
who.style.backgroundColor = "#fff"
- return
+ isDeselect = true
+ break
}
}
//check if trying to get a second field
@@ -175,11 +180,13 @@ const build = {
}
}
}
- who.style.backgroundColor = "#919ba8" //"#868f9a"
- build.list[build.list.length] = {
- who: who,
- index: index,
- type: type,
+ if (!isDeselect) {
+ who.style.backgroundColor = "#919ba8" //"#868f9a"
+ build.list[build.list.length] = {
+ who: who,
+ index: index,
+ type: type,
+ }
}
} else if (type === "mod") {
if (who.style.backgroundColor !== "#919ba8") who.style.backgroundColor = "#919ba8" //"#868f9a"
@@ -212,6 +219,8 @@ const build = {
who.innerHTML = `