summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2016-01-04 07:41:19 -0500
committeryenatch <yenatch@gmail.com>2016-01-04 07:41:19 -0500
commit0add51451cda9d4221af137f83e2429d3577310c (patch)
treefd05f8f0ad49d88b032dc9e10af85a42dfa0e402 /gfx
parentda87d2a929b1d58175efe063833c124d8ba702c9 (diff)
parent2a263629a40e201b1702e2f4e65f1c61360cc2b2 (diff)
Merge pull request #330 from PikalaxALT/scriptmacrorenaming
Scriptmacrorenaming
Diffstat (limited to 'gfx')
-rw-r--r--gfx/battle/expbarend.2bpp (renamed from gfx/unknown/08e7f4.2bpp)bin16 -> 16 bytes
-rw-r--r--gfx/battle/expbarend_sgb.2bpp (renamed from gfx/unknown/08e804.2bpp)bin16 -> 16 bytes
-rw-r--r--gfx/intro/gender_screen.2bpp (renamed from gfx/unknown/048e71.2bpp)bin16 -> 16 bytes
-rw-r--r--gfx/intro/grass1.2bpp (renamed from gfx/unknown/0e799d.2bpp)bin64 -> 64 bytes
-rw-r--r--gfx/intro/grass2.2bpp (renamed from gfx/unknown/0e79dd.2bpp)bin64 -> 64 bytes
-rw-r--r--gfx/intro/grass3.2bpp (renamed from gfx/unknown/0e7a1d.2bpp)bin64 -> 64 bytes
-rw-r--r--gfx/intro/grass4.2bpp (renamed from gfx/unknown/0e7a5d.2bpp)bin16 -> 16 bytes
-rwxr-xr-xgfx/mail.asm16
-rw-r--r--gfx/pics/animation.asm156
-rw-r--r--gfx/pics/questionmark/front.2bpp.lz (renamed from gfx/unknown/1de0e1.2bpp.lz)bin144 -> 144 bytes
-rw-r--r--gfx/pokedex/pokedex.2bpp.lz (renamed from gfx/unknown/04150e.2bpp.lz)bin418 -> 418 bytes
-rw-r--r--gfx/pokedex/sgb.2bpp.lz (renamed from gfx/unknown/1ddf33.2bpp.lz)bin420 -> 420 bytes
-rw-r--r--gfx/pokegear/dexmap_nest_icon.2bpp (renamed from gfx/unknown/0922d1.2bpp)0
-rw-r--r--gfx/pokegear/flymap_label_border.2bppbin0 -> 48 bytes
-rw-r--r--gfx/unknown/0922e1.2bppbin32 -> 0 bytes
-rw-r--r--gfx/unknown/092301.2bppbin16 -> 0 bytes
-rw-r--r--gfx/unown_puzzle/aerodactyl.2bpp.lz (renamed from gfx/unknown/0e19fb.2bpp.lz)bin432 -> 432 bytes
-rw-r--r--gfx/unown_puzzle/cursor.2bpp (renamed from gfx/unknown/0e17c5.2bpp)bin64 -> 64 bytes
-rw-r--r--gfx/unown_puzzle/hooh.2bpp.lz (renamed from gfx/unknown/0e18ab.2bpp.lz)bin336 -> 336 bytes
-rw-r--r--gfx/unown_puzzle/kabuto.2bpp.lz (renamed from gfx/unknown/0e1bab.2bpp.lz)bin240 -> 240 bytes
-rw-r--r--gfx/unown_puzzle/omanyte.2bpp.lz (renamed from gfx/unknown/0e1c9b.2bpp.lz)bin448 -> 448 bytes
-rw-r--r--gfx/unown_puzzle/start_cancel.2bpp.lz (renamed from gfx/unknown/0e1805.2bpp.lz)bin166 -> 166 bytes
-rw-r--r--gfx/unown_puzzle/tile_borders.2bpp (renamed from gfx/unknown/0e1723.2bpp)bin128 -> 128 bytes
23 files changed, 93 insertions, 79 deletions
diff --git a/gfx/unknown/08e7f4.2bpp b/gfx/battle/expbarend.2bpp
index 24f32e155..24f32e155 100644
--- a/gfx/unknown/08e7f4.2bpp
+++ b/gfx/battle/expbarend.2bpp
Binary files differ
diff --git a/gfx/unknown/08e804.2bpp b/gfx/battle/expbarend_sgb.2bpp
index dbeb3fdee..dbeb3fdee 100644
--- a/gfx/unknown/08e804.2bpp
+++ b/gfx/battle/expbarend_sgb.2bpp
Binary files differ
diff --git a/gfx/unknown/048e71.2bpp b/gfx/intro/gender_screen.2bpp
index 5cc990f1d..5cc990f1d 100644
--- a/gfx/unknown/048e71.2bpp
+++ b/gfx/intro/gender_screen.2bpp
Binary files differ
diff --git a/gfx/unknown/0e799d.2bpp b/gfx/intro/grass1.2bpp
index 7e371f23e..7e371f23e 100644
--- a/gfx/unknown/0e799d.2bpp
+++ b/gfx/intro/grass1.2bpp
Binary files differ
diff --git a/gfx/unknown/0e79dd.2bpp b/gfx/intro/grass2.2bpp
index 3068eb080..3068eb080 100644
--- a/gfx/unknown/0e79dd.2bpp
+++ b/gfx/intro/grass2.2bpp
Binary files differ
diff --git a/gfx/unknown/0e7a1d.2bpp b/gfx/intro/grass3.2bpp
index 47f3330d8..47f3330d8 100644
--- a/gfx/unknown/0e7a1d.2bpp
+++ b/gfx/intro/grass3.2bpp
Binary files differ
diff --git a/gfx/unknown/0e7a5d.2bpp b/gfx/intro/grass4.2bpp
index 4f2b4cdfd..4f2b4cdfd 100644
--- a/gfx/unknown/0e7a5d.2bpp
+++ b/gfx/intro/grass4.2bpp
Binary files differ
diff --git a/gfx/mail.asm b/gfx/mail.asm
index 9ab6fa0d4..cb3c25bc8 100755
--- a/gfx/mail.asm
+++ b/gfx/mail.asm
@@ -694,22 +694,22 @@ MailGFX_GenerateMonochromeTilesColor2: ; b97f8
MailGFX_PlaceMessage: ; b9803
ld bc, MAIL_STRUCT_LENGTH
- ld de, wd002
- ld a, $0
+ ld de, wTempMail
+ ld a, BANK(sPartyMail)
call GetSRAMBank
call CopyBytes
call CloseSRAM
- ld hl, wd002 + sPartyMon1MailAuthor - sPartyMon1Mail
- ld de, wd050
+ ld hl, wTempMailAuthor
+ ld de, wMonOrItemNameBuffer
ld bc, NAME_LENGTH - 1
call CopyBytes
ld a, "@"
- ld [wd002 + sPartyMon1MailAuthor - sPartyMon1Mail], a
- ld [wd050 + NAME_LENGTH - 1], a
- ld de, wd002
+ ld [wTempMailAuthor], a
+ ld [wMonOrItemNameBuffer + NAME_LENGTH - 1], a
+ ld de, wTempMailMessage
hlcoord 2, 7
call PlaceString
- ld de, wd050
+ ld de, wMonOrItemNameBuffer
ld a, [de]
and a
ret z
diff --git a/gfx/pics/animation.asm b/gfx/pics/animation.asm
index ea87f97e5..ae207a790 100644
--- a/gfx/pics/animation.asm
+++ b/gfx/pics/animation.asm
@@ -97,7 +97,7 @@ AnimateFrontpic: ; d008e
ret c
call LoadMonAnimation
.loop
- call Functiond00b4
+ call SetUpPokeAnim
push af
callba Function10402d
pop af
@@ -121,7 +121,7 @@ endr
ret
; d00b4
-Functiond00b4: ; d00b4
+SetUpPokeAnim: ; d00b4
ld a, [rSVBK]
push af
ld a, $2
@@ -184,8 +184,8 @@ PokeAnim_Wait: ; d00fe
; d010b
PokeAnim_Setup: ; d010b
- ld c, $0
- ld b, $0
+ ld c, FALSE
+ ld b, 0
call Functiond0228
call Functiond0504
ld a, [wPokeAnimSceneIndex]
@@ -195,8 +195,8 @@ PokeAnim_Setup: ; d010b
; d011d
PokeAnim_Setup2: ; d011d
- ld c, $0
- ld b, $4
+ ld c, FALSE
+ ld b, 4
call Functiond0228
call Functiond0504
ld a, [wPokeAnimSceneIndex]
@@ -206,8 +206,8 @@ PokeAnim_Setup2: ; d011d
; d012f
PokeAnim_Extra: ; d012f
- ld c, $1
- ld b, $0
+ ld c, TRUE
+ ld b, 0
call Functiond0228
call Functiond0504
ld a, [wPokeAnimSceneIndex]
@@ -365,18 +365,18 @@ Functiond0228: ; d0228
ld a, $2
ld [rSVBK], a
push bc
- ld hl, w2_d172
- ld bc, wPokeAnimStructEnd - w2_d172
+ ld hl, wPokeAnimExtraFlag
+ ld bc, wPokeAnimStructEnd - wPokeAnimExtraFlag
xor a
call ByteFill
pop bc
ld a, b
ld [w2_d173], a
ld a, c
- ld [w2_d172], a
- call Functiond055c
- call Functiond05ce
- call Functiond061b
+ ld [wPokeAnimExtraFlag], a
+ call GetMonAnimPointer
+ call GetMonFramesPointer
+ call GetMonBitmaskPointer
pop af
ld [rSVBK], a
ret
@@ -425,16 +425,16 @@ Functiond0282: ; d0282
PokeAnim_SetRepeat: ; d028e
ld a, [w2_d183]
- ld [w2_d17f], a
+ ld [wPokeAnimRepeatTimer], a
jr Functiond0253
; d0296
PokeAnim_DoRepeat: ; d0296
- ld a, [w2_d17f]
+ ld a, [wPokeAnimRepeatTimer]
and a
ret z
dec a
- ld [w2_d17f], a
+ ld [wPokeAnimRepeatTimer], a
ret z
ld a, [w2_d183]
ld [w2_d17d], a
@@ -509,14 +509,14 @@ Functiond02f8: ; d02f8
ld a, [w2_d17d]
ld e, a
ld d, $0
- ld hl, w2_d175
+ ld hl, wPokeAnimPointerAddr
ld a, [hli]
ld h, [hl]
ld l, a
rept 2
add hl, de
endr
- ld a, [w2_d174]
+ ld a, [wPokeAnimPointerBank]
call GetFarHalfword
ld a, l
ld [w2_d182], a
@@ -533,16 +533,16 @@ Functiond031b: ; d031b
dec a
ld c, a
ld b, $0
- ld hl, w2_d178
+ ld hl, wPokeAnimFramesAddr
ld a, [hli]
ld h, [hl]
ld l, a
rept 2
add hl, bc
endr
- ld a, [w2_d177]
+ ld a, [wPokeAnimFramesBank]
call GetFarHalfword
- ld a, [w2_d177]
+ ld a, [wPokeAnimFramesBank]
call GetFarByte
ld [w2_d180], a
inc hl
@@ -552,7 +552,7 @@ endr
Functiond033b: ; d033b
call Functiond0356
push bc
- ld hl, w2_d17b
+ ld hl, wPokeAnimBitmaskAddr
ld a, [hli]
ld h, [hl]
ld l, a
@@ -560,7 +560,7 @@ Functiond033b: ; d033b
call AddNTimes
pop bc
ld de, w2_d188
- ld a, [w2_d17a]
+ ld a, [wPokeAnimBitmaskBank]
call FarCopyBytes
ret
; d0356
@@ -594,7 +594,7 @@ Functiond036b: ; d036b
and a
jr z, .next
- ld a, [w2_d177]
+ ld a, [wPokeAnimFramesBank]
call GetFarByte
inc hl
push hl
@@ -663,7 +663,7 @@ Functiond03cd: ; d03cd
ld a, [w2_d186]
ld bc, SCREEN_WIDTH
call AddNTimes
- ld a, [wc2c6]
+ ld a, [wBoxAlignment]
and a
jr nz, .go
ld a, [w2_d185]
@@ -737,20 +737,34 @@ Functiond03f7: ; d03f7
ret
; d042f
+macro_d042f: MACRO
+y = 7
+rept 7 +- \1
+x = \1
+rept 7 +- \1
+ db x + y
+x = x + 1
+endr
+y = y + 7
+endr
+endm
+
Unknown_d042f:
- db 9, 10, 11, 12, 13
- db 16, 17, 18, 19, 20
- db 23, 24, 25, 26, 27
- db 30, 31, 32, 33, 34
- db 37, 38, 39, 40, 41
+ macro_d042f 2
+ ; db 9, 10, 11, 12, 13
+ ; db 16, 17, 18, 19, 20
+ ; db 23, 24, 25, 26, 27
+ ; db 30, 31, 32, 33, 34
+ ; db 37, 38, 39, 40, 41
Unknown_d0448:
- db 8, 9, 10, 11, 12, 13
- db 15, 16, 17, 18, 19, 20
- db 22, 23, 24, 25, 26, 27
- db 29, 30, 31, 32, 33, 34
- db 36, 37, 38, 39, 40, 41
- db 43, 44, 45, 46, 47, 48
+ macro_d042f 1
+ ; db 8, 9, 10, 11, 12, 13
+ ; db 15, 16, 17, 18, 19, 20
+ ; db 22, 23, 24, 25, 26, 27
+ ; db 29, 30, 31, 32, 33, 34
+ ; db 36, 37, 38, 39, 40, 41
+ ; db 43, 44, 45, 46, 47, 48
Functiond046c: ; d046c
@@ -772,7 +786,7 @@ Functiond046c: ; d046c
ld bc, 45
.okay
- ld a, [wc2c6]
+ ld a, [wBoxAlignment]
and a
jr nz, .add_bc
add hl, de
@@ -810,7 +824,7 @@ Functiond0499: ; d0499
Functiond04bd: ; d04bd
call Functiond04f6
- ld a, [wc2c6]
+ ld a, [wBoxAlignment]
and a
jr nz, .minus_one_and_six
ld de, 1
@@ -931,7 +945,7 @@ Functiond0551: ; d0551
ret
; d055c
-Functiond055c: ; d055c
+GetMonAnimPointer: ; d055c
call PokeAnim_IsEgg
jr z, .egg
@@ -945,12 +959,12 @@ Functiond055c: ; d055c
ld de, AnimationExtraPointers
.unown
- ld a, [w2_d172]
+ ld a, [wPokeAnimExtraFlag]
and a
- jr z, .asm_d057e
+ jr z, .extras
ld h, d
ld l, e
-.asm_d057e
+.extras
ld a, [wPokeAnimSpeciesOrUnown]
dec a
@@ -960,30 +974,30 @@ rept 2
add hl, de
endr
ld a, c
- ld [w2_d174], a
+ ld [wPokeAnimPointerBank], a
call GetFarHalfword
ld a, l
- ld [w2_d175], a
+ ld [wPokeAnimPointerAddr], a
ld a, h
- ld [w2_d176], a
+ ld [wPokeAnimPointerAddr + 1], a
ret
.egg
ld hl, EggAnimation
ld c, BANK(EggAnimation)
- ld a, [w2_d172]
+ ld a, [wPokeAnimExtraFlag]
and a
- jr z, .asm_d05a7
+ jr z, .extras_egg
ld hl, EggAnimationExtra
ld c, BANK(EggAnimationExtra)
-.asm_d05a7
+.extras_egg
ld a, c
- ld [w2_d174], a
+ ld [wPokeAnimPointerBank], a
ld a, l
- ld [w2_d175], a
+ ld [wPokeAnimPointerAddr], a
ld a, h
- ld [w2_d176], a
+ ld [wPokeAnimPointerAddr + 1], a
ret
; d05b4
@@ -1003,7 +1017,7 @@ PokeAnim_GetFrontpicDims: ; d05b4
ret
; d05ce
-Functiond05ce: ; d05ce
+GetMonFramesPointer: ; d05ce
call PokeAnim_IsEgg
jr z, .egg
@@ -1013,7 +1027,7 @@ Functiond05ce: ; d05ce
ld hl, UnownFramesPointers
jr z, .got_frames
ld a, [wPokeAnimSpecies]
- cp 151 + 1
+ cp CHIKORITA
ld b, BANK(FramesPointers)
ld c, BANK(KantoFrames)
ld hl, FramesPointers
@@ -1021,7 +1035,7 @@ Functiond05ce: ; d05ce
ld c, BANK(JohtoFrames)
.got_frames
ld a, c
- ld [w2_d177], a
+ ld [wPokeAnimFramesBank], a
ld a, [wPokeAnimSpeciesOrUnown]
dec a
@@ -1033,24 +1047,24 @@ endr
ld a, b
call GetFarHalfword
ld a, l
- ld [w2_d178], a
+ ld [wPokeAnimFramesAddr], a
ld a, h
- ld [w2_d179], a
+ ld [wPokeAnimFramesAddr + 1], a
ret
.egg
ld hl, EggFrames
ld c, BANK(EggFrames)
ld a, c
- ld [w2_d177], a
+ ld [wPokeAnimFramesBank], a
ld a, l
- ld [w2_d178], a
+ ld [wPokeAnimFramesAddr], a
ld a, h
- ld [w2_d179], a
+ ld [wPokeAnimFramesAddr + 1], a
ret
; d061b
-Functiond061b: ; d061b
+GetMonBitmaskPointer: ; d061b
call PokeAnim_IsEgg
jr z, .egg
@@ -1061,7 +1075,7 @@ Functiond061b: ; d061b
ld a, BANK(BitmasksPointers)
ld hl, BitmasksPointers
.unown
- ld [w2_d17a], a
+ ld [wPokeAnimBitmaskBank], a
ld a, [wPokeAnimSpeciesOrUnown]
dec a
@@ -1070,23 +1084,23 @@ Functiond061b: ; d061b
rept 2
add hl, de
endr
- ld a, [w2_d17a]
+ ld a, [wPokeAnimBitmaskBank]
call GetFarHalfword
ld a, l
- ld [w2_d17b], a
+ ld [wPokeAnimBitmaskAddr], a
ld a, h
- ld [w2_d17c], a
+ ld [wPokeAnimBitmaskAddr + 1], a
ret
.egg
ld c, BANK(EggBitmasks)
ld hl, EggBitmasks
ld a, c
- ld [w2_d17a], a
+ ld [wPokeAnimBitmaskBank], a
ld a, l
- ld [w2_d17b], a
+ ld [wPokeAnimBitmaskAddr], a
ld a, h
- ld [w2_d17c], a
+ ld [wPokeAnimBitmaskAddr + 1], a
ret
; d065c
@@ -1103,7 +1117,7 @@ PokeAnim_GetSpeciesOrUnown: ; d065c
Functiond0669: ; d0669
ld a, $1
- ld [wc2c6], a
+ ld [wBoxAlignment], a
Functiond066e: ; d066e
call AnimateMon_CheckIfPokemon
@@ -1120,12 +1134,12 @@ Functiond066e: ; d066e
ld e, c
call AnimateFrontpic
xor a
- ld [wc2c6], a
+ ld [wBoxAlignment], a
ret
.asm_d068c
xor a
- ld [wc2c6], a
+ ld [wBoxAlignment], a
inc a
ld [CurPartySpecies], a
ret
diff --git a/gfx/unknown/1de0e1.2bpp.lz b/gfx/pics/questionmark/front.2bpp.lz
index cd2f7f22e..cd2f7f22e 100644
--- a/gfx/unknown/1de0e1.2bpp.lz
+++ b/gfx/pics/questionmark/front.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/04150e.2bpp.lz b/gfx/pokedex/pokedex.2bpp.lz
index 8f7e3aafb..8f7e3aafb 100644
--- a/gfx/unknown/04150e.2bpp.lz
+++ b/gfx/pokedex/pokedex.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/1ddf33.2bpp.lz b/gfx/pokedex/sgb.2bpp.lz
index 6ec9c46b2..6ec9c46b2 100644
--- a/gfx/unknown/1ddf33.2bpp.lz
+++ b/gfx/pokedex/sgb.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/0922d1.2bpp b/gfx/pokegear/dexmap_nest_icon.2bpp
index 48a4938e6..48a4938e6 100644
--- a/gfx/unknown/0922d1.2bpp
+++ b/gfx/pokegear/dexmap_nest_icon.2bpp
diff --git a/gfx/pokegear/flymap_label_border.2bpp b/gfx/pokegear/flymap_label_border.2bpp
new file mode 100644
index 000000000..671aab1d7
--- /dev/null
+++ b/gfx/pokegear/flymap_label_border.2bpp
Binary files differ
diff --git a/gfx/unknown/0922e1.2bpp b/gfx/unknown/0922e1.2bpp
deleted file mode 100644
index c366cb52f..000000000
--- a/gfx/unknown/0922e1.2bpp
+++ /dev/null
Binary files differ
diff --git a/gfx/unknown/092301.2bpp b/gfx/unknown/092301.2bpp
deleted file mode 100644
index 9054d1b15..000000000
--- a/gfx/unknown/092301.2bpp
+++ /dev/null
Binary files differ
diff --git a/gfx/unknown/0e19fb.2bpp.lz b/gfx/unown_puzzle/aerodactyl.2bpp.lz
index cc73411f9..cc73411f9 100644
--- a/gfx/unknown/0e19fb.2bpp.lz
+++ b/gfx/unown_puzzle/aerodactyl.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/0e17c5.2bpp b/gfx/unown_puzzle/cursor.2bpp
index dc42cfc79..dc42cfc79 100644
--- a/gfx/unknown/0e17c5.2bpp
+++ b/gfx/unown_puzzle/cursor.2bpp
Binary files differ
diff --git a/gfx/unknown/0e18ab.2bpp.lz b/gfx/unown_puzzle/hooh.2bpp.lz
index d8c899e86..d8c899e86 100644
--- a/gfx/unknown/0e18ab.2bpp.lz
+++ b/gfx/unown_puzzle/hooh.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/0e1bab.2bpp.lz b/gfx/unown_puzzle/kabuto.2bpp.lz
index a94050316..a94050316 100644
--- a/gfx/unknown/0e1bab.2bpp.lz
+++ b/gfx/unown_puzzle/kabuto.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/0e1c9b.2bpp.lz b/gfx/unown_puzzle/omanyte.2bpp.lz
index 5bdd993dc..5bdd993dc 100644
--- a/gfx/unknown/0e1c9b.2bpp.lz
+++ b/gfx/unown_puzzle/omanyte.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/0e1805.2bpp.lz b/gfx/unown_puzzle/start_cancel.2bpp.lz
index 96fbb1fbb..96fbb1fbb 100644
--- a/gfx/unknown/0e1805.2bpp.lz
+++ b/gfx/unown_puzzle/start_cancel.2bpp.lz
Binary files differ
diff --git a/gfx/unknown/0e1723.2bpp b/gfx/unown_puzzle/tile_borders.2bpp
index 570244c82..570244c82 100644
--- a/gfx/unknown/0e1723.2bpp
+++ b/gfx/unown_puzzle/tile_borders.2bpp
Binary files differ