summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-09-01 15:00:53 -0500
committerBryan Bishop <kanzure@gmail.com>2013-09-01 15:00:53 -0500
commitffe13887071bc88d86cccbe3c4239ddcfac968f9 (patch)
tree6f5c61a67d26dc0981d3e1c6b72a1b6f6ff7e2e4
parentc84a392e460576059f4ccd36b02feedf312576da (diff)
import interval_map syntax
-rw-r--r--pokemontools/crystal.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py
index dcf6925..0507b35 100644
--- a/pokemontools/crystal.py
+++ b/pokemontools/crystal.py
@@ -56,14 +56,13 @@ from trainers import (
# for fixing trainer_group_names
import re
-from interval_map import IntervalMap
-
import chars
import labels
import pksv
import romstr
import move_constants
import pointers
+import interval_map
# ---- script_parse_table explanation ----
# This is an IntervalMap that keeps track of previously parsed scripts, texts
@@ -77,7 +76,7 @@ import pointers
# keys are intervals "500..555" of byte addresses for each script
# last byte is not inclusive(?) really? according to who??
# this is how to make sure scripts are not recalculated
-script_parse_table = IntervalMap()
+script_parse_table = interval_map.IntervalMap()
def is_script_already_parsed_at(address):
"""looks up whether or not a script is parsed at a certain address"""