From 9a0edaff89cf43a6af67f1efea6ad56b458f1b60 Mon Sep 17 00:00:00 2001 From: Chris Bradley <1029chris@gmail.com> Date: Sun, 20 Feb 2022 13:35:09 -0800 Subject: Final boss thruster health properly scales with multiplayer --- enemies.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enemies.lua b/enemies.lua index cacac0d..3d5a509 100644 --- a/enemies.lua +++ b/enemies.lua @@ -546,7 +546,7 @@ function addmissileboss(x, y) --boss that shoots missiles!!! enemy.targety = rnd(96) end if enemy.shootcooldown < 0 then - enemy.shootcooldown = 0.6 + rnd(0.6) + enemy.shootcooldown = 0.6 + rnd(0.5) if enemy.x < canshootatx and players[targetplayer] ~= nil then local offsetmissleboss = 2 if currentwavetime%2 > 1 then offsetmissleboss = 30 end @@ -586,7 +586,7 @@ function addfinalboss() --THE FINAL BOSS!!!!!!! WOOOAAAHHHHHH!!!!!!!!!!!!!!!!!!! --thrusters that each fall off once the portal's health is 1/5th depleated function addportalthruster(x,y,id,isflipped) - local thrusterhealth = id*50-50 + local thrusterhealth = id*50*#players-50 if thrusterhealth < enemy.health or id == 1 then local spritethruster = 128 isflipped = isflipped or 1 -- cgit