aboutsummaryrefslogtreecommitdiff
path: root/enemies.lua
diff options
context:
space:
mode:
authorChris Bradley <1029chris@gmail.com>2022-02-20 13:35:09 -0800
committerChris Bradley <1029chris@gmail.com>2022-02-20 13:35:09 -0800
commit9a0edaff89cf43a6af67f1efea6ad56b458f1b60 (patch)
tree055e4e75d225890932bd4369663c705a3965d2c1 /enemies.lua
parentb3c60287bde5f1f7c4a892ee952b34df5e9824ac (diff)
Final boss thruster health properly scales with multiplayer
Diffstat (limited to 'enemies.lua')
-rw-r--r--enemies.lua4
1 files 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