some changes to highrise level

boost bug fix
MACHO bug fix
This commit is contained in:
landgreen
2021-06-02 05:41:15 -07:00
parent 05420af818
commit e83b84f1fb
7 changed files with 111 additions and 121 deletions

View File

@@ -706,7 +706,7 @@ const powerUps = {
powerUps.spawn(x, y, "ammo", false);
}
},
addRerollToLevel() { //add a random power up to a location that has a mob, mostly used to give each level one randomly placed research
addResearchToLevel() { //add a random power up to a location that has a mob, mostly used to give each level one randomly placed research
if (mob.length && Math.random() < 0.8) { // 80% chance
const index = Math.floor(Math.random() * mob.length)
powerUps.spawn(mob[index].position.x, mob[index].position.y, "research");