mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-10-01 05:46:43 -05:00
fix import item_constants syntax
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user