diff --git a/js/bullet.js b/js/bullet.js index e7e3408..749cc2f 100644 --- a/js/bullet.js +++ b/js/bullet.js @@ -23,7 +23,7 @@ const b = { } else { if (mod.isAmmoFromHealth) { if (mech.health > 2 * mod.isAmmoFromHealth * mech.maxHealth) { - mech.damage(mod.isAmmoFromHealth * mech.maxHealth); + mech.damage(mod.isAmmoFromHealth * mech.maxHealth / mech.harmReduction()); powerUps.spawn(mech.pos.x, mech.pos.y, "ammo"); if (Math.random() < mod.bayesian) powerUps.spawn(mech.pos.x, mech.pos.y, "ammo"); } else { diff --git a/js/index.js b/js/index.js index faa2712..945d40b 100644 --- a/js/index.js +++ b/js/index.js @@ -250,7 +250,7 @@ const build = { for (let i = 0, len = mod.mods.length; i < len; i++) { const modID = document.getElementById("mod-" + i) - if (mod.mods[i].allowed()) { + if (mod.mods[i].allowed() || isAllowed) { if (mod.mods[i].count > 1) { modID.innerHTML = `
  ${mod.mods[i].name} (${mod.mods[i].count}x)
${mod.mods[i].description}` } else { @@ -267,7 +267,7 @@ const build = { modID.classList.add("build-grid-disabled"); modID.onclick = null } - if (mod.mods[i].count > 0 && !isAllowed) { + if (mod.mods[i].count > 0) { mod.removeMod(i) } if (modID.classList.contains("build-mod-selected")) {