changeset 234:3cbfa2c11dec

Fix instructions 69 and 71.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 31 Dec 2011 03:08:01 +0100
parents 067f6d9c562b
children e59bd7979ddc
files pytouhou/game/enemy.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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.