summaryrefslogtreecommitdiff
path: root/engine/events
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-29 14:45:40 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-29 14:51:41 -0400
commitbcc0d633e948227e68da8a264d1533771a54b5c4 (patch)
treef28e95e126f4f398597539f5c45205ed048561e5 /engine/events
parentea426a88794b1d216a278b54d18cefafbf7d8771 (diff)
Identify the remaining (non-mobile) uses of another WRAM union
Diffstat (limited to 'engine/events')
-rw-r--r--engine/events/print_unown_2.asm2
-rw-r--r--engine/events/prof_oaks_pc.asm10
2 files changed, 6 insertions, 6 deletions
diff --git a/engine/events/print_unown_2.asm b/engine/events/print_unown_2.asm
index 0b72ae0b0..4926bf532 100644
--- a/engine/events/print_unown_2.asm
+++ b/engine/events/print_unown_2.asm
@@ -65,7 +65,7 @@ RotateUnownFrontpic:
ld a, b
ld [hli], a
push hl
- ld hl, wd003
+ ld hl, wPrintedUnownTileSource + 1
call .CountSetBit
pop hl
ld a, b
diff --git a/engine/events/prof_oaks_pc.asm b/engine/events/prof_oaks_pc.asm
index 1be775a4c..b272e3fb5 100644
--- a/engine/events/prof_oaks_pc.asm
+++ b/engine/events/prof_oaks_pc.asm
@@ -36,18 +36,18 @@ Rate:
ld hl, wPokedexSeen
ld b, wEndPokedexSeen - wPokedexSeen
call CountSetBits
- ld [wd002], a
+ ld [wTempPokedexSeenCount], a
ld hl, wPokedexCaught
ld b, wEndPokedexCaught - wPokedexCaught
call CountSetBits
- ld [wd003], a
+ ld [wTempPokedexCaughtCount], a
; print appropriate rating
call .UpdateRatingBuffers
ld hl, OakPCText3
call PrintText
call JoyWaitAorB
- ld a, [wd003]
+ ld a, [wTempPokedexCaughtCount]
ld hl, OakRatings
call FindOakRating
push de
@@ -57,10 +57,10 @@ Rate:
.UpdateRatingBuffers:
ld hl, wStringBuffer3
- ld de, wd002
+ ld de, wTempPokedexSeenCount
call .UpdateRatingBuffer
ld hl, wStringBuffer4
- ld de, wd003
+ ld de, wTempPokedexCaughtCount
call .UpdateRatingBuffer
ret