summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Doury <DamienDoury@users.noreply.github.com>2021-04-14 14:43:34 +0200
committerDamien Doury <DamienDoury@users.noreply.github.com>2021-04-14 14:43:34 +0200
commitd1a529eef9ec674a5f7a52751e2f5d1820ea1ddd (patch)
tree241d4fcb095f3324d3199d3b04e3802857b5a774
parentfefcca04e98c69503659f38c594bc89a9a4b6fa5 (diff)
Fixed the outdated code (which in now in a new location).
-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):