ref: 6d1870ea95389297da64e8f43612e66b3ae852ba
parent: d6553b205c9e6deb58afabf175cdd570dd732d09
author: Bryan Bishop <kanzure@gmail.com>
date: Thu Jan 5 14:26:18 EST 2012
switch around old amber sprite constants hg-commit-id: cb128c47380e
--- a/constants.asm
+++ b/constants.asm
@@ -1257,8 +1257,8 @@
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
--- a/extras/sprite_helper.py
+++ b/extras/sprite_helper.py
@@ -73,7 +73,7 @@
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 @@
icons = {}
unique_icons = set()
todo_sprites = {}
+sprites = {}
def load_icons():
for map_id in map_headers:
@@ -146,7 +147,6 @@
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 @@
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 @@
print sprites[key] + extra + " EQU $" + value
+sprite_namer()
if __name__ == "__main__":
#load_icons()
#print_appearances()
- sprite_namer()
+ sprite_printer()