summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2021-10-06 15:17:14 -0400
committerIdain <luiscarlosholguinperez@outlook.com>2021-10-06 15:17:14 -0400
commitde9d3785c12ec87f522e4a34fe197342579cb403 (patch)
treec68fe156ae1c7342eb7b22a43cd607775b3feb54
parentea1036ed495c69a8e3a72e70afec4915b4c6806a (diff)
Update wMapObjects to reflect latest version in repo.
-rw-r--r--Allow-more-than-15-object_events-per-map.md29
1 files changed, 8 insertions, 21 deletions
diff --git a/Allow-more-than-15-object_events-per-map.md b/Allow-more-than-15-object_events-per-map.md
index 18915b7..2c45654 100644
--- a/Allow-more-than-15-object_events-per-map.md
+++ b/Allow-more-than-15-object_events-per-map.md
@@ -15,28 +15,15 @@ And edit [wram.asm](../blob/master/wram.asm):
- ds 40
+ ds 6
- wMapObjects:: ; d71e
- wPlayerObject:: map_object wPlayer
- wMap1Object:: map_object wMap1
- wMap2Object:: map_object wMap2
- wMap3Object:: map_object wMap3
- wMap4Object:: map_object wMap4
- wMap5Object:: map_object wMap5
- wMap6Object:: map_object wMap6
- wMap7Object:: map_object wMap7
- wMap8Object:: map_object wMap8
- wMap9Object:: map_object wMap9
- wMap10Object:: map_object wMap10
- wMap11Object:: map_object wMap11
- wMap12Object:: map_object wMap12
- wMap13Object:: map_object wMap13
- wMap14Object:: map_object wMap14
- wMap15Object:: map_object wMap15
-+wMap16Object:: map_object wMap16
-+wMap17Object:: map_object wMap17
- wMapObjectsEnd::
+ 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
- wObjectMasks:: ds NUM_OBJECTS ; d81e
+ wObjectMasks:: ds NUM_OBJECTS
```
That's it! We just added space for maps to define 17 total `object_event`s. (Plus the player object, making 18 total.) So you could, for example, add two more NPCs to make Goldenrod City feel busier.