diff options
| -rw-r--r-- | Smashing-rocks-has-a-chance-to-contain-items.md | 1 |
1 files changed, 0 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 53a25bd..2bda45f 100644 --- a/Smashing-rocks-has-a-chance-to-contain-items.md +++ b/Smashing-rocks-has-a-chance-to-contain-items.md @@ -80,7 +80,6 @@ We have to define `RockItemEncounter`, and a suitable place to put it would be i + db 48, PEARL + db 64, BRICK_PIECE + db -1 -+ ``` For starters, `RockItemEncounter` will load the `.RockItems` table into `hl`, and then call `Random`, which will load a random byte (i.e., a value between 0 and 255) in `a`. With this random value generated, it performs comparisons against the probabilities encoded in the `.RockItems` table, picking an item with the listed odds (out of 256: in the example, there's a 1 in 256 chance of getting a Max Revive, and a 64 in 256 (or 1 in 4) chance of getting a Brick Piece). |
