pressure wave balance

pressure wave balance - slightly more ammo
gamma-ray laser does 200% damage and 250% more drain  (was 150% damage, 200% drain)
gamma ray now doesn't lock out other laser tech
hidden variable now gives 15, not 30 heals
This commit is contained in:
landgreen
2021-07-08 06:22:20 -07:00
parent d346afb2d0
commit cc813bc479
5 changed files with 31 additions and 33 deletions

View File

@@ -488,7 +488,10 @@ const powerUps = {
if (tech.isBanish) { //remove banished tech from last selection
for (let i = 0; i < powerUps.tech.banishLog.length; i++) {
for (let j = 0; j < options.length; j++) {
if (powerUps.tech.banishLog[i] === options[j]) options.splice(j, 1)
if (powerUps.tech.banishLog[i] === options[j]) {
options.splice(j, 1)
break
}
}
}
} else { //remove repeats from last selection
@@ -497,7 +500,10 @@ const powerUps = {
for (let i = 0; i < totalChoices; i++) { //repeat for each choice from the last selection
if (options.length > totalChoices) {
for (let j = 0, len = options.length; j < len; j++) {
if (powerUps.tech.choiceLog[powerUps.tech.choiceLog.length - 1 - i] === options[j]) options.splice(j, 1) //remove previous choice from option pool
if (powerUps.tech.choiceLog[powerUps.tech.choiceLog.length - 1 - i] === options[j]) {
options.splice(j, 1) //remove previous choice from option pool
break;
}
}
}
}