ref: f32b4b392f86349fa7573b42487a184a0d9374cb
parent: 0b59c55fa93772626bceff76667de5b2486632e8
author: Clownacy <[email protected]>
date: Sun Feb 3 12:33:33 EST 2019
Maybe finished missile launcher now?
--- a/src/Bullet.cpp
+++ b/src/Bullet.cpp
@@ -744,7 +744,25 @@
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()