From 7ccc3f42244eef9385ba878f343a18852fab4dfa Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 1 Jul 2025 16:53:10 +0200 Subject: Make dungeon flag skip floor count, disable top bar & disable attack menu --- modes/dungeon.gbasm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'modes/dungeon.gbasm') diff --git a/modes/dungeon.gbasm b/modes/dungeon.gbasm index 14d0381..1d27cc1 100644 --- a/modes/dungeon.gbasm +++ b/modes/dungeon.gbasm @@ -112,10 +112,24 @@ STAT_Entrypoint: Dungeon_VBLANK_Entrypoint: .SET_WINDOW_LCDC_E + + LD A, $mem_dungeon_flags + BIT 3, A + JR NZ, =.top_bar.enable + + .DISABLE_TOP_BAR + + LD A, $67 + LD $reg_lyc, A + + JR =.top_bar.end + .top_bar.enable: + .ENABLE_TOP_BAR - LD A, $palette_bold_font - LD $reg_bg_palette, A + LD A, $0a + LD $reg_lyc, A + .top_bar.end: CALL $OAM_DMA_Transfer_routine @@ -135,8 +149,6 @@ Dungeon_VBLANK_Entrypoint: Skip_VBlank_Dungeon_Update: ; LYC - LD A, $0a - LD $reg_lyc, A .ENABLE_LYC_INTERRUPT .RESET_INTERRUPTS EI -- cgit v1.2.3-70-g09d2