crystallizer

random tech spawn chance now scales with levels clear (zero chance after level 10)
  (it used to scale with total tech acquired, but you probably will not even notice this change)

tech: crystallizer - mods produce ice-IX crystals when they die

tech pulse and tech slow light now work together for laser beam,
 (I think it is pretty dangerous to try them together though)
This commit is contained in:
landgreen
2021-05-08 07:35:25 -07:00
parent 59b124392c
commit ce169ba860
8 changed files with 104 additions and 65 deletions

View File

@@ -1053,6 +1053,11 @@ const mobs = {
this.alive = false; //triggers mob removal in mob[i].replace(i)
if (this.isDropPowerUp) {
if (tech.iceIXOnDeath && this.isSlowed && Math.random() > 0.5) {
for (let i = 0, len = 3 * Math.sqrt(this.mass) * tech.iceIXOnDeath; i < len; i++) b.iceIX(3, Math.random() * 2 * Math.PI, this.position)
}
if (tech.deathSpawnsFromBoss || (tech.deathSpawns && this.isDropPowerUp)) {
const spawns = tech.deathSpawns + tech.deathSpawnsFromBoss
const len = Math.min(12, spawns * Math.ceil(Math.random() * simulation.difficulty * spawns))