Fix class_data script
This commit is contained in:
parent
56c27dd0fb
commit
d745065d67
|
|
@ -4,7 +4,7 @@ from struct import unpack_from, calcsize
|
|||
from typing import NamedTuple
|
||||
import textwrap
|
||||
|
||||
import item_data
|
||||
import equipment_data as item_data
|
||||
|
||||
NAME_VADDR_START = 0x8016AF80
|
||||
NAME_ADDR_START = 0x40E80
|
||||
|
|
@ -94,7 +94,8 @@ if __name__ == "__main__":
|
|||
name_addr_diff = (class_data.name - NAME_VADDR_START) + NAME_ADDR_START
|
||||
name = read_rom(name_addr_diff, name_addr_diff + 32).split(b'\0', 1)[0]
|
||||
|
||||
print(f"Class= {name} ({i})\t")
|
||||
print(f"Class= {name} ({i})")
|
||||
print(f"Gender={class_data.gender}")
|
||||
print(f"ItemUpperLeft= {item_data.item_get_name(item_data.item_read(class_data.item_upper_left).name)}")
|
||||
print(f"ItemUpperRight= {item_data.item_get_name(item_data.item_read(class_data.item_upper_right).name)}")
|
||||
print(f"ItemLowerLeft= {item_data.item_get_name(item_data.item_read(class_data.item_lower_left).name)}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue