1 - Dragonfolly now takes full damage at all times, increased HP by ~20%.

2 - Old Duke can now be damaged during phase transitions, increased HP by ~20%.
3 - Yharon can now be damaged during phase transitions, increased HP by ~20%.
This commit is contained in:
mountaindrew10 committed 2022-03-17 14:12:44 -05:00
1 parent 9384713dc1
commit 3de2990465
4 files changed
+6 -51

No files matched your search

+1 -3
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.Bumblebirb
npc.height = 100;
npc.defense = 40;
npc.DR_NERD(0.1f);
npc.LifeMaxNERB(158500, 190000, 300000); // Old HP - 227500, 252500
npc.LifeMaxNERB(190200, 228240, 300000); // Old HP - 227500, 252500
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
npc.knockBackResist = 0f;
@@ -66,7 +66,6 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(npc.dontTakeDamage);
writer.Write(npc.localAI[0]);
writer.Write(npc.localAI[1]);
writer.Write(npc.localAI[2]);
@@ -77,7 +76,6 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void ReceiveExtraAI(BinaryReader reader)
{
npc.dontTakeDamage = reader.ReadBoolean();
npc.localAI[0] = reader.ReadSingle();
npc.localAI[1] = reader.ReadSingle();
npc.localAI[2] = reader.ReadSingle();
-13
View File
@@ -4565,10 +4565,6 @@ namespace CalamityMod.NPCs
bool phaseSwitchPhase = (phase2 && calamityGlobalNPC.newAI[0] < newPhaseTimer && calamityGlobalNPC.newAI[2] != 1f) ||
(phase3 && calamityGlobalNPC.newAI[1] < newPhaseTimer && calamityGlobalNPC.newAI[3] != 1f);
npc.dontTakeDamage = phaseSwitchPhase;
calamityGlobalNPC.DR = (npc.ai[0] == 5f || (enrageScale == 3f && !malice)) ? 0.75f : 0.1f;
if (phaseSwitchPhase)
{
if (npc.velocity.X < 0f)
@@ -5196,7 +5192,6 @@ namespace CalamityMod.NPCs
{
Vector2 value43 = new Vector2(0f, -8f);
npc.velocity = (npc.velocity * 21f + value43) / 10f;
npc.dontTakeDamage = true;
return;
}
@@ -5545,10 +5540,6 @@ namespace CalamityMod.NPCs
npc.Calamity().CurrentlyEnraged = biomeEnraged;
// If the player isn't in the ocean biome or Old Duke is transitioning between phases, become immune
if (!phase3AI)
npc.dontTakeDamage = npc.ai[0] == -1f || npc.ai[0] == 4f || npc.ai[0] == 9f;
// Enrage
if (biomeEnraged)
{
@@ -6444,8 +6435,6 @@ namespace CalamityMod.NPCs
// Pause before teleport
else if (npc.ai[0] == 12f)
{
npc.dontTakeDamage = true;
// Alpha
if (npc.alpha < 255 && npc.ai[2] >= num12 - 15f)
{
@@ -6501,8 +6490,6 @@ namespace CalamityMod.NPCs
if (npc.ai[3] >= 9f)
npc.ai[3] = 0f;
npc.dontTakeDamage = false;
npc.netUpdate = true;
}
}
+1 -3
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.OldDuke
npc.GetNPCDamage();
npc.defense = 90;
npc.DR_NERD(0.5f, null, null, null, true);
npc.LifeMaxNERB(412500, 495000, 400000);
npc.LifeMaxNERB(495000, 594000, 400000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
npc.knockBackResist = 0f;
@@ -65,7 +65,6 @@ namespace CalamityMod.NPCs.OldDuke
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(npc.dontTakeDamage);
writer.Write(npc.localAI[0]);
writer.Write(npc.localAI[1]);
writer.Write(npc.rotation);
@@ -76,7 +75,6 @@ namespace CalamityMod.NPCs.OldDuke
public override void ReceiveExtraAI(BinaryReader reader)
{
npc.dontTakeDamage = reader.ReadBoolean();
npc.localAI[0] = reader.ReadSingle();
npc.localAI[1] = reader.ReadSingle();
npc.rotation = reader.ReadSingle();
+4 -32
View File
@@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.Yharon
npc.width = 200;
npc.height = 200;
npc.defense = 90;
npc.LifeMaxNERB(1085000, 1300000, 370000);
npc.LifeMaxNERB(1302000, 1562400, 370000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
npc.lifeMax += (int)(npc.lifeMax * HPBoost);
npc.knockBackResist = 0f;
@@ -183,14 +183,6 @@ namespace CalamityMod.NPCs.Yharon
float acceleration = expertMode ? 0.75f : 0.7f;
float velocity = expertMode ? 12f : 11f;
// Damage immunity
if (phase3Change)
npc.dontTakeDamage = phase4Check;
else if (phase2Change)
npc.dontTakeDamage = phase3Check;
else if (phase1Change)
npc.dontTakeDamage = phase2Check;
if (phase3Change)
{
acceleration = expertMode ? 0.85f : 0.8f;
@@ -1528,32 +1520,12 @@ namespace CalamityMod.NPCs.Yharon
CalamityUtils.DisplayLocalizedText(key, messageColor);
}
npc.dontTakeDamage = false;
if (invincibilityCounter < Phase2InvincibilityTime)
{
npc.dontTakeDamage = true;
phase2 = phase3 = phase4 = false;
invincibilityCounter += 1;
}
else
{
// Damage immunity
switch (secondPhasePhase)
{
case 1:
npc.dontTakeDamage = phase2;
break;
case 2:
npc.dontTakeDamage = phase3;
break;
case 3:
npc.dontTakeDamage = phase4;
break;
case 4:
npc.dontTakeDamage = false;
break;
}
if (!npc.dontTakeDamage)
npc.dontTakeDamage = npc.ai[0] == 9f;
invincibilityCounter++;
}
// Acquire target and determine enrage state