From d23ab7500bcc81eb97b658a6ce2a28c8106644b4 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 2 Apr 2012 12:44:23 -0500 Subject: [PATCH] fix bug in generate_map_constant_labels --- extras/crystal.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extras/crystal.py b/extras/crystal.py index b7959652b..b746d2b0c 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -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