Skip to content

Commit 7cdc83c

Browse files
committed
stars restore mario's health
1 parent 3801140 commit 7cdc83c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/game/interaction.c

+2
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,8 @@ u32 interact_star_or_key(struct MarioState *m, UNUSED u32 interactType, struct O
780780
if (m->health >= 0x100) {
781781
if (!gSpeedrunMode) {
782782
mario_stop_riding_and_holding(m);
783+
} else {
784+
gMarioState->health = 0x800;
783785
}
784786

785787
#if ENABLE_RUMBLE

src/game/mario_actions_cutscene.c

+1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ void general_star_dance_handler(struct MarioState *m, s32 isInWater) {
640640
} else if (m->actionState == 2 && is_anim_at_end(m)) {
641641
disable_time_stop();
642642
enable_background_sound();
643+
gMarioState->health = 0x800;
643644
dialogID = get_star_collection_dialog(m);
644645
if (dialogID != 0) {
645646
// look up for dialog

0 commit comments

Comments
 (0)