waste heat recovery

mod: electric reactive armor - reduce harm from explosions by 6% for every 10 energy
mod: waste heat recovery - laser damage grows to 400%, but you start to eject your health as a heal power up

new community level by Francois:  house
This commit is contained in:
landgreen
2020-09-13 19:14:33 -07:00
parent 5c2319cc75
commit cab6feda13
11 changed files with 750 additions and 556 deletions

View File

@@ -297,6 +297,13 @@ const mobs = {
// this.locatePlayer();
// }
// },
alwaysSeePlayer() {
if (!mech.isStealth) {
this.seePlayer.recall = true;
this.seePlayer.position.x = player.position.x;
this.seePlayer.position.y = player.position.y;
}
},
seePlayerCheck() {
if (!(game.cycle % this.seePlayerFreq)) {
if (
@@ -1051,7 +1058,7 @@ const mobs = {
} else if (Math.random() < 0.3 && !mod.isSuperDeterminism) {
type = "reroll"
}
for (let i = 0, len = Math.ceil(2.8 * Math.random()); i < len; i++) {
for (let i = 0, len = Math.ceil(2 * Math.random()); i < len; i++) {
powerUps.spawn(this.position.x, this.position.y, type);
}
}