diff options
Diffstat (limited to 'Hard-coded-logic.md')
-rw-r--r-- | Hard-coded-logic.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Hard-coded-logic.md b/Hard-coded-logic.md index 22e3f4c..a7997b9 100644 --- a/Hard-coded-logic.md +++ b/Hard-coded-logic.md @@ -133,7 +133,7 @@ This is caused by `InitEnemyTrainer` in [engine/battle/core.asm](../blob/master/ ## Some high values for maps' music IDs play incorrectly -If a map's music ID is $64 (the value of `MUSIC_MAHOGANY_MART` or `MUSIC_SUICUNE_BATTLE`) in [data/maps/maps.asm](../blob/master/data/maps/maps.asm) it will play either `MUSIC_ROCKET_HIDEOUT` or `MUSIC_CHERRYGROVE_CITY`. Moreover, if a map's music ID is $80 or above (the value of `RADIO_TOWER_MUSIC`) it might play `MUSIC_ROCKET_OVERTURE` or something else. +If a map's music ID in [data/maps/maps.asm](../blob/master/data/maps/maps.asm) is $64 (the value of `MUSIC_MAHOGANY_MART` or `MUSIC_SUICUNE_BATTLE`) it will play either `MUSIC_ROCKET_HIDEOUT` or `MUSIC_CHERRYGROVE_CITY`. Moreover, if a map's music ID is $80 or above (the value of `RADIO_TOWER_MUSIC`) it might play `MUSIC_ROCKET_OVERTURE` or something else. This is caused by `GetMapMusic` in [home/map.asm](../blob/master/home/map.asm): @@ -184,7 +184,7 @@ GetMapMusic:: ; 2cbd ; 2cff ``` -This can cause problems if you add too many new music songs, or rearrange the existing ones. A solution would be to redefine the special music constants in [constants/music_constants.asm](../blob/master/constants/music_constants.asm): +This can cause problems if you add too many new songs, or rearrange the existing ones. A solution would be to redefine the special music constants in [constants/music_constants.asm](../blob/master/constants/music_constants.asm): ```asm ; GetMapMusic picks music for these values (see home/map.asm) |