Added Boss HP Config thing to LifeMaxNERD

This commit is contained in:
DominicKarma authored and GitHub committed 2019-10-03 13:31:43 -05:00
1 parent c2a3b999e2
commit d91a9ddca3
1 file changed
+6
+6
View File
@@ -20,6 +20,7 @@ namespace CalamityMod
{
case 1:
return player.GetCalamityPlayer().ZoneAbyssLayer1;
case 2:
return player.GetCalamityPlayer().ZoneAbyssLayer2;
@@ -62,6 +63,11 @@ namespace CalamityMod
{
npc.lifeMax = revengeance.Value;
}
if (npc.boss)
{
double HPBoost = (double)Config.BossHealthPercentageBoost * 0.01;
npc.lifeMax += (int)((double)npc.lifeMax * HPBoost);
}
}
/// <summary>
/// Detects nearby hostile NPCs from a given point