mirror of
https://github.com/izzy2lost/Ghostship.git
synced 2026-06-19 01:17:03 -07:00
Fixed mario not decrementing health when underwater
This commit is contained in:
+4
-4
@@ -1467,8 +1467,8 @@ void update_mario_health(struct MarioState *m) {
|
||||
CALL_CANCELLABLE_EVENT(PlayerHealthChange, m, amount) {
|
||||
m->health += amount;
|
||||
}
|
||||
} else if (!gDebugLevelSelect) {
|
||||
s32 amount = (terrainIsSnow ? 3 : 1);
|
||||
} else /* if (!gDebugLevelSelect) */ {
|
||||
s32 amount = -(terrainIsSnow ? 3 : 1);
|
||||
CALL_CANCELLABLE_EVENT(PlayerHealthChange, m, amount) {
|
||||
m->health += amount;
|
||||
}
|
||||
@@ -1481,15 +1481,15 @@ void update_mario_health(struct MarioState *m) {
|
||||
s32 amount = 0x40;
|
||||
CALL_CANCELLABLE_EVENT(PlayerHealthChange, m, amount) {
|
||||
m->health += amount;
|
||||
m->healCounter--;
|
||||
}
|
||||
m->healCounter--;
|
||||
}
|
||||
if (m->hurtCounter > 0) {
|
||||
s32 amount = -0x40;
|
||||
CALL_CANCELLABLE_EVENT(PlayerHealthChange, m, amount) {
|
||||
m->health += amount;
|
||||
m->hurtCounter--;
|
||||
}
|
||||
m->hurtCounter--;
|
||||
}
|
||||
|
||||
if (m->health > 0x880) {
|
||||
|
||||
Reference in New Issue
Block a user