nerfs
phase 2 no longer spawns rock walls death no longer boosts fist speed death top wall only spawns in phase 2 fist speed/fire rate under 20% hp reduced
This commit is contained in:
1 parent
065c8125fd
commit
0a8924d4ad
3 files changed
+35
-38
No files matched your search
+17
-18
@@ -632,29 +632,28 @@ namespace CalamityMod.NPCs.Ravager
|
||||
}
|
||||
|
||||
int spawnDistance = 360;
|
||||
SoundEngine.PlaySound(PillarSound, NPC.Center);
|
||||
if (death && phase2)
|
||||
{
|
||||
spawnDistance = 300;
|
||||
SoundEngine.PlaySound(PillarSound, NPC.Center);
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)(player.Center.X - spawnDistance * 1.25f), (int)player.Center.Y - 100, ModContent.NPCType<RockPillar>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)(player.Center.X + spawnDistance * 1.25f), (int)player.Center.Y - 100, ModContent.NPCType<RockPillar>());
|
||||
|
||||
if (death && !leftClawActive && !rightClawActive)
|
||||
var index = NPC.NewNPC(NPC.GetSource_FromAI(), (int)(player.Center.X), (int)player.Center.Y - spawnDistance - 100, ModContent.NPCType<RockPillar>());
|
||||
if (Main.npc.IndexInRange(index))
|
||||
{
|
||||
var npc = Main.npc[index];
|
||||
(int, int) H_W = (npc.height, npc.width);
|
||||
npc.position = npc.Center;
|
||||
npc.height = H_W.Item2;
|
||||
npc.width = H_W.Item1;
|
||||
npc.rotation = -MathHelper.PiOver2;
|
||||
npc.Center = npc.position;
|
||||
npc.ModNPC.DrawOffsetY = npc.width / 2 - npc.height / 2;
|
||||
|
||||
var index = NPC.NewNPC(NPC.GetSource_FromAI(), (int)(player.Center.X), (int)player.Center.Y - spawnDistance - 100, ModContent.NPCType<RockPillar>());
|
||||
if (Main.npc.IndexInRange(index))
|
||||
{
|
||||
var npc = Main.npc[index];
|
||||
(int, int) H_W = (npc.height, npc.width);
|
||||
npc.position = npc.Center;
|
||||
npc.height = H_W.Item2;
|
||||
npc.width = H_W.Item1;
|
||||
npc.rotation = -MathHelper.PiOver2;
|
||||
npc.Center = npc.position;
|
||||
npc.ModNPC.DrawOffsetY = npc.width / 2 - npc.height / 2;
|
||||
}
|
||||
}
|
||||
if (!anyFlamePillars)
|
||||
}
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)(player.Center.X - spawnDistance * 1.25f), (int)player.Center.Y - 100, ModContent.NPCType<RockPillar>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)(player.Center.X + spawnDistance * 1.25f), (int)player.Center.Y - 100, ModContent.NPCType<RockPillar>());
|
||||
|
||||
if (!anyFlamePillars && !phase2)
|
||||
{
|
||||
float distanceMultiplier = finalPhase ? 2.5f : 2f;
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)player.Center.X - (int)(spawnDistance * distanceMultiplier), (int)player.Center.Y - 100, ModContent.NPCType<FlamePillar>());
|
||||
|
||||
@@ -67,7 +67,6 @@ namespace CalamityMod.NPCs.Ravager
|
||||
|
||||
return;
|
||||
}
|
||||
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
|
||||
if (NPC.timeLeft < 1800)
|
||||
{
|
||||
NPC.timeLeft = 1800;
|
||||
@@ -98,17 +97,17 @@ namespace CalamityMod.NPCs.Ravager
|
||||
NPC.rotation = 0f;
|
||||
NPC.Center = Main.npc[CalamityGlobalNPC.scavenger].Center + new Vector2(-120f, 50f);
|
||||
NPC.ai[1] += 1f;
|
||||
if (NPC.life < NPC.lifeMax / 2 || death)
|
||||
if (NPC.life < NPC.lifeMax / 2)
|
||||
{
|
||||
NPC.ai[1] += 1f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 3 || death)
|
||||
if (NPC.life < NPC.lifeMax / 3)
|
||||
{
|
||||
NPC.ai[1] += 1f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 5 || death)
|
||||
if (NPC.life < NPC.lifeMax / 5)
|
||||
{
|
||||
NPC.ai[1] += 5f;
|
||||
NPC.ai[1] += 2f;
|
||||
}
|
||||
if (NPC.ai[1] >= 60f)
|
||||
{
|
||||
@@ -148,17 +147,17 @@ namespace CalamityMod.NPCs.Ravager
|
||||
NPC.collideX = false;
|
||||
NPC.collideY = false;
|
||||
float clawSpeed = 12f;
|
||||
if (NPC.life < NPC.lifeMax / 2 || death)
|
||||
if (NPC.life < NPC.lifeMax / 2)
|
||||
{
|
||||
clawSpeed += 2f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 3 || death)
|
||||
if (NPC.life < NPC.lifeMax / 3)
|
||||
{
|
||||
clawSpeed += 2f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 5 || death)
|
||||
if (NPC.life < NPC.lifeMax / 5)
|
||||
{
|
||||
clawSpeed += 5f;
|
||||
clawSpeed += 4f;
|
||||
}
|
||||
Vector2 npcCenterAttack = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
float targetX = Main.player[NPC.target].Center.X - npcCenterAttack.X;
|
||||
@@ -205,7 +204,7 @@ namespace CalamityMod.NPCs.Ravager
|
||||
bodyReturnYDist += 40f;
|
||||
bodyReturnXDist -= 110f;
|
||||
float bodyReturnDistance = (float)Math.Sqrt(bodyReturnXDist * bodyReturnXDist + bodyReturnYDist * bodyReturnYDist);
|
||||
if ((bodyReturnDistance > (death ? 900f : 700f) || NPC.collideX || NPC.collideY) | NPC.justHit)
|
||||
if ((bodyReturnDistance > 700f || NPC.collideX || NPC.collideY) | NPC.justHit)
|
||||
{
|
||||
// Avoid cheap bullshit
|
||||
NPC.damage = 0;
|
||||
|
||||
@@ -68,7 +68,6 @@ namespace CalamityMod.NPCs.Ravager
|
||||
|
||||
return;
|
||||
}
|
||||
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
|
||||
if (NPC.timeLeft < 1800)
|
||||
{
|
||||
NPC.timeLeft = 1800;
|
||||
@@ -99,17 +98,17 @@ namespace CalamityMod.NPCs.Ravager
|
||||
NPC.rotation = 0f;
|
||||
NPC.Center = Main.npc[CalamityGlobalNPC.scavenger].Center + new Vector2(120f, 50f);
|
||||
NPC.ai[1] += 1f;
|
||||
if (NPC.life < NPC.lifeMax / 2 || death)
|
||||
if (NPC.life < NPC.lifeMax / 2)
|
||||
{
|
||||
NPC.ai[1] += 1f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 3 || death)
|
||||
if (NPC.life < NPC.lifeMax / 3)
|
||||
{
|
||||
NPC.ai[1] += 1f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 5 || death)
|
||||
if (NPC.life < NPC.lifeMax / 5)
|
||||
{
|
||||
NPC.ai[1] += 5f;
|
||||
NPC.ai[1] += 2f;
|
||||
}
|
||||
if (NPC.ai[1] >= 60f)
|
||||
{
|
||||
@@ -149,17 +148,17 @@ namespace CalamityMod.NPCs.Ravager
|
||||
NPC.collideX = false;
|
||||
NPC.collideY = false;
|
||||
float clawSpeed = 12f;
|
||||
if (NPC.life < NPC.lifeMax / 2 || death)
|
||||
if (NPC.life < NPC.lifeMax / 2)
|
||||
{
|
||||
clawSpeed += 2f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 3 || death)
|
||||
if (NPC.life < NPC.lifeMax / 3)
|
||||
{
|
||||
clawSpeed += 2f;
|
||||
}
|
||||
if (NPC.life < NPC.lifeMax / 5 || death)
|
||||
if (NPC.life < NPC.lifeMax / 5)
|
||||
{
|
||||
clawSpeed += 5f;
|
||||
clawSpeed += 4f;
|
||||
}
|
||||
Vector2 npcCenterAttack = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
float targetX = Main.player[NPC.target].Center.X - npcCenterAttack.X;
|
||||
@@ -206,7 +205,7 @@ namespace CalamityMod.NPCs.Ravager
|
||||
bodyReturnYDist += 40f;
|
||||
bodyReturnXDist += 110f;
|
||||
float bodyReturnDistance = (float)Math.Sqrt(bodyReturnXDist * bodyReturnXDist + bodyReturnYDist * bodyReturnYDist);
|
||||
if ((bodyReturnDistance > (death ? 900f : 700f) || NPC.collideX || NPC.collideY) | NPC.justHit)
|
||||
if ((bodyReturnDistance > 700f || NPC.collideX || NPC.collideY) | NPC.justHit)
|
||||
{
|
||||
// Avoid cheap bullshit
|
||||
NPC.damage = 0;
|
||||
|
||||
Reference in new issue
Block a user