summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Allow-more-than-15-object_events-per-map.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Allow-more-than-15-object_events-per-map.md b/Allow-more-than-15-object_events-per-map.md
index c688089..dcf4189 100644
--- a/Allow-more-than-15-object_events-per-map.md
+++ b/Allow-more-than-15-object_events-per-map.md
@@ -1,12 +1,12 @@
Map scripts in [maps/\*.asm](../tree/master/maps/) declare new objects—NPCs, item balls, Berry trees, etc—with the `object_event` macro. But you can't have more than 15 `object_event`s in one map. ([GoldenrodCity.asm](../blob/master/maps/GoldenrodCity.asm) reaches this limit, and four other maps nearly do with 14 `object_event`s.) Turns out this is an easy limit to increase.
-Edit [constants/wram_constants.asm](../blob/master/constants/wram_constants.asm):
+Edit [constants/map_object_constants.asm](../blob/master/constants/map_object_constants.asm):
```diff
- ; wMapObjects:: ; d71e
+ MAPOBJECT_LENGTH EQU _RS
+-NUM_OBJECTS EQU 16
++NUM_OBJECTS EQU 18
PLAYER_OBJECT EQU 0
--NUM_OBJECTS EQU 16
-+NUM_OBJECTS EQU 18
```
And edit [wram.asm](../blob/master/wram.asm):