mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 06:58:24 +00:00
switch around old amber sprite constants
hg-commit-id: cb128c47380e
This commit is contained in:
parent
d6553b205c
commit
6d1870ea95
2 changed files with 7 additions and 5 deletions
|
@ -1257,8 +1257,8 @@ SPRITE_PAPER_SHEET EQU $40
|
|||
SPRITE_BOOK_MAP_DEX EQU $41
|
||||
SPRITE_CLIPBOARD EQU $42
|
||||
SPRITE_SNORLAX EQU $43
|
||||
SPRITE_OLD_AMBER EQU $44
|
||||
SPRITE_OLD_AMBER_COPY EQU $45
|
||||
SPRITE_OLD_AMBER_COPY EQU $44
|
||||
SPRITE_OLD_AMBER EQU $45
|
||||
SPRITE_LYING_OLD_MAN_UNUSED_1 EQU $46
|
||||
SPRITE_LYING_OLD_MAN_UNUSED_2 EQU $47
|
||||
SPRITE_LYING_OLD_MAN EQU $48
|
||||
|
|
|
@ -73,7 +73,7 @@ constants = {
|
|||
0x41: ["book/map/dex", ""],
|
||||
0x42: ["clipboard", ""],
|
||||
0x43: ["snorlax", ""],
|
||||
0x44: ["old amber", ""],
|
||||
0x44: ["old amber copy", ""],
|
||||
0x45: ["old amber", ""],
|
||||
0x46: ["lying old man unused 1", ""],
|
||||
0x47: ["lying old man unused 2", ""],
|
||||
|
@ -83,6 +83,7 @@ constants = {
|
|||
icons = {}
|
||||
unique_icons = set()
|
||||
todo_sprites = {}
|
||||
sprites = {}
|
||||
|
||||
def load_icons():
|
||||
for map_id in map_headers:
|
||||
|
@ -146,7 +147,6 @@ def sprite_name_cleaner(badname):
|
|||
def sprite_namer():
|
||||
"makes up better constant names for each sprite"
|
||||
insert_todo_sprites()
|
||||
sprites = {}
|
||||
|
||||
for sprite_id in constants:
|
||||
suggestions = constants[sprite_id]
|
||||
|
@ -160,6 +160,7 @@ def sprite_namer():
|
|||
result = sprite_name_cleaner(original)
|
||||
sprites[sprite_id] = result
|
||||
|
||||
def sprite_printer():
|
||||
for key in sprites:
|
||||
line_length = len(sprites[key]) + len(" EQU $") + 2
|
||||
|
||||
|
@ -172,8 +173,9 @@ def sprite_namer():
|
|||
|
||||
print sprites[key] + extra + " EQU $" + value
|
||||
|
||||
sprite_namer()
|
||||
if __name__ == "__main__":
|
||||
#load_icons()
|
||||
#print_appearances()
|
||||
sprite_namer()
|
||||
sprite_printer()
|
||||
|
||||
|
|
Loading…
Reference in a new issue