This patch provides three main features that affect the hurt routine and the power-up-into-item-box routine, all of which can be set to be controlled by free RAM:
1. The ability to choose to bypass the power-down routine and instantly kill Mario regardless of his current power-up status. (This is good for levels that require the player to keep a power-up the entire time.)
2. The ability to choose to follow the more traditional power-down routine, where Fire and Caped Mario powers-down to big Mario and then to small Mario. There is an additional option to alternatively give Mario the item in his item box instantly; this can also be set to be controlled by free RAM.
3. The ability to choose when and how a power-up is put into the player's item box. This includes a fix to prevent mushrooms from overwriting capes and fire flowers in your item box.
Make sure to read the README.txt and customization notes so you understand what everything does! If you have questions about what exactly something does that is not clarified well enough in the notes, feel free to PM me.
Tested with: Asar 1.71, ZMZ 1.08, SA-1 1.32 and LM 3.04.
After several tries, your patch finally worked, so I can accept it. Added some prot statements, though, since both your codes were causing freespace leaks whenever the Hurt_FC label took part in the code.