Solaestas / Everglow

GNU General Public License v3.0
27 stars 4 forks source link

Boss Health Bars do not appear #218

Open Setnour6 opened 10 months ago

Setnour6 commented 10 months ago

Using Windows 11, Steam.

When a boss is active, the boss bar does not appear at all. Anything associated with boss bar changes (such as the Better Boss Health Bar mod) do not appear as well. This has been an issue for months.

This may be related to NewBossBar.cs in Everglow\Sources\Modules\Myth\Common.

public override void PostDrawInterface(SpriteBatch spriteBatch)
{
    for (int f = 0; f < 200; f++)
    {
        if (Main.npc[f].type == ModContent.NPCType<BloodTusk>() && Main.npc[f].active && !Main.npc[f].friendly)
            Main.spriteBatch.Draw(ModContent.Request<Texture2D>("Everglow/Myth/TheTusk/NPCs/Bosses/BloodTusk/BloodTuskBar").Value, new Vector2(Main.screenWidth / 2f - 2, Main.screenHeight - 55), null, Color.White, 0f, new Vector2(21, 22), 1f, SpriteEffects.None, 0f);
    }
}

The code needs to be rewritten so the health bars can appear and the BloodTusk health bar can still appear the way it should be.

The issue happens 100% of the time and needs to be fixed before the deployment of the 1.4.4 release. For now, I will put it on medium priority, but you can move the priority up if you want to, or tell me to do it.