From 52d4978974263f4f19985632442291c2d30c4b67 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Sep 2013 16:42:05 -0500 Subject: move the map_names import to the top Maybe it will get more attention up here. It needs to be cleaned up since it's a global used throughout the source code, plus it gets modified multiple times everywhere. Awful. --- pokemontools/crystal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 6ba998b..d6dba89 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -61,6 +61,8 @@ import item_constants import wram import exceptions +from map_names import map_names + # ---- script_parse_table explanation ---- # This is an IntervalMap that keeps track of previously parsed scripts, texts # and other objects. Anything that has a location in the ROM should be mapped @@ -6730,8 +6732,6 @@ class PokedexEntry: {4}""".format(self.species, self.weight, self.height, self.page1.to_asm(), self.page2.to_asm()) return output -from map_names import map_names - # map names with no labels will be generated # generate labels for each map name for map_group_id in map_names.keys(): -- cgit v1.2.3