Path: blob/master/engine/events/hidden_objects/bookshelves.asm
1271 views
; prints text for bookshelves in buildings without sign events1PrintBookshelfText::2ld a, [wSpritePlayerStateData1FacingDirection]3cp SPRITE_FACING_UP4jr nz, .noMatch5; facing up6ld a, [wCurMapTileset]7ld b, a8lda_coord 8, 79ld c, a10ld hl, BookshelfTileIDs11.loop12ld a, [hli]13cp $ff14jr z, .noMatch15cp b16jr nz, .nextBookshelfEntry117ld a, [hli]18cp c19jr nz, .nextBookshelfEntry220ld a, [hl]21push af22call EnableAutoTextBoxDrawing23pop af24call PrintPredefTextID25xor a26ldh [hInteractedWithBookshelf], a27ret28.nextBookshelfEntry129inc hl30.nextBookshelfEntry231inc hl32jr .loop33.noMatch34ld a, $ff35ldh [hInteractedWithBookshelf], a36farjp PrintCardKeyText3738INCLUDE "data/tilesets/bookshelf_tile_ids.asm"394041