From 579e73311319868d8b186e3442098358d839b3b3 Mon Sep 17 00:00:00 2001 From: Astatin Date: Tue, 18 Mar 2025 19:12:59 +0900 Subject: Add generation events to be executed on floor generation --- definitions.gbasm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'definitions.gbasm') diff --git a/definitions.gbasm b/definitions.gbasm index 760751c..6a01759 100644 --- a/definitions.gbasm +++ b/definitions.gbasm @@ -170,6 +170,20 @@ ; _padding: u32 ; } +.DEFINE mem_dungeon_generation_events $c9c0 ; Takes the memory from c9c0 to c9ff (16 events) +; struct events { +; floor_idx: u8, +; +; dungeon_gen_event_jump_table_index: u8 +; 00: Nothing +; 01: Start dialogue at the beggining +; 02: Spawn a special entity (should not be used twice on the same floor +; +; free_parameters: (u16) +; 01: Dialogue script address +; 02: Entity template index (u8 + padding8) +; } + .DEFINE mem_oam_buffer $ca00 ; Until $ca9f .DEFINE mem_oam_buffer_low ($c980) -- cgit v1.2.3-70-g09d2