From f32b4b392f86349fa7573b42487a184a0d9374cb Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 3 Feb 2019 17:33:33 +0000 Subject: [PATCH] Maybe finished missile launcher now? --- src/Bullet.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Bullet.cpp b/src/Bullet.cpp index d22cd7a7..88668c52 100644 --- a/src/Bullet.cpp +++ b/src/Bullet.cpp @@ -744,7 +744,25 @@ void ActBullet_Bom(BULLET *bul, int level) bul->cond = 0; break; } - + + if (level == 1) + { + if (bul->act_wait % 3 == 0) + SetDestroyNpCharUp(bul->x + (Random(-16, 16) * 0x200), bul->y + (Random(-16, 16) * 0x200), bul->enemyXL, 2); + } + else if (level == 2) + { + if (bul->act_wait % 3 == 0) + SetDestroyNpCharUp(bul->x + (Random(-32, 32) * 0x200), bul->y + (Random(-32, 32) * 0x200), bul->enemyXL, 2); + } + else if (level == 3) + { + if (bul->act_wait % 3 == 0) + SetDestroyNpCharUp(bul->x + (Random(-40, 40) * 0x200), bul->y + (Random(-40, 40) * 0x200), bul->enemyXL, 2); + } + + if (--bul->act_wait < 0) + bul->cond = 0; } void ActBullet()