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.
This commit is contained in:
Bryan Bishop 2013-09-01 16:42:05 -05:00
parent 43c912b4ee
commit 52d4978974

View File

@ -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():