summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/battle/ai/scoring.asm8
-rw-r--r--engine/gfx/color.asm10
-rw-r--r--engine/gfx/dma_transfer.asm4
-rw-r--r--engine/gfx/sgb_layouts.asm2
-rw-r--r--engine/menus/menu_2.asm3
5 files changed, 13 insertions, 14 deletions
diff --git a/engine/battle/ai/scoring.asm b/engine/battle/ai/scoring.asm
index d0d17cc0d..10ad045ff 100644
--- a/engine/battle/ai/scoring.asm
+++ b/engine/battle/ai/scoring.asm
@@ -1046,7 +1046,7 @@ AI_Smart_Unused2B:
.asm_38aaa
push hl
ld hl, wPlayerUsedMoves
- ld c, 4
+ ld c, NUM_MOVES
.asm_38ab0
ld a, [hli]
@@ -1511,7 +1511,7 @@ AI_Smart_Spite:
.asm_38ce7
push hl
ld b, a
- ld c, 4
+ ld c, NUM_MOVES
ld hl, wBattleMonMoves
ld de, wBattleMonPP
@@ -2147,10 +2147,10 @@ AI_Smart_Rollout:
jr nc, .asm_39020
ld a, [wEnemyAccLevel]
- cp 7
+ cp BASE_STAT_LEVEL
jr c, .asm_39020
ld a, [wPlayerEvaLevel]
- cp 8
+ cp BASE_STAT_LEVEL + 1
jr nc, .asm_39020
; Otherwise, 80% chance to greatly encourage this move.
diff --git a/engine/gfx/color.asm b/engine/gfx/color.asm
index 35ad66f7f..0064edfc3 100644
--- a/engine/gfx/color.asm
+++ b/engine/gfx/color.asm
@@ -277,13 +277,13 @@ Unreferenced_Function8bec:
ldh a, [hCGB]
and a
jr nz, .cgb
- ld hl, wPlayerLightScreenCount
+ ld hl, wBetaPokerSGBPals
jp PushSGBPals
.cgb
- ld a, [wEnemyLightScreenCount] ; col
+ ld a, [wBetaPokerSGBCol]
ld c, a
- ld a, [wEnemyReflectCount] ; row
+ ld a, [wBetaPokerSGBRow]
hlcoord 0, 0, wAttrmap
ld de, SCREEN_WIDTH
.loop
@@ -294,10 +294,10 @@ Unreferenced_Function8bec:
jr .loop
.done
- ld b, $0
+ ld b, 0
add hl, bc
lb bc, 6, 4
- ld a, [wEnemySafeguardCount] ; value
+ ld a, [wBetaPokerSGBAttr]
and $3
call FillBoxCGB
call CopyTilemapAtOnce
diff --git a/engine/gfx/dma_transfer.asm b/engine/gfx/dma_transfer.asm
index a3cdb6dd3..f30c5eb45 100644
--- a/engine/gfx/dma_transfer.asm
+++ b/engine/gfx/dma_transfer.asm
@@ -450,7 +450,7 @@ PadMapForHDMATransfer:
ldh [hMapObjectIndexBuffer], a
ret
-_Get2bpp::
+HDMATransfer2bpp::
; 2bpp when [rLCDC] & $80
; switch to WRAM bank 6
ldh a, [rSVBK]
@@ -494,7 +494,7 @@ _Get2bpp::
ldh [rSVBK], a
ret
-_Get1bpp::
+HDMATransfer1bpp::
; 1bpp when [rLCDC] & $80
.loop
ld a, c
diff --git a/engine/gfx/sgb_layouts.asm b/engine/gfx/sgb_layouts.asm
index 8b6c218f4..f4a523df8 100644
--- a/engine/gfx/sgb_layouts.asm
+++ b/engine/gfx/sgb_layouts.asm
@@ -333,7 +333,7 @@ endr
.SGB_BetaPoker:
ld hl, BlkPacket_9a86
- ld de, wPlayerLightScreenCount ; ???
+ ld de, wBetaPokerSGBPals
ld bc, PALPACKET_LENGTH
call CopyBytes
ld hl, PalPacket_BetaPoker
diff --git a/engine/menus/menu_2.asm b/engine/menus/menu_2.asm
index 67a93c74f..3c68c2c49 100644
--- a/engine/menus/menu_2.asm
+++ b/engine/menus/menu_2.asm
@@ -110,8 +110,7 @@ CoinString:
ShowMoney_TerminatorString:
db "@"
-Unreferenced_Function24b8f:
-; related to safari?
+Unreferenced_StartMenu_PrintSafariGameStatus:
ld hl, wOptions
ld a, [hl]
push af