diff options
| -rw-r--r-- | Smashing-rocks-has-a-chance-to-contain-items.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Smashing-rocks-has-a-chance-to-contain-items.md b/Smashing-rocks-has-a-chance-to-contain-items.md index 2bda45f..3cc8446 100644 --- a/Smashing-rocks-has-a-chance-to-contain-items.md +++ b/Smashing-rocks-has-a-chance-to-contain-items.md @@ -31,7 +31,7 @@ First, we must edit the `RockSmashScript` within [engine/events/overworld.asm](. + verbosegiveitem ITEM_FROM_MEM + closetext +.no_item -+ end ++ end ``` These changes stop the `RockSmashScript` from ending if it doesn't find a Pokemon, jumping to `.no_battle` if the game does not startle a Pokemon hiding within the rock, and then calling `RockItemEncounter` to determine whether or not an item will be rolled. If no item is rolled, the script will jump to `.no_item`, ending the script and giving the player nothing. |
