diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 16:03:40 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-09-01 16:03:40 -0500 |
commit | abd5264a9db65c55c230aed0aeeb0805f7204680 (patch) | |
tree | 2609f725513e153abedff0d01f3fba79867b0423 | |
parent | 7b98e2188989e4b11aa9e4c6dcab5fefc7363b35 (diff) |
import syntax in gfx.py
-rw-r--r-- | pokemontools/gfx.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pokemontools/gfx.py b/pokemontools/gfx.py index 6d9614f..cedbced 100644 --- a/pokemontools/gfx.py +++ b/pokemontools/gfx.py @@ -5,13 +5,12 @@ import sys import png from math import sqrt, floor, ceil -from crystal import load_rom - -from pokemon_constants import pokemon_constants -from trainers import trainer_group_names +import crystal +import pokemon_constants +import trainers if __name__ != "__main__": - rom = load_rom() + rom = crystal.load_rom() def mkdir_p(path): """ @@ -1122,7 +1121,7 @@ def dump_monster_pals(): pal_length = 0x4 for mon in range(251): - name = pokemon_constants[mon+1].title().replace('_','') + name = pokemon_constants.pokemon_constants[mon+1].title().replace('_','') num = str(mon+1).zfill(3) dir = 'gfx/pics/'+num+'/' @@ -1160,7 +1159,7 @@ def dump_trainer_pals(): pal_length = 0x4 for trainer in range(67): - name = trainer_group_names[trainer+1]['constant'].title().replace('_','') + name = trainers.trainer_group_names[trainer+1]['constant'].title().replace('_','') num = str(trainer).zfill(3) dir = 'gfx/trainers/' |