Merge pull request #2593 from gamerbross/feature/legacy-healthicon-winning

[FEATURE] Add Winning support to Legacy Health Icons
This commit is contained in:
Eric 2024-05-24 01:51:10 -04:00 committed by GitHub
commit b167e485a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -373,6 +373,10 @@ class HealthIcon extends FunkinSprite
// Don't flip BF's icon here! That's done later.
this.animation.add(Idle, [0], 0, false, false);
this.animation.add(Losing, [1], 0, false, false);
if (animation.numFrames >= 3)
{
this.animation.add(Winning, [2], 0, false, false);
}
}
function correctCharacterId(charId:Null<String>):String