Advertisement
mzxrules

Drinking Poe

Apr 10th, 2016
585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. == Routine ==
  2.  
  3. Generate Random Number between -1 and 1
  4. If 0, set number to 3
  5. If -1, check current health
  6. If health <= 0x10 (1 heart), set number to 3
  7. If health > 0x10, call HP update function to "add" -1 heart to Link's current health manually, and branch out of routine
  8.  
  9. If still processing, multiply number by 0x10 to represent a positive N heart change (since -1 has been handled).
  10. Write health increase amount to Save Context + 0x1424, which will automatically increment health over time.
  11.  
  12. == Simple Stats ==
  13.  
  14. If health > 1 heart:
  15.  
  16. Even 33.3% chance of 3, 1, or -1 heart restoration
  17.  
  18. If health <= 1 heart
  19.  
  20. 66% chance of 3 heart restoration, 33% of 1.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement