# HG changeset patch # User Emmanuel Gil Peyrot # Date 1326647365 -3600 # Node ID fb3a263213d1e4a3645b37cc4452a286e5517cd7 # Parent cb329dca4758b42c079e562a4f637944e7eda540 Fix instruction 70 to always fire to the right. diff --git a/pytouhou/game/enemy.py b/pytouhou/game/enemy.py --- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -132,7 +132,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 and bullets_per_shot % 2 or type_ == 69 and not bullets_per_shot % 2: + if type_ == 71 and bullets_per_shot % 2 or type_ in (69, 70) and not bullets_per_shot % 2: launch_angle += pi / bullets_per_shot if type_ != 75: launch_angle -= angle * (bullets_per_shot - 1) / 2.