fix import item_constants syntax

This commit is contained in:
Bryan Bishop
2013-09-01 15:15:57 -05:00
parent 48f6b8a8fa
commit 58e8718616

View File

@@ -56,6 +56,7 @@ import pointers
import interval_map
import trainers
import pokemon_constants
import item_constants
import wram
# ---- script_parse_table explanation ----
@@ -223,12 +224,6 @@ def get_pokemon_constant_by_id(id):
else:
return pokemon_constants.pokemon_constants[id]
from item_constants import (
item_constants,
find_item_label_by_id,
generate_item_constants,
)
def command_debug_information(command_byte=None, map_group=None, map_id=None, address=0, info=None, long_info=None, pksv_name=None):
"used to help debug in parse_script_engine_script_at"
info1 = "parsing command byte " + hex(command_byte) + " for map " + \
@@ -1287,7 +1282,7 @@ HexByte=DollarSignByte
class ItemLabelByte(DollarSignByte):
def to_asm(self):
label = find_item_label_by_id(self.byte)
label = item_constants.item_constants.find_item_label_by_id(self.byte)
if label:
return label
elif not label: