Use more *Coord

also town map code relabelling
YamaArashi just did town map relabelling but oh well
I aleady made the changes and don't feel like redoing it
This commit is contained in:
dannye 2015-07-14 00:21:03 -05:00
parent 822bb2bd21
commit b509b48a7f
32 changed files with 182 additions and 179 deletions

View file

@ -2184,7 +2184,7 @@ Func_7980c: ; 7980c (1e:580c)
push bc
ld e, a
ld d, $0
ld hl, wTileMap
hlCoord 0, 0
add hl, de
ld bc, $707
call ClearScreenArea
@ -2206,7 +2206,7 @@ GetMonSpriteTileMapPointerFromRowCount: ; 79820 (1e:5820)
.enemyTurn
ld a, 12
.next
ld hl, wTileMap
hlCoord 0, 0
ld e, a
ld d, 0
add hl, de

View file

@ -231,7 +231,7 @@ BattleTransition_Spiral: ; 70a72 (1c:4a72)
BattleTransition_InwardSpiral: ; 70aaa (1c:4aaa)
ld a, $7
ld [wWhichTrade], a
ld hl, wTileMap
hlCoord 0, 0
ld c, $11
ld de, $14
call BattleTransition_InwardSpiral_
@ -410,7 +410,7 @@ BattleTransition_Split: ; 70bca (1c:4bca)
ld bc, $ffd8
call BattleTransition_CopyTiles1
hlCoord 0, 1
ld de, wTileMap
deCoord 0, 0
ld bc, $28
call BattleTransition_CopyTiles1
hlCoord 18, 0
@ -418,7 +418,7 @@ BattleTransition_Split: ; 70bca (1c:4bca)
ld bc, $fffe
call BattleTransition_CopyTiles2
hlCoord 1, 0
ld de, wTileMap
deCoord 0, 0
ld bc, $2
call BattleTransition_CopyTiles2
call BattleTransition_TransferDelay3
@ -514,7 +514,7 @@ BattleTransition_CopyTiles2: ; 70c3f (1c:4c3f)
; used for high level wild dungeon battles
BattleTransition_VerticalStripes: ; 70c7e (1c:4c7e)
ld c, $12
ld hl, wTileMap
hlCoord 0, 0
deCoord 1, 17
xor a
ld [H_AUTOBGTRANSFERENABLED], a
@ -553,7 +553,7 @@ BattleTransition_VerticalStripes_: ; 70caa (1c:4caa)
; used for low level wild dungeon battles
BattleTransition_HorizontalStripes: ; 70cb4 (1c:4cb4)
ld c, $14
ld hl, wTileMap
hlCoord 0, 0
deCoord 19, 1
xor a
ld [H_AUTOBGTRANSFERENABLED], a

View file

@ -117,7 +117,7 @@ SlidePlayerAndEnemySilhouettesOnScreen: ; 3c04c (f:404c)
or c
jr nz, .clearBackgroundLoop
; copy the work RAM tile map to VRAM
ld hl, wTileMap
hlCoord 0, 0
ld de, vBGMap0
ld b, 18 ; number of rows
.copyRowLoop
@ -855,7 +855,7 @@ FaintEnemyPokemon: ; 0x3c567
hlCoord 12, 5
deCoord 12, 6
call SlideDownFaintedMonPic
ld hl, wTileMap
hlCoord 0, 0
ld bc, $40b
call ClearScreenArea
ld a, [W_ISINBATTLE]
@ -1214,7 +1214,7 @@ HandlePlayerBlackOut: ; 3c837 (f:4837)
ld a, [W_CUROPPONENT]
cp $c8 + SONY1
jr nz, .notSony1Battle
ld hl, wTileMap ; sony 1 battle
hlCoord 0, 0 ; sony 1 battle
ld bc, $815
call ClearScreenArea
call ScrollTrainerPicAfterBattle
@ -1489,7 +1489,7 @@ EnemySendOutFirstMon: ; 3c92a (f:492a)
call LoadScreenTilesFromBuffer1
.next4
call ClearSprites
ld hl,wTileMap
hlCoord 0, 0
ld bc,$040B
call ClearScreenArea
ld b,1
@ -1952,7 +1952,7 @@ DrawPlayerHUDAndHPBar: ; 3cd60 (f:4d60)
DrawEnemyHUDAndHPBar: ; 3cdec (f:4dec)
xor a
ld [H_AUTOBGTRANSFERENABLED], a
ld hl, wTileMap
hlCoord 0, 0
ld bc, $40c
call ClearScreenArea
callab PlaceEnemyHUDTiles