# HG changeset patch # User Thibaut Girka # Date 1315347431 -7200 # Node ID 732c64662f8771fec8f87f351e7146bc65ea011f # Parent e544f9a7966d837018b033fb4f3c1d18a597a427 Minor changes diff --git a/pytouhou/formats/ecl.py b/pytouhou/formats/ecl.py --- a/pytouhou/formats/ecl.py +++ b/pytouhou/formats/ecl.py @@ -12,7 +12,7 @@ ## GNU General Public License for more details. ## - +import struct from struct import pack, unpack, calcsize from pytouhou.utils.helpers import read_string @@ -133,10 +133,10 @@ class ECL(object): 134: ('', None), 135: ('i', None)} #TODO - _main_instructions = {0: ('ffIhHHH', 'spawn_enemy'), - 2: ('ffIhHHH', 'spawn_enemy_mirrored'), - 4: ('ffIhHHH', 'spawn_enemy_random'), - 6: ('ffIhHHH', 'spawn_enemy_mirrored_random'), + _main_instructions = {0: ('fffhHHH', 'spawn_enemy'), + 2: ('fffhHHH', 'spawn_enemy_mirrored'), + 4: ('fffhHHH', 'spawn_enemy_random'), + 6: ('fffhHHH', 'spawn_enemy_mirrored_random'), 8: ('', None), 9: ('', None), 10: ('II', None), @@ -245,7 +245,11 @@ class ECL(object): format = '