aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events/hidden_object_functions18.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 13:23:51 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-07-03 13:23:51 -0400
commite882708b85e19cf30e05fcf31ccedc5f03367702 (patch)
tree05d84be6cc3b04ccabdc4071f601a9761e845775 /engine/events/hidden_object_functions18.asm
parentReorganize home header (diff)
downloadpokeyellow-e882708b85e19cf30e05fcf31ccedc5f03367702.tar.gz
pokeyellow-e882708b85e19cf30e05fcf31ccedc5f03367702.tar.xz
pokeyellow-e882708b85e19cf30e05fcf31ccedc5f03367702.zip
Split up engine/events/hidden_object_functions
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]engine/events/hidden_objects/bench_guys.asm (renamed from engine/events/hidden_object_functions18.asm)74
1 files changed, 0 insertions, 74 deletions
diff --git a/engine/events/hidden_object_functions18.asm b/engine/events/hidden_objects/bench_guys.asm
index c0e5aa34..995b5929 100755..100644
--- a/engine/events/hidden_object_functions18.asm
+++ b/engine/events/hidden_objects/bench_guys.asm
@@ -1,52 +1,3 @@
-GymStatues:
-; if in a gym and have the corresponding badge, a = GymStatueText2_id and jp PrintPredefTextID
-; if in a gym and don’t have the corresponding badge, a = GymStatueText1_id and jp PrintPredefTextID
-; else ret
- call EnableAutoTextBoxDrawing
- ld a, [wSpriteStateData1 + 9]
- cp SPRITE_FACING_UP
- ret nz
- ld hl, .BadgeFlags
- ld a, [wCurMap]
- ld b, a
-.loop
- ld a, [hli]
- cp $ff
- ret z
- cp b
- jr z, .match
- inc hl
- jr .loop
-.match
- ld b, [hl]
- ld a, [wBeatGymFlags]
- and b
- cp b
- tx_pre_id GymStatueText2
- jr z, .haveBadge
- tx_pre_id GymStatueText1
-.haveBadge
- jp PrintPredefTextID
-
-.BadgeFlags:
- db PEWTER_GYM, %00000001
- db CERULEAN_GYM, %00000010
- db VERMILION_GYM,%00000100
- db CELADON_GYM, %00001000
- db FUCHSIA_GYM, %00010000
- db SAFFRON_GYM, %00100000
- db CINNABAR_GYM, %01000000
- db VIRIDIAN_GYM, %10000000
- db $ff
-
-GymStatueText1::
- TX_FAR _GymStatueText1
- db "@"
-
-GymStatueText2::
- TX_FAR _GymStatueText2
- db "@"
-
PrintBenchGuyText:
call EnableAutoTextBoxDrawing
ld hl, BenchGuyTextPointers
@@ -171,28 +122,3 @@ SaffronCityPokecenterBenchGuyText2:
CeladonCityHotelText::
TX_FAR _CeladonCityHotelText
db "@"
-
- ret
-
-UnusedPredefText::
- db "@"
-
-PrintBookcaseText:
- call EnableAutoTextBoxDrawing
- tx_pre_jump BookcaseText
-
-BookcaseText::
- TX_FAR _BookcaseText
- db "@"
-
-OpenPokemonCenterPC:
- ld a, [wSpriteStateData1 + 9]
- cp SPRITE_FACING_UP ; check to see if player is facing up
- ret nz
- call EnableAutoTextBoxDrawing
- ld a, $1
- ld [wAutoTextBoxDrawingControl], a
- tx_pre_jump PokemonCenterPCText
-
-PokemonCenterPCText::
- TX_POKECENTER_PC