mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-03 17:19:05 -04:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user