aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/core.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-11-12 15:44:07 -0500
committerGitHub <noreply@github.com>2025-11-12 15:44:07 -0500
commit5943b96cf6d5eda52df2ad689af0ac251e4e0841 (patch)
tree1e90b28cfce0c0876ad7f9886fb2ad405478fd39 /engine/battle/core.asm
parentUse the same tools/make_patch.c as Gen 2 (diff)
downloadpokeyellow-5943b96cf6d5eda52df2ad689af0ac251e4e0841.tar.gz
pokeyellow-5943b96cf6d5eda52df2ad689af0ac251e4e0841.tar.xz
pokeyellow-5943b96cf6d5eda52df2ad689af0ac251e4e0841.zip
Use features of RGBDS 1.0.0 (#537)
Diffstat (limited to 'engine/battle/core.asm')
-rw-r--r--engine/battle/core.asm42
1 files changed, 21 insertions, 21 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 83a52c2a..87abf2e8 100644
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -20,7 +20,7 @@ SlidePlayerAndEnemySilhouettesOnScreen:
ld hl, vBGMap0
ld bc, TILEMAP_AREA
.clearBackgroundLoop
- ld a, " "
+ ld a, ' '
ld [hli], a
dec bc
ld a, b
@@ -1984,11 +1984,11 @@ CenterMonName:
.loop
inc de
ld a, [de]
- cp "@"
+ cp '@'
jr z, .done
inc de
ld a, [de]
- cp "@"
+ cp '@'
jr z, .done
dec hl
dec b
@@ -2036,15 +2036,15 @@ DisplayBattleMenu::
call CopyData
; the following simulates the keystrokes by drawing menus on screen
hlcoord 9, 14
- ld [hl], "▶"
+ ld [hl], '▶'
ld c, 80
call DelayFrames
- ld [hl], " "
+ ld [hl], ' '
hlcoord 9, 16
- ld [hl], "▶"
+ ld [hl], '▶'
ld c, 50
call DelayFrames
- ld [hl], "▷"
+ ld [hl], '▷'
ld a, $2 ; select the "ITEM" menu
jp .upperLeftMenuItemWasNotSelected
.oldManName
@@ -2062,7 +2062,7 @@ DisplayBattleMenu::
.leftColumn ; put cursor in left column of menu
ld a, [wBattleType]
cp BATTLE_TYPE_SAFARI
- ld a, " "
+ ld a, ' '
jr z, .safariLeftColumn
; put cursor in left column for normal battle menu (i.e. when it's not a Safari battle)
ldcoord_a 15, 14 ; clear upper cursor position in right column
@@ -2095,7 +2095,7 @@ DisplayBattleMenu::
.rightColumn ; put cursor in right column of menu
ld a, [wBattleType]
cp BATTLE_TYPE_SAFARI
- ld a, " "
+ ld a, ' '
jr z, .safariRightColumn
; put cursor in right column for normal battle menu (i.e. when it's not a Safari battle)
ldcoord_a 9, 14 ; clear upper cursor position in left column
@@ -2328,7 +2328,7 @@ PartyMenuOrRockOrRun:
.partyMonDeselected
hlcoord 11, 11
ld bc, 6 * SCREEN_WIDTH + 9
- ld a, " "
+ ld a, ' '
call FillMemory
xor a ; NORMAL_PARTY_MENU
ld [wPartyMenuTypeOrMessageID], a
@@ -2495,9 +2495,9 @@ MoveSelectionMenu:
; so it is necessary to put the di ei block to not cause tearing
call TextBoxBorder
hlcoord 4, 12
- ld [hl], "─"
+ ld [hl], '─'
hlcoord 10, 12
- ld [hl], "┘"
+ ld [hl], '┘'
ei
hlcoord 6, 13
call .writemoves
@@ -2603,7 +2603,7 @@ SelectMenuItem:
dec a
ld bc, SCREEN_WIDTH
call AddNTimes
- ld [hl], "▷"
+ ld [hl], '▷'
.select
ld hl, hUILayoutFlags
set BIT_DOUBLE_SPACED_MENU, [hl]
@@ -2886,9 +2886,9 @@ PrintMenuItem:
ld de, TypeText
call PlaceString
hlcoord 7, 11
- ld [hl], "/"
+ ld [hl], '/'
hlcoord 5, 9
- ld [hl], "/"
+ ld [hl], '/'
hlcoord 5, 11
ld de, wBattleMenuCurrentPP
lb bc, 1, 2
@@ -6841,17 +6841,17 @@ InitWildBattle:
ld [hli], a ; write front sprite pointer
ld [hl], b
ld hl, wEnemyMonNick ; set name to "GHOST"
- ld a, "G"
+ ld a, 'G'
ld [hli], a
- ld a, "H"
+ ld a, 'H'
ld [hli], a
- ld a, "O"
+ ld a, 'O'
ld [hli], a
- ld a, "S"
+ ld a, 'S'
ld [hli], a
- ld a, "T"
+ ld a, 'T'
ld [hli], a
- ld [hl], "@"
+ ld [hl], '@'
ld a, [wCurPartySpecies]
push af
ld a, MON_GHOST