summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-12 22:51:24 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-12 22:51:24 -0500
commit10360d114f1f2cd9c16ec426b188991e4f7b2457 (patch)
treea62deeb0edccd1dd5acd8a0d590855e6cb1b0b18
parent97da7b7922190f64d5d330d3b6d5cb2470ff9559 (diff)
one preprocessor macro needs trainer_group_maximum
-rw-r--r--pokemontools/crystal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py
index c38c510..71f66b6 100644
--- a/pokemontools/crystal.py
+++ b/pokemontools/crystal.py
@@ -6849,6 +6849,10 @@ all_map_headers = []
trainer_group_maximums = {}
+# Some of the commands need a reference to this data. This is a hacky way to
+# get around having a global, and it should be fixed eventually.
+Command.trainer_group_maximums = trainer_group_maximums
+
def run_main(rom=None):
if not rom:
# read the rom and figure out the offsets for maps