Health Alarm Revamp | ||
Release Date: May 15, 2022 |
Author: MetroidNerd#9001
|
|
Type: Assembly |
Rating:
Pending
|
|
Links:
[download] .asm file
(109 downloads)
|
Game:
|
Description
This code reworks how the low health status is calculated
Instead of always setting off the alarm at 30 energy, the threshold scales based on Samus' max energy
When Samus has 399 or less health, the alarm will trigger at 30 energy as usual
Each subsequent 100 health she attains will increase the threshold by 10
Example:
- At 5 energy tanks (giving 100 energy each), the low health alarm will trigger at 50 energy
- At 14 energy tanks, the low health alarm will trigger at 140 energy
This code also alters the cutoff for the game exclusively giving Samus health drops at low energy
Instead of always cutting off at 50, it cuts off at 20 above the low energy threshold
Notes:
- This patch hijacks both the room load routine and the energy tank collection routine
If either of these routines have been changed, their respective hijack points will have to be changed as well
- This patch uses 4 bytes of RAM
- This patch uses 70 bytes of freespace in bank $84
Instead of always setting off the alarm at 30 energy, the threshold scales based on Samus' max energy
When Samus has 399 or less health, the alarm will trigger at 30 energy as usual
Each subsequent 100 health she attains will increase the threshold by 10
Example:
- At 5 energy tanks (giving 100 energy each), the low health alarm will trigger at 50 energy
- At 14 energy tanks, the low health alarm will trigger at 140 energy
This code also alters the cutoff for the game exclusively giving Samus health drops at low energy
Instead of always cutting off at 50, it cuts off at 20 above the low energy threshold
Notes:
- This patch hijacks both the room load routine and the energy tank collection routine
If either of these routines have been changed, their respective hijack points will have to be changed as well
- This patch uses 4 bytes of RAM
- This patch uses 70 bytes of freespace in bank $84
Media
Ratings and Reviews
This resource has not yet been rated.
Click here to rate this resource
Click here to rate this resource