Enhancement: Enemy Health Bar (#3035)

* add enemy health bar

* add more cosmetic editor options to health bar

* add tooltip

* fix enemy health texture when no magic bar
This commit is contained in:
Adam Bird
2023-07-12 21:55:24 -04:00
committed by GitHub
parent 37f9c895d6
commit e90c8af452
6 changed files with 243 additions and 9 deletions
+5
View File
@@ -1212,6 +1212,11 @@ void Actor_Init(Actor* actor, PlayState* play) {
//Actor_SetObjectDependency(play, actor);
actor->init(actor, play);
actor->init = NULL;
// For enemy health bar we need to know the max health during init
if (actor->category == ACTORCAT_ENEMY) {
actor->maximumHealth = actor->colChkInfo.health;
}
}
}