mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-26 19:40:56 -05:00
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user