Path: blob/master/engine/events/hidden_objects/gym_statues.asm
1271 views
GymStatues:1; if in a gym and have the corresponding badge, a = GymStatueText2_id and jp PrintPredefTextID2; if in a gym and don't have the corresponding badge, a = GymStatueText1_id and jp PrintPredefTextID3; else ret4call EnableAutoTextBoxDrawing5ld a, [wSpritePlayerStateData1FacingDirection]6cp SPRITE_FACING_UP7ret nz8ld hl, MapBadgeFlags9ld a, [wCurMap]10ld b, a11.loop12ld a, [hli]13cp $ff14ret z15cp b16jr z, .match17inc hl18jr .loop19.match20ld b, [hl]21ld a, [wBeatGymFlags]22and b23cp b24tx_pre_id GymStatueText225jr z, .haveBadge26tx_pre_id GymStatueText127.haveBadge28jp PrintPredefTextID2930INCLUDE "data/maps/badge_maps.asm"3132GymStatueText1::33text_far _GymStatueText134text_end3536GymStatueText2::37text_far _GymStatueText238text_end394041