shithub: pokecrystal

Download patch

ref: 57a23299fb014b99aa0cedd598ffbd814c699d96
parent: ae79200b1dd8ed693f968dc61048aaf9515db530
author: vulcandth <vulcandth@gmail.com>
date: Fri Sep 9 06:26:05 EDT 2022

Use DEF for constants in Music IDs design flaw doc

--- a/docs/design_flaws.md
+++ b/docs/design_flaws.md
@@ -247,18 +247,18 @@
 
 ```diff
 -; GetMapMusic picks music for this value (see home/map.asm)
--MUSIC_MAHOGANY_MART EQU $64
+-DEF MUSIC_MAHOGANY_MART EQU $64
 +; GetMapMusic picks music for these values (see home/map.asm)
-+MUSIC_MAHOGANY_MART EQU $fc
-+MUSIC_RADIO_TOWER   EQU $fd
++DEF MUSIC_MAHOGANY_MART EQU $fc
++DEF MUSIC_RADIO_TOWER   EQU $fd
 
  ; ExitPokegearRadio_HandleMusic uses these values
- RESTART_MAP_MUSIC EQU $fe
- ENTER_MAP_MUSIC   EQU $ff
+ DEF RESTART_MAP_MUSIC EQU $fe
+ DEF ENTER_MAP_MUSIC   EQU $ff
 -
 -; GetMapMusic picks music for this bit flag
--RADIO_TOWER_MUSIC_F EQU 7
--RADIO_TOWER_MUSIC EQU 1 << RADIO_TOWER_MUSIC_F
+-DEF RADIO_TOWER_MUSIC_F EQU 7
+-DEF RADIO_TOWER_MUSIC EQU 1 << RADIO_TOWER_MUSIC_F
 ```
 
 Edit `GetMapMusic`: