tech: pacifist - if you kill a mob lose 2% max health, but gain 2 tech at the end of every level
junk tech: bounce - you bounce, it's kinda annoying
This commit is contained in:
landgreen
2021-09-23 05:27:28 -07:00
parent 0561caf21a
commit 7c2c142b4c
5 changed files with 78 additions and 2 deletions

View File

@@ -108,6 +108,9 @@ const level = {
m.eyeFillColor = m.fieldMeterColor
simulation.makeTextLog(`tech.isFlipFlopOn <span class='color-symbol'>=</span> true`);
}
if (tech.removeMaxHealthOnKill > 0.01) {
for (let i = 0; i < 2; i++) powerUps.spawn(level.exit.x + 10 * (Math.random() - 0.5), level.exit.y - 100 + 10 * (Math.random() - 0.5), "tech", false)
}
},
custom() {},
customTopLayer() {},