Mercurial > touhou
diff pytouhou/game/enemy.py @ 234:3cbfa2c11dec
Fix instructions 69 and 71.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 31 Dec 2011 03:08:01 +0100 |
parents | 0595315d3880 |
children | 1d3c8c7473a2 |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -125,7 +125,7 @@ class Enemy(object): launch_angle += self.get_player_angle(player, launch_pos) if type_ in (69, 70, 71, 74): angle = 2. * pi / bullets_per_shot - if type_ == 71: + if type_ == 71 and bullets_per_shot % 2 or type_ == 69 and not bullets_per_shot % 2: launch_angle += pi / bullets_per_shot if type_ != 75: launch_angle -= angle * (bullets_per_shot - 1) / 2.