Health text color adjustment
This commit is contained in:
1 parent
da9826c270
commit
f759c1ea3d
3 files changed
+4
-6
No files matched your search
@@ -100,9 +100,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
else
|
||||
immuneTimer = 300;
|
||||
|
||||
if (enraged)
|
||||
npc.Calamity().CurrentlyEnraged = true;
|
||||
|
||||
// Take damage or not
|
||||
npc.dontTakeDamage = immuneTimer <= 0;
|
||||
|
||||
|
||||
@@ -512,7 +512,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
#region Enrage and DR
|
||||
if (!player.Hitbox.Intersects(safeBox) || malice)
|
||||
{
|
||||
|
||||
if (uDieLul < 1.5f)
|
||||
{
|
||||
uDieLul *= 1.01f;
|
||||
@@ -535,7 +534,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
}
|
||||
protectionBoost = false;
|
||||
}
|
||||
npc.Calamity().CurrentlyEnraged = protectionBoost;
|
||||
npc.Calamity().CurrentlyEnraged = !player.Hitbox.Intersects(safeBox);
|
||||
|
||||
// Set DR to be 99% and unbreakable if enraged. Boost DR during the 5th attack.
|
||||
CalamityGlobalNPC global = npc.Calamity();
|
||||
|
||||
@@ -756,7 +756,9 @@ namespace CalamityMod.UI
|
||||
if (_prevLife == _maxHealth)
|
||||
percentHealthText = "100%";
|
||||
Vector2 textSize = HPBarFont.MeasureString(percentHealthText);
|
||||
DrawBorderStringEightWay(sb, HPBarFont, percentHealthText, new Vector2(x, y + 22 - textSize.Y), OrangeColour, OrangeBorderColour * 0.25f);
|
||||
|
||||
Color hpTextColor = Color.Lerp(OrangeColour, enrageColor, Utils.InverseLerp(0f, 75f, EnrageTimer, true) * 0.18f);
|
||||
DrawBorderStringEightWay(sb, HPBarFont, percentHealthText, new Vector2(x, y + 22 - textSize.Y), hpTextColor, OrangeBorderColour * 0.25f);
|
||||
|
||||
string name = _npc.FullName;
|
||||
Vector2 nameSize = Main.fontMouseText.MeasureString(name);
|
||||
|
||||
Reference in new issue
Block a user