Skip to content

Conversation

@Starexify
Copy link

Linked Issues

Fixes #6009

Description

This PR fixes the health bar value being incorrect after resetting a song.
Additionally, the health reset logic is now into it's own function resetHealth() for convenience.

For modding convenience, this also changes the order of the health bar reset so that onSongRetry receives the updated values after resetting.

Screenshots/Videos

0.7.5:

0.7.5.mp4

This PR:

PR.mp4

As seen in this image, the original values when loading a song are indeed 1-1-0

image

Here is how the differences look like visually:
(Start showing how it looks like when starting the song)

to

@github-actions github-actions bot added pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. labels Oct 5, 2025
@Hundrec Hundrec added the type: minor bug Involves a minor bug or issue. label Oct 6, 2025
@Hundrec
Copy link
Member

Hundrec commented Oct 6, 2025

Very nice, love tiny detail fixes

…enu. Also health values during onSongRetry are now be the correct values instead of the old ones
Copy link
Member

@Hundrec Hundrec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR does fix the restarting position, but no longer lerps.
Can you restore that behavior?

@Hundrec Hundrec added status: needs revision Cannot be approved because it is awaiting some work by the contributor. and removed status: pending triage Awaiting review. labels Oct 14, 2025
@Starexify
Copy link
Author

Starexify commented Oct 14, 2025

This PR does fix the restarting position, but no longer lerps.
Can you restore that behavior?

Lerps? You mean it should lerp from the old value to current value instead of directly going to the new value?

Because tbf didnt notice it and it isnt like that in the src where I modified, so thats interestingly odd 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: needs revision Cannot be approved because it is awaiting some work by the contributor. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

Bug Report: Health does not visually reset to the same amount after restarting the song

2 participants