mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
fix bug in generate_map_constant_labels
This commit is contained in:
parent
29a3fbf75b
commit
d23ab7500b
@ -1202,6 +1202,7 @@ def generate_map_constant_labels():
|
||||
i = 0
|
||||
for map_group in map_names.keys():
|
||||
for map_id in map_names[map_group].keys():
|
||||
if map_id == "offset": continue
|
||||
cmap = map_names[map_group][map_id]
|
||||
name = cmap["name"]
|
||||
name = name.replace("Pokémon Center", "PokeCenter").\
|
||||
@ -5847,6 +5848,12 @@ def write_all_labels(all_labels, filename="labels.json"):
|
||||
fh.close()
|
||||
return True
|
||||
|
||||
#TODO: implement get_ram_label
|
||||
def get_ram_label(address):
|
||||
"""not implemented yet.. supposed to get a label for a particular RAM location
|
||||
like W_PARTYPOKE1HP"""
|
||||
return None
|
||||
|
||||
def get_label_for(address):
|
||||
"""returns a label assigned to a particular address"""
|
||||
global all_labels
|
||||
|
Loading…
Reference in New Issue
Block a user