summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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