bug fixes

This commit is contained in:
landgreen
2020-08-10 05:27:33 -07:00
parent 0c4caa186a
commit e09a661953
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {