1 - FTW changes for Anahita, Leviathan, Brimstone Elemental and Cal Clone.
This commit is contained in:
1 parent
a4e6a3929b
commit
9a02d9ce6e
7 files changed
+110
-34
No files matched your search
+37
-2
@@ -859,7 +859,7 @@ namespace CalamityMod.NPCs
|
||||
npc.chaseable = true;
|
||||
npc.ai[3] += 1f;
|
||||
npc.alpha = 0;
|
||||
if (npc.ai[3] >= 2f || phase2)
|
||||
if (npc.ai[3] >= 2f || phase2 || Main.getGoodWorld)
|
||||
{
|
||||
npc.ai[0] = -1f;
|
||||
npc.ai[1] = 0f;
|
||||
@@ -908,6 +908,11 @@ namespace CalamityMod.NPCs
|
||||
projectileVelocity = Vector2.Normalize(player.Center - npc.Center) * velocity;
|
||||
int numProj = death ? 8 : 4;
|
||||
int spread = death ? 90 : 45;
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
numProj *= 3;
|
||||
spread *= 2;
|
||||
}
|
||||
float rotation = MathHelper.ToRadians(spread);
|
||||
for (int i = 0; i < numProj; i++)
|
||||
{
|
||||
@@ -938,6 +943,8 @@ namespace CalamityMod.NPCs
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
npc.localAI[0] += 1f;
|
||||
if (Main.getGoodWorld)
|
||||
npc.localAI[0] += 2f;
|
||||
if (expertMode)
|
||||
npc.localAI[0] += 1f - lifeRatio;
|
||||
npc.localAI[0] += 1f * enrageScale;
|
||||
@@ -1080,6 +1087,8 @@ namespace CalamityMod.NPCs
|
||||
int type = ModContent.ProjectileType<BrimstoneRay>();
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), source, laserVelocity2, type, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, npc.whoAmI);
|
||||
if (Main.getGoodWorld)
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), source, -laserVelocity2, type, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, npc.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1113,6 +1122,9 @@ namespace CalamityMod.NPCs
|
||||
if (npc.ai[1] < 150f && calamityGlobalNPC.newAI[0] == 0f)
|
||||
{
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), source, laserVelocity, ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI);
|
||||
if (Main.getGoodWorld)
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), source, -laserVelocity, ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI);
|
||||
|
||||
calamityGlobalNPC.newAI[0] = 1f;
|
||||
}
|
||||
else
|
||||
@@ -1122,6 +1134,8 @@ namespace CalamityMod.NPCs
|
||||
npc.localAI[0] = laserVelocity.X;
|
||||
npc.localAI[1] = laserVelocity.Y;
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, npc.localAI[0], npc.localAI[1], ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI);
|
||||
if (Main.getGoodWorld)
|
||||
Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, -npc.localAI[0], -npc.localAI[1], ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1394,6 +1408,11 @@ namespace CalamityMod.NPCs
|
||||
baseVelocity *= 1.25f;
|
||||
baseAcceleration *= 1.25f;
|
||||
}
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
baseVelocity *= 1.15f;
|
||||
baseAcceleration *= 1.15f;
|
||||
}
|
||||
|
||||
// Reduce acceleration if target is holding a true melee weapon
|
||||
if (player.HoldingTrueMeleeWeapon())
|
||||
@@ -1456,7 +1475,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
int type = ModContent.ProjectileType<SCalBrimstoneFireblast>();
|
||||
int damage = npc.GetProjectileDamage(type) + (provy ? 30 : 0);
|
||||
float gigaBlastFrequency = (expertMode ? 180f : 240f) - enrageScale * 15f;
|
||||
float gigaBlastFrequency = (Main.getGoodWorld ? 120f : expertMode ? 180f : 240f) - enrageScale * 15f;
|
||||
float projSpeed = malice ? 6.25f : 5f;
|
||||
if (calamityGlobalNPC.newAI[3] <= 300f)
|
||||
{
|
||||
@@ -1879,6 +1898,12 @@ namespace CalamityMod.NPCs
|
||||
num862 *= 1.25f;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num861 *= 1.15f;
|
||||
num862 *= 1.15f;
|
||||
}
|
||||
|
||||
int num863 = 1;
|
||||
if (npc.position.X + (npc.width / 2) < player.position.X + player.width)
|
||||
num863 = -1;
|
||||
@@ -1997,6 +2022,8 @@ namespace CalamityMod.NPCs
|
||||
num870 += 2f;
|
||||
if (provy)
|
||||
num870 *= 1.15f;
|
||||
if (Main.getGoodWorld)
|
||||
num870 *= 1.25f;
|
||||
|
||||
Vector2 vector87 = npc.Center;
|
||||
float num871 = player.Center.X - vector87.X;
|
||||
@@ -2160,6 +2187,12 @@ namespace CalamityMod.NPCs
|
||||
num862 *= 1.25f;
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num861 *= 1.15f;
|
||||
num862 *= 1.15f;
|
||||
}
|
||||
|
||||
int num863 = 1;
|
||||
if (npc.Center.X < player.Center.X)
|
||||
num863 = -1;
|
||||
@@ -2278,6 +2311,8 @@ namespace CalamityMod.NPCs
|
||||
num870 += 2f;
|
||||
if (provy)
|
||||
num870 *= 1.15f;
|
||||
if (Main.getGoodWorld)
|
||||
num870 *= 1.25f;
|
||||
|
||||
Vector2 vector87 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
|
||||
float num871 = player.position.X + (player.width / 2) - vector87.X;
|
||||
|
||||
+35
-15
@@ -73,6 +73,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
NPC.scale *= 0.8f;
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
@@ -169,6 +172,8 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
bubbleVelocity += 4f * enrageScale;
|
||||
if (!leviAlive)
|
||||
bubbleVelocity += 2f * (1f - lifeRatio);
|
||||
if (Main.getGoodWorld)
|
||||
bubbleVelocity *= 1.15f;
|
||||
|
||||
NPC.damage = NPC.defDamage;
|
||||
|
||||
@@ -289,7 +294,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
NPC.alpha += 3;
|
||||
if (NPC.alpha >= 255)
|
||||
{
|
||||
NPC.alpha = 255;
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
@@ -410,11 +417,11 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
Vector2 vector118 = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
float num1055 = player.position.X + (player.width / 2) - vector118.X;
|
||||
float num1056 = player.position.Y + (player.height / 2) - 200f - vector118.Y;
|
||||
float num1056 = player.position.Y + (player.height / 2) - 200f * NPC.scale - vector118.Y;
|
||||
float num1057 = (float)Math.Sqrt(num1055 * num1055 + num1056 * num1056);
|
||||
|
||||
NPC.Calamity().newAI[0] += 1f;
|
||||
if (num1057 < 600f || NPC.Calamity().newAI[0] >= 180f)
|
||||
if (num1057 < 600f * NPC.scale || NPC.Calamity().newAI[0] >= 180f)
|
||||
{
|
||||
NPC.ai[0] = 1f;
|
||||
NPC.ai[1] = 0f;
|
||||
@@ -428,7 +435,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
maxVelocityY -= enrageScale;
|
||||
maxVelocityX -= 2f * enrageScale;
|
||||
|
||||
if (NPC.position.Y > player.position.Y - 350f)
|
||||
if (NPC.position.Y > player.position.Y - 350f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.Y > 0f)
|
||||
NPC.velocity.Y *= 0.98f;
|
||||
@@ -436,7 +443,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (NPC.velocity.Y > maxVelocityY)
|
||||
NPC.velocity.Y = maxVelocityY;
|
||||
}
|
||||
else if (NPC.position.Y < player.position.Y - 450f)
|
||||
else if (NPC.position.Y < player.position.Y - 450f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.Y < 0f)
|
||||
NPC.velocity.Y *= 0.98f;
|
||||
@@ -445,7 +452,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.velocity.Y = -maxVelocityY;
|
||||
}
|
||||
|
||||
if (NPC.position.X + (NPC.width / 2) > player.position.X + (player.width / 2) + 100f)
|
||||
if (NPC.position.X + (NPC.width / 2) > player.position.X + (player.width / 2) + 100f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.X > 0f)
|
||||
NPC.velocity.X *= 0.98f;
|
||||
@@ -454,7 +461,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.velocity.X = maxVelocityX;
|
||||
}
|
||||
|
||||
if (NPC.position.X + (NPC.width / 2) < player.position.X + (player.width / 2) - 100f)
|
||||
if (NPC.position.X + (NPC.width / 2) < player.position.X + (player.width / 2) - 100f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.X < 0f)
|
||||
NPC.velocity.X *= 0.98f;
|
||||
@@ -468,7 +475,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
else if (NPC.ai[0] == 1f)
|
||||
{
|
||||
NPC.rotation = NPC.velocity.X * 0.02f;
|
||||
Vector2 vector119 = new Vector2(NPC.position.X + (NPC.width / 2) + (15 * NPC.direction), NPC.position.Y + 30);
|
||||
Vector2 vector119 = new Vector2(NPC.position.X + (NPC.width / 2) + (15 * NPC.direction * NPC.scale), NPC.position.Y + 30 * NPC.scale);
|
||||
Vector2 vector120 = new Vector2(NPC.position.X + NPC.width * 0.5f, NPC.position.Y + NPC.height * 0.5f);
|
||||
float num1058 = player.position.X + (player.width / 2) - vector120.X;
|
||||
float num1059 = player.position.Y + (player.height / 2) - vector120.Y;
|
||||
@@ -510,14 +517,14 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
}
|
||||
}
|
||||
|
||||
if (num1060 > 600f)
|
||||
if (num1060 > 600f * NPC.scale)
|
||||
{
|
||||
float maxVelocityY = death ? 3f : 4f;
|
||||
float maxVelocityX = death ? 7f : 8f;
|
||||
maxVelocityY -= enrageScale;
|
||||
maxVelocityX -= 2f * enrageScale;
|
||||
|
||||
if (NPC.position.Y > player.position.Y - 350f)
|
||||
if (NPC.position.Y > player.position.Y - 350f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.Y > 0f)
|
||||
NPC.velocity.Y *= 0.98f;
|
||||
@@ -525,7 +532,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (NPC.velocity.Y > maxVelocityY)
|
||||
NPC.velocity.Y = maxVelocityY;
|
||||
}
|
||||
else if (NPC.position.Y < player.position.Y - 450f)
|
||||
else if (NPC.position.Y < player.position.Y - 450f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.Y < 0f)
|
||||
NPC.velocity.Y *= 0.98f;
|
||||
@@ -534,7 +541,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.velocity.Y = -maxVelocityY;
|
||||
}
|
||||
|
||||
if (NPC.position.X + (NPC.width / 2) > player.position.X + (player.width / 2) + 100f)
|
||||
if (NPC.position.X + (NPC.width / 2) > player.position.X + (player.width / 2) + 100f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.X > 0f)
|
||||
NPC.velocity.X *= 0.98f;
|
||||
@@ -543,7 +550,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.velocity.X = maxVelocityX;
|
||||
}
|
||||
|
||||
if (NPC.position.X + (NPC.width / 2) < player.position.X + (player.width / 2) - 100f)
|
||||
if (NPC.position.X + (NPC.width / 2) < player.position.X + (player.width / 2) - 100f * NPC.scale)
|
||||
{
|
||||
if (NPC.velocity.X < 0f)
|
||||
NPC.velocity.X *= 0.98f;
|
||||
@@ -572,14 +579,21 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
{
|
||||
NPC.rotation = NPC.velocity.X * 0.02f;
|
||||
|
||||
Vector2 targetVector = player.Center + new Vector2(0f, -350f);
|
||||
Vector2 targetVector = player.Center + new Vector2(0f, -350f) * NPC.scale;
|
||||
float velocity = death ? 13.5f : 12f;
|
||||
velocity += 6f * enrageScale;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
velocity *= 1.15f;
|
||||
|
||||
Vector2 vector3 = Vector2.Normalize(targetVector - vector - NPC.velocity) * velocity;
|
||||
float acceleration = death ? 0.28f : 0.25f;
|
||||
acceleration += 0.2f * enrageScale;
|
||||
|
||||
if (Math.Abs(NPC.Center.Y - targetVector.Y) > 50f || Math.Abs(NPC.Center.X - player.Center.X) > 350f)
|
||||
if (Main.getGoodWorld)
|
||||
acceleration *= 1.15f;
|
||||
|
||||
if (Math.Abs(NPC.Center.Y - targetVector.Y) > 50f * NPC.scale || Math.Abs(NPC.Center.X - player.Center.X) > 350f * NPC.scale)
|
||||
NPC.SimpleFlyMovement(vector3, acceleration);
|
||||
|
||||
NPC.ai[1] += 1f;
|
||||
@@ -677,6 +691,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (revenge)
|
||||
chargeVelocity += 2f + (death ? 6f * (1f - lifeRatio) : 4f * (1f - lifeRatio));
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
chargeVelocity *= 1.15f;
|
||||
|
||||
NPC.velocity = Vector2.Normalize(player.Center - vector) * chargeVelocity;
|
||||
NPC.rotation = (float)Math.Atan2(NPC.velocity.Y, NPC.velocity.X);
|
||||
|
||||
@@ -746,7 +763,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
// Move to charge location
|
||||
private void ChargeLocation(Player player, Vector2 vector, bool leviAlive, bool revenge)
|
||||
{
|
||||
float distance = leviAlive ? 600f : 500f;
|
||||
float distance = (leviAlive ? 600f : 500f) * NPC.scale;
|
||||
|
||||
// Velocity
|
||||
if (NPC.localAI[0] == 0f)
|
||||
@@ -754,6 +771,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
Vector2 vector3 = Vector2.Normalize(player.Center + new Vector2(NPC.localAI[0], -distance) - vector - NPC.velocity) * 12f;
|
||||
float acceleration = revenge ? 0.75f : 0.5f;
|
||||
if (Main.getGoodWorld)
|
||||
acceleration *= 1.15f;
|
||||
|
||||
NPC.SimpleFlyMovement(vector3, acceleration);
|
||||
|
||||
// Rotation
|
||||
|
||||
@@ -38,6 +38,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
NPC.Calamity().VulnerableToCold = false;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
NPC.scale *= 0.8f;
|
||||
}
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
@@ -71,8 +74,8 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.spriteDirection = Main.npc[num989].direction;
|
||||
NPC.velocity = Vector2.Zero;
|
||||
NPC.position = Main.npc[num989].Center;
|
||||
NPC.position.X = NPC.position.X - (NPC.width / 2) + ((NPC.spriteDirection == 1) ? -20f : 20f);
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2) - 30;
|
||||
NPC.position.X = NPC.position.X - (NPC.width / 2) + ((NPC.spriteDirection == 1) ? -20f : 20f) * NPC.scale;
|
||||
NPC.position.Y = NPC.position.Y - (NPC.height / 2) - (int)(30 * NPC.scale);
|
||||
NPC.gfxOffY = Main.npc[num989].gfxOffY;
|
||||
Lighting.AddLight((int)NPC.Center.X / 16, (int)NPC.Center.Y / 16, 0f, 0.8f, 1.1f);
|
||||
return;
|
||||
|
||||
+30
-12
@@ -78,6 +78,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
NPC.scale *= 1.3f;
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
@@ -279,12 +282,18 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
num413 += death ? 0.15f * (1f - lifeRatio) : 0.1f * (1f - lifeRatio);
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num412 *= 1.15f;
|
||||
num413 *= 1.15f;
|
||||
}
|
||||
|
||||
int num414 = 1;
|
||||
if (vector.X < player.position.X + player.width)
|
||||
num414 = -1;
|
||||
|
||||
Vector2 vector40 = vector;
|
||||
float num415 = player.Center.X + (num414 * ((sirenAlive && !phase4) ? 1000f : 800f)) - vector40.X;
|
||||
float num415 = player.Center.X + (num414 * ((sirenAlive && !phase4) ? 1000f : 800f) * NPC.scale) - vector40.X;
|
||||
float num416 = player.Center.Y - vector40.Y;
|
||||
float num417 = (float)Math.Sqrt(num415 * num415 + num416 * num416);
|
||||
num417 = num412 / num417;
|
||||
@@ -414,7 +423,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector119.X, (int)vector119.Y, ModContent.NPCType<AquaticAberration>());
|
||||
}
|
||||
|
||||
if (num1060 > ((sirenAlive && !phase4) ? 1000f : 800f))
|
||||
if (num1060 > ((sirenAlive && !phase4) ? 1000f : 800f) * NPC.scale)
|
||||
{
|
||||
float num1064 = (sirenAlive && !phase4) ? 0.05f : 0.065f;
|
||||
num1064 += 0.04f * enrageScale;
|
||||
@@ -481,7 +490,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
return;
|
||||
}
|
||||
|
||||
float chargeDistance = (sirenAlive && !phase4) ? 1100f : 900f;
|
||||
float chargeDistance = ((sirenAlive && !phase4) ? 1100f : 900f) * NPC.scale;
|
||||
chargeDistance -= 50f * enrageScale;
|
||||
if (!sirenAlive || phase4)
|
||||
chargeDistance -= 250f * (1f - lifeRatio);
|
||||
@@ -511,6 +520,9 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (revenge && (!sirenAlive || phase4))
|
||||
num1044 += death ? 9f * (1f - lifeRatio) : 6f * (1f - lifeRatio);
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
num1044 *= 1.15f;
|
||||
|
||||
Vector2 vector117 = vector;
|
||||
float num1045 = player.Center.X - vector117.X;
|
||||
float num1046 = player.Center.Y - vector117.Y;
|
||||
@@ -539,6 +551,12 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
num1049 += death ? 0.15f * (1f - lifeRatio) : 0.1f * (1f - lifeRatio);
|
||||
}
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
num1048 *= 1.15f;
|
||||
num1049 *= 1.15f;
|
||||
}
|
||||
|
||||
if (vector.Y < player.Center.Y)
|
||||
NPC.velocity.Y += num1049;
|
||||
else
|
||||
@@ -640,7 +658,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (mouthDist4 < minMouthDist)
|
||||
minMouthDist = mouthDist4;
|
||||
|
||||
bool insideMouthHitbox = minMouthDist <= 115f;
|
||||
bool insideMouthHitbox = minMouthDist <= 115f * NPC.scale;
|
||||
|
||||
float bodyDist1 = Vector2.Distance(bodyHitboxCenter, targetHitbox.TopLeft());
|
||||
float bodyDist2 = Vector2.Distance(bodyHitboxCenter, targetHitbox.TopRight());
|
||||
@@ -655,7 +673,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (bodyDist4 < minBodyDist)
|
||||
minBodyDist = bodyDist4;
|
||||
|
||||
bool insideBodyHitbox = minBodyDist <= 230f;
|
||||
bool insideBodyHitbox = minBodyDist <= 230f * NPC.scale;
|
||||
|
||||
float tailDist1 = Vector2.Distance(tailHitboxCenter, targetHitbox.TopLeft());
|
||||
float tailDist2 = Vector2.Distance(tailHitboxCenter, targetHitbox.TopRight());
|
||||
@@ -670,7 +688,7 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (tailDist4 < minTailDist)
|
||||
minTailDist = tailDist4;
|
||||
|
||||
bool insideTailHitbox = minTailDist <= 115f;
|
||||
bool insideTailHitbox = minTailDist <= 115f * NPC.scale;
|
||||
|
||||
return insideMouthHitbox || insideBodyHitbox || insideTailHitbox;
|
||||
}
|
||||
@@ -708,10 +726,10 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
float randomSpread = Main.rand.Next(-200, 200) / 100;
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore2").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore3").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore4").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread, Mod.Find<ModGore>("LeviGore4").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -827,8 +845,8 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
int width = 1011;
|
||||
int height = 486;
|
||||
int width = (int)(1011 * NPC.scale);
|
||||
int height = (int)(486 * NPC.scale);
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
Scale = 0.2f,
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Projectile.Opacity != 1f)
|
||||
return;
|
||||
|
||||
if (Projectile.ai[0] == 0f)
|
||||
if (Projectile.ai[0] == 0f || Main.getGoodWorld)
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120);
|
||||
else
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Projectile.timeLeft < 51)
|
||||
return;
|
||||
|
||||
if (Projectile.ai[0] == 0f)
|
||||
if (Projectile.ai[0] == 0f || Main.getGoodWorld)
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120);
|
||||
else
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Projectile.Opacity != 1f)
|
||||
return;
|
||||
|
||||
if (Projectile.ai[0] == 0f)
|
||||
if (Projectile.ai[0] == 0f || Main.getGoodWorld)
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120);
|
||||
else
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
|
||||
|
||||
Reference in new issue
Block a user