diff pytouhou/games/eosd.py @ 312:8d1768fa4cbb

Fix Remilia's “Red Magic”.
author Thibaut Girka <thib@sitedethib.com>
date Wed, 14 Mar 2012 19:05:23 +0100
parents 5492472963b0
children 61adb5453e46
line wrap: on
line diff
--- a/pytouhou/games/eosd.py
+++ b/pytouhou/games/eosd.py
@@ -35,20 +35,30 @@ class EoSDGame(Game):
         if not bullet_types:
             etama3 = resource_loader.get_anm_wrapper(('etama3.anm',))
             etama4 = resource_loader.get_anm_wrapper(('etama4.anm',))
-            bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=4),
-                            BulletType(etama3, 1, 12, 17, 18, 19, hitbox_size=6),
-                            BulletType(etama3, 2, 12, 17, 18, 19, hitbox_size=4),
-                            BulletType(etama3, 3, 12, 17, 18, 19, hitbox_size=6),
-                            BulletType(etama3, 4, 12, 17, 18, 19, hitbox_size=5),
-                            BulletType(etama3, 5, 12, 17, 18, 19, hitbox_size=4),
+            bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=4,
+                                       type_id=0),
+                            BulletType(etama3, 1, 12, 17, 18, 19, hitbox_size=6,
+                                       type_id=1),
+                            BulletType(etama3, 2, 12, 17, 18, 19, hitbox_size=4,
+                                       type_id=2),
+                            BulletType(etama3, 3, 12, 17, 18, 19, hitbox_size=6,
+                                       type_id=3),
+                            BulletType(etama3, 4, 12, 17, 18, 19, hitbox_size=5,
+                                       type_id=4),
+                            BulletType(etama3, 5, 12, 17, 18, 19, hitbox_size=4,
+                                       type_id=5),
                             BulletType(etama3, 6, 13, 20, 20, 20, hitbox_size=16,
-                                       launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0)),
+                                       launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0),
+                                       type_id=6),
                             BulletType(etama3, 7, 13, 20, 20, 20, hitbox_size=11,
-                                       launch_anim_offsets=(1,)*28),
+                                       launch_anim_offsets=(1,)*28,
+                                       type_id=7),
                             BulletType(etama3, 8, 13, 20, 20, 20, hitbox_size=9,
-                                       launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0)),
+                                       launch_anim_offsets=(0, 1, 1, 2, 2, 3, 4, 0),
+                                       type_id=8),
                             BulletType(etama4, 0, 1, 2, 2, 2, hitbox_size=32,
-                                       launch_anim_offsets=(0, 1, 2, 3, 4, 5, 6, 7, 8))]
+                                       launch_anim_offsets=(0, 1, 2, 3, 4, 5, 6, 7, 8),
+                                       type_id=9)]
 
         if not laser_types:
             laser_types = [LaserType(etama3, 9),