checking for NaN health bug

mod - spores follow player
mod - nails do 66% extra damage over 6 seconds
working on pilot wave field
This commit is contained in:
landgreen
2020-04-10 12:21:13 -07:00
parent 5be4c80ccf
commit c57ae9d7fd
8 changed files with 282 additions and 159 deletions

View File

@@ -537,6 +537,14 @@ function cycle() {
}
game.loop();
if (isNaN(mech.health)) {
console.log(`mech.health = ${mech.health}`)
game.paused = true;
game.replaceTextLog = true;
build.pauseGrid()
document.body.style.cursor = "auto";
alert("health is NaN, please report this bug to the discord \n https://discordapp.com/invite/2eC9pgJ")
}
// for (let i = 0, len = loop.length; i < len; i++) {
// loop[i]()
// }