summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-07 11:30:10 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-07 11:30:10 -0400
commit13129459f11e73df8c556f0c02cd4fca7266a346 (patch)
treef0157c5ba3e66a48eba01fef6ce7283f1dece57a /scripts
parent45ed05decf330faab4503fe8fecadc54698c9724 (diff)
Sync coordinate macros with pokecrystal
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/BikeShop.asm6
-rwxr-xr-xscripts/CeladonMartRoof.asm4
-rwxr-xr-xscripts/GameCorner.asm16
-rwxr-xr-xscripts/VermilionDock.asm6
4 files changed, 16 insertions, 16 deletions
diff --git a/scripts/BikeShop.asm b/scripts/BikeShop.asm
index 8ff581a3..7b290f31 100755
--- a/scripts/BikeShop.asm
+++ b/scripts/BikeShop.asm
@@ -49,15 +49,15 @@ BikeShopText1:
ld [wTopMenuItemX], a
ld hl, wd730
set 6, [hl]
- coord hl, 0, 0
+ hlcoord 0, 0
ld b, $4
ld c, $f
call TextBoxBorder
call UpdateSprites
- coord hl, 2, 2
+ hlcoord 2, 2
ld de, BikeShopMenuText
call PlaceString
- coord hl, 8, 3
+ hlcoord 8, 3
ld de, BikeShopMenuPrice
call PlaceString
ld hl, BikeShopText_1d815
diff --git a/scripts/CeladonMartRoof.asm b/scripts/CeladonMartRoof.asm
index e880211b..b1f6a8a3 100755
--- a/scripts/CeladonMartRoof.asm
+++ b/scripts/CeladonMartRoof.asm
@@ -64,7 +64,7 @@ CeladonMartRoofScript_GiveDrinkToGirl:
dec l
ld b, l
ld c, 12
- coord hl, 0, 0
+ hlcoord 0, 0
call TextBoxBorder
call UpdateSprites
call CeladonMartRoofScript_PrintDrinksInBag
@@ -194,7 +194,7 @@ CeladonMartRoofScript_PrintDrinksInBag:
push hl
ld [wd11e], a
call GetItemName
- coord hl, 2, 2
+ hlcoord 2, 2
ldh a, [hItemCounter]
ld bc, SCREEN_WIDTH * 2
call AddNTimes
diff --git a/scripts/GameCorner.asm b/scripts/GameCorner.asm
index d5f43e6b..ded5854f 100755
--- a/scripts/GameCorner.asm
+++ b/scripts/GameCorner.asm
@@ -474,32 +474,32 @@ CeladonGameCornerText_48f19:
CeladonGameCornerScript_48f1e:
ld hl, wd730
set 6, [hl]
- coord hl, 11, 0
+ hlcoord 11, 0
ld b, $5
ld c, $7
call TextBoxBorder
call UpdateSprites
- coord hl, 12, 1
+ hlcoord 12, 1
ld b, 4
ld c, 7
call ClearScreenArea
- coord hl, 12, 2
+ hlcoord 12, 2
ld de, GameCornerMoneyText
call PlaceString
- coord hl, 12, 3
+ hlcoord 12, 3
ld de, GameCornerBlankText1
call PlaceString
- coord hl, 12, 3
+ hlcoord 12, 3
ld de, wPlayerMoney
ld c, $a3
call PrintBCDNumber
- coord hl, 12, 4
+ hlcoord 12, 4
ld de, GameCornerCoinText
call PlaceString
- coord hl, 12, 5
+ hlcoord 12, 5
ld de, GameCornerBlankText2
call PlaceString
- coord hl, 15, 5
+ hlcoord 15, 5
ld de, wPlayerCoins
ld c, $82
call PrintBCDNumber
diff --git a/scripts/VermilionDock.asm b/scripts/VermilionDock.asm
index 5af5e5a2..9dc4b2b9 100755
--- a/scripts/VermilionDock.asm
+++ b/scripts/VermilionDock.asm
@@ -52,7 +52,7 @@ VermilionDock_1db9b:
call DelayFrames
ld b, $9c
call CopyScreenTileBufferToVRAM
- coord hl, 0, 10
+ hlcoord 0, 10
ld bc, SCREEN_WIDTH * 6
ld a, $14 ; water tile
call FillMemory
@@ -184,7 +184,7 @@ VermilionDock_EraseSSAnne:
ld bc, (5 * BG_MAP_WIDTH) + SCREEN_WIDTH
ld a, $14 ; water tile
call FillMemory
- ld hl, vBGMap0 + 10 * BG_MAP_WIDTH
+ hlbgcoord 0, 10
ld de, wVermilionDockTileMapBuffer
ld bc, (6 * BG_MAP_WIDTH) / 16
call CopyVideoData
@@ -194,7 +194,7 @@ VermilionDock_EraseSSAnne:
; the blocks is unnecessary because the blocks the ship occupies are south of
; the player and won't be redrawn when the player automatically walks north and
; exits the map. This code could be removed without affecting anything.
- overworldMapCoord hl, 5, 2, VERMILION_DOCK_WIDTH
+ hlowcoord 5, 2, VERMILION_DOCK_WIDTH
ld a, $d ; water block
ld [hli], a
ld [hli], a