diff options
author | yenatch <yenatch@gmail.com> | 2014-02-05 22:57:39 -0500 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-02-05 22:57:39 -0500 |
commit | 6a2a47074e57d177aec7504fb22f223f19359dbf (patch) | |
tree | 5ba0c0d55215d97506b31abcde6bcc7dbb89de49 | |
parent | fced98033780e8f66072e843da577f409414590e (diff) |
audio: Crystal sfx are in a separate clump
-rw-r--r-- | pokemontools/audio.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pokemontools/audio.py b/pokemontools/audio.py index 21d90ae..9b81128 100644 --- a/pokemontools/audio.py +++ b/pokemontools/audio.py @@ -432,7 +432,13 @@ def generate_crystal_music_pointers(): def dump_crystal_sfx(): from sfx_names import sfx_names - export_sound_clump(0xe927c, sfx_names, os.path.join(conf.path, 'audio', 'sfx.asm'), 'Sfx_', sfx=True) + first_crystal_sfx = 190 + crystal_sfx_names = sfx_names[first_crystal_sfx:] + main_sfx_names = sfx_names[:first_crystal_sfx] + sfx_pointers_address = 0xe927c + crystal_sfx_pointers_address = sfx_pointers_address + first_crystal_sfx * 3 + export_sound_clump(sfx_pointers_address, main_sfx_names, os.path.join(conf.path, 'audio', 'sfx.asm'), 'Sfx_', sfx=True) + export_sound_clump(crystal_sfx_pointers_address, crystal_sfx_names, os.path.join(conf.path, 'audio', 'sfx_crystal.asm'), 'Sfx_', sfx=True) def generate_crystal_sfx_pointers(): from sfx_names import sfx_names |