v2.3.0: crystal spire health bar now bleeds at less than 100 HP

This commit is contained in:
Evan Debenham
2023-11-27 20:17:58 -05:00
parent c221387115
commit 9fa8f123ee

View File

@@ -327,6 +327,8 @@ public class CrystalSpire extends Mob {
sprite.bloodBurstA(Dungeon.hero.sprite.center(), dmg);
sprite.flash();
BossHealthBar.bleed(HP <= HT/3);
if (isAlive()) {
Sample.INSTANCE.play(Assets.Sounds.SHATTER, 1f, Random.Float(1.15f, 1.25f));
((CrystalSpireSprite) sprite).updateIdle();