Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- == Routine ==
- Generate Random Number between -1 and 1
- If 0, set number to 3
- If -1, check current health
- If health <= 0x10 (1 heart), set number to 3
- If health > 0x10, call HP update function to "add" -1 heart to Link's current health manually, and branch out of routine
- If still processing, multiply number by 0x10 to represent a positive N heart change (since -1 has been handled).
- Write health increase amount to Save Context + 0x1424, which will automatically increment health over time.
- == Simple Stats ==
- If health > 1 heart:
- Even 33.3% chance of 3, 1, or -1 heart restoration
- If health <= 1 heart
- 66% chance of 3 heart restoration, 33% of 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement