field - wormhole now has a 10% chance to duplicate power ups
mod: erase - remove rerolled mods from the selection pool

custom now lets you reproduce builds that only occur in game when a mod/gun/field is removed is ejected
  example: in custom you can get time dilation only mods, then jump over to nano scale field and keep the crazy time dilation regen
  this might cause some problems, let me know if anything gets weird
This commit is contained in:
landgreen
2020-12-02 09:56:20 -08:00
parent 7d9bfbd8cc
commit c855508dda
6 changed files with 123 additions and 61 deletions

View File

@@ -275,7 +275,7 @@ const build = {
for (let i = 0, len = mod.mods.length; i < len; i++) {
const modID = document.getElementById("mod-" + i)
if (!mod.mods[i].isCustomHide) {
if (mod.mods[i].allowed() || isAllowed) {
if (mod.mods[i].allowed() || isAllowed || mod.mods[i].count > 0) {
if (mod.mods[i].count > 1) {
modID.innerHTML = `<div class="grid-title"><div class="circle-grid mod"></div> &nbsp; ${mod.mods[i].name} (${mod.mods[i].count}x)</div>${mod.mods[i].description}</div>`
} else {
@@ -480,7 +480,7 @@ document.getElementById("build-button").addEventListener("click", () => { //setu
for (let i = 0, len = mod.mods.length; i < len; i++) {
const modID = document.getElementById("mod-" + i)
if (!mod.mods[i].isCustomHide) {
if (mod.mods[i].allowed() || mod.mods[i].count > 1) {
if (mod.mods[i].allowed() || mod.mods[i].count > 0) {
if (mod.mods[i].count > 1) {
modID.innerHTML = `<div class="grid-title"><div class="circle-grid mod"></div> &nbsp; ${mod.mods[i].name} (${mod.mods[i].count}x)</div>${mod.mods[i].description}</div>`
} else {