Added Boss HP Config thing to LifeMaxNERD
This commit is contained in:
1 parent
c2a3b999e2
commit
d91a9ddca3
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user