summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Add-different-kinds-of-new-items.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Add-different-kinds-of-new-items.md b/Add-different-kinds-of-new-items.md
index 959cd6a..7ad8acd 100644
--- a/Add-different-kinds-of-new-items.md
+++ b/Add-different-kinds-of-new-items.md
@@ -21,7 +21,7 @@ There are 256 valid item IDs, from $00 to $FF, broken into different segments:
- **$FA−$FE:** Not really usable, and of these ID values, only `ITEM_FA` is defined.
- **$FF:** `ITEM_FROM_MEM`. A special value used in some scripts to give whatever item is in `wScriptVar`, instead of a hard-coded item. (For instance, fruit trees rely on it so they don't need a separate script for each kind of Berry and Apricorn.)
-(Note that after the `add_tm`s and `add_hm`s, there are also some `add_mt`s. This macro defines more <code><i>MOVENAME</i>_TMNUM</code> constants, but not more <code>TM_<i>MOVENAME</i></code> or <code>HM_<i>MOVENAME</i></code> constants, so the moves are recognized as teachable but don't have an associated item.)
+(Note that after the `add_tm`s and `add_hm`s, there are also some `add_mt`s. This macro defines more <code><i>MOVENAME</i>\_TMNUM</code> constants, but not more <code>TM\_<i>MOVENAME</i></code> or <code>HM\_<i>MOVENAME</i></code> constants, so the moves are recognized as teachable but don't have an associated item.)
It's important to understand that there's nothing special about the specific numeric values, except $00 and $FF. `const_def` starts a new constant sequence at 0, and every `const`, `add_tm`, or `add_hm` after that defines the next constant in the sequence. In the line "`const BRIGHTPOWDER ; 03`", the "`; 03`" is just a comment; `BRIGHTPOWDER` has the value $03 only because it's the fourth item in the sequence (remember, IDs start at 0, not 1). So if you add or remove something in the middle of the sequence, everything after it will be shifted. To avoid getting confused, when you add or remove an item, update the comments with the new ID values.