1 - Removed damage taken mults on head and tail
2 - Reduced DoG's health by ~15%
This commit is contained in:
1 parent
06da964b28
commit
1654616628
3 files changed
+3
-24
No files matched your search
@@ -74,7 +74,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
global.unbreakableDR = true;
|
||||
NPC.chaseable = false;
|
||||
}
|
||||
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
|
||||
NPC.LifeMaxNERB(750000, 900000, 1500000);
|
||||
NPC.aiStyle = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
|
||||
@@ -214,8 +214,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.width = 104;
|
||||
NPC.height = 104;
|
||||
NPC.defense = 50;
|
||||
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
|
||||
NPC.takenDamageMultiplier = 1.1f;
|
||||
NPC.LifeMaxNERB(750000, 900000, 1500000);
|
||||
NPC.aiStyle = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
@@ -472,15 +471,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
bool increaseSpeed = distanceFromTarget > CalamityGlobalNPC.CatchUpDistance200Tiles;
|
||||
bool increaseSpeedMore = distanceFromTarget > CalamityGlobalNPC.CatchUpDistance350Tiles;
|
||||
|
||||
float takeLessDamageDistance = 1600f;
|
||||
if (distanceFromTarget > takeLessDamageDistance)
|
||||
{
|
||||
float damageTakenScalar = MathHelper.Clamp(1f - ((distanceFromTarget - takeLessDamageDistance) / takeLessDamageDistance), 0f, 1f);
|
||||
NPC.takenDamageMultiplier = MathHelper.Lerp(1f, 1.1f, damageTakenScalar);
|
||||
}
|
||||
else
|
||||
NPC.takenDamageMultiplier = 1.1f;
|
||||
|
||||
// Close DoG's HP bar during P2 transition and decrement the countdown.
|
||||
if (NPC.localAI[2] > 0f)
|
||||
{
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.width = 66;
|
||||
NPC.height = 66;
|
||||
NPC.defense = 50;
|
||||
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
|
||||
NPC.LifeMaxNERB(750000, 900000, 1500000);
|
||||
NPC.aiStyle = -1;
|
||||
AIType = -1;
|
||||
NPC.knockBackResist = 0f;
|
||||
@@ -82,7 +82,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.netAlways = true;
|
||||
NPC.boss = true;
|
||||
NPC.BossBar = Main.BigBossProgressBar.NeverValid;
|
||||
NPC.takenDamageMultiplier = 1.25f;
|
||||
NPC.dontCountMe = true;
|
||||
|
||||
if (CalamityWorld.LegendaryMode)
|
||||
@@ -197,16 +196,6 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
|
||||
Player player = Main.player[NPC.target];
|
||||
|
||||
float distanceFromTarget = Vector2.Distance(player.Center, NPC.Center);
|
||||
float takeLessDamageDistance = 1600f;
|
||||
if (distanceFromTarget > takeLessDamageDistance)
|
||||
{
|
||||
float damageTakenScalar = MathHelper.Clamp(1f - ((distanceFromTarget - takeLessDamageDistance) / takeLessDamageDistance), 0f, 1f);
|
||||
NPC.takenDamageMultiplier = MathHelper.Lerp(1f, 1.25f, damageTakenScalar);
|
||||
}
|
||||
else
|
||||
NPC.takenDamageMultiplier = 1.25f;
|
||||
|
||||
// Check if other segments are still alive, if not, die
|
||||
bool shouldDespawn = !NPC.AnyNPCs(ModContent.NPCType<DevourerofGodsHead>());
|
||||
if (!shouldDespawn)
|
||||
|
||||
Reference in new issue
Block a user