From d419bf77d688fc2a6dd47f1804f307f845cfec85 Mon Sep 17 00:00:00 2001 From: Zeta_Null Date: Wed, 18 Oct 2023 20:41:41 -0400 Subject: [PATCH] Bump max Object_Events up from 15 to 17 Breaks save compatibility with previous build. Oh well! --- constants/map_object_constants.asm | 2 +- ram/wram.asm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constants/map_object_constants.asm b/constants/map_object_constants.asm index ada9a98..f182ab0 100644 --- a/constants/map_object_constants.asm +++ b/constants/map_object_constants.asm @@ -116,7 +116,7 @@ DEF MAPOBJECT_SCRIPT_POINTER rw ; a DEF MAPOBJECT_EVENT_FLAG rw ; c rb_skip 2 DEF MAPOBJECT_LENGTH EQU _RS -DEF NUM_OBJECTS EQU 16 +DEF NUM_OBJECTS EQU 18 DEF PLAYER_OBJECT EQU 0 DEF MAPOBJECT_PALETTE_MASK EQU %11110000 diff --git a/ram/wram.asm b/ram/wram.asm index 686d1fc..57e7f35 100644 --- a/ram/wram.asm +++ b/ram/wram.asm @@ -2939,11 +2939,11 @@ endr wCmdQueue:: ds CMDQUEUE_CAPACITY * CMDQUEUE_ENTRY_SIZE - ds 40 + ds 6 wMapObjects:: wPlayerObject:: map_object wPlayer ; player is map object 0 -; wMap1Object - wMap15Object +; wMap1Object - wMap17Object for n, 1, NUM_OBJECTS wMap{d:n}Object:: map_object wMap{d:n} endr