1 - Gauss Dagger buffed to take 2 hits to cause flux instead of 3.

2 - Ravager Nuke fix.
This commit is contained in:
Andrew Marheine committed 2020-09-22 16:45:40 -05:00
1 parent 18d6ea28bd
commit f15cd83e2b
5 files changed
+96 -76

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
public class GaussDagger : ModItem
{
public const int HitsRequiredForFlux = 3;
public const int HitsRequiredForFlux = 2;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Gauss Dagger");
+50 -53
View File
@@ -30,6 +30,8 @@ namespace CalamityMod.NPCs
{
public class CalamityAI
{
// Master Mode changes
// 1 - Sand clouds spread out far more and more are spawned in instead of sand blasts, 2 - Far longer and larger, 3 - Sand blasts accelerate
#region Aquatic Scourge
public static void AquaticScourgeAI(NPC npc, Mod mod, bool head)
{
@@ -88,7 +90,7 @@ namespace CalamityMod.NPCs
if (Main.netMode != NetmodeID.MultiplayerClient)
{
float num742 = BossRushEvent.BossRushActive ? 12f : 8f;
float num742 = BossRushEvent.BossRushActive ? 16f : death ? 10f : 8f;
float num743 = player.Center.X - vectorCenter.X;
float num744 = player.Center.Y - vectorCenter.Y;
float num745 = (float)Math.Sqrt(num743 * num743 + num744 * num744);
@@ -99,8 +101,8 @@ namespace CalamityMod.NPCs
int type = ModContent.ProjectileType<SandBlast>();
int damage = npc.GetProjectileDamage(type);
int numProj = 3;
int spread = 36;
int numProj = death ? 5 : 3;
int spread = death ? 60 : 36;
float rotation = MathHelper.ToRadians(spread);
float baseSpeed = (float)Math.Sqrt(num743 * num743 + num744 * num744);
double startAngle = Math.Atan2(num743, num744) - rotation / 2;
@@ -133,7 +135,7 @@ namespace CalamityMod.NPCs
{
npc.TargetClosest(true);
calamityGlobalNPC.newAI[3] = 0f;
float chargeVelocity = death ? 16f : 12f;
float chargeVelocity = BossRushEvent.BossRushActive ? 24f : death ? 16f : 12f;
npc.velocity = Vector2.Normalize(player.Center - npc.Center) * chargeVelocity;
}
}
@@ -190,12 +192,7 @@ namespace CalamityMod.NPCs
if (Main.netMode != NetmodeID.MultiplayerClient)
{
float velocity = revenge ? 7.5f : 6.5f;
if (death)
velocity += 2f;
if (BossRushEvent.BossRushActive)
velocity = 11f;
float velocity = BossRushEvent.BossRushActive ? 13f : death ? 9.5f : revenge ? 7.5f : 6.5f;
int totalProjectiles = expertMode ? 30 : 20;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = ModContent.ProjectileType<SandBlast>();
@@ -238,7 +235,7 @@ namespace CalamityMod.NPCs
{
int num = expertMode ? 4 : 3;
npc.localAI[0] += Main.rand.Next(num);
if (npc.localAI[0] >= Main.rand.Next(700, 10000))
if (npc.localAI[0] >= Main.rand.Next(700, 10001))
{
npc.localAI[0] = 0f;
npc.TargetClosest(true);
@@ -251,7 +248,7 @@ namespace CalamityMod.NPCs
float num944 = (float)Math.Sqrt(num942 * num942 + num943 * num943);
int type = ModContent.ProjectileType<SandTooth>();
int damage = npc.GetProjectileDamage(type);
float num941 = BossRushEvent.BossRushActive ? 7.5f : 5f;
float num941 = BossRushEvent.BossRushActive ? 10f : death ? 6f : 5f;
num944 = num941 / num944;
num942 *= num944;
num943 *= num944;
@@ -265,7 +262,7 @@ namespace CalamityMod.NPCs
else if (npc.type == ModContent.NPCType<AquaticScourgeBodyAlt>())
{
npc.localAI[0] += Main.rand.Next(4);
if (npc.localAI[0] >= Main.rand.Next(700, 10000))
if (npc.localAI[0] >= Main.rand.Next(700, 10001))
{
npc.localAI[0] = 0f;
npc.TargetClosest(true);
@@ -277,7 +274,7 @@ namespace CalamityMod.NPCs
float num944 = (float)Math.Sqrt(num942 * num942 + num943 * num943);
int type = ModContent.ProjectileType<SandBlast>();
int damage = npc.GetProjectileDamage(type);
float num941 = BossRushEvent.BossRushActive ? 12f : 8f;
float num941 = BossRushEvent.BossRushActive ? 16f : death ? 10f : 8f;
num944 = num941 / num944;
num942 *= num944;
num943 *= num944;
@@ -388,8 +385,8 @@ namespace CalamityMod.NPCs
num189 = revenge ? 0.14f : 0.12f;
if (expertMode)
{
num188 += death ? 4f : 4f * (1f - lifeRatio);
num189 += death ? 0.04f : 0.04f * (1f - lifeRatio);
num188 += 4f * (1f - lifeRatio);
num189 += 0.04f * (1f - lifeRatio);
}
if (notOcean)
{
@@ -406,6 +403,11 @@ namespace CalamityMod.NPCs
num188 = 25f;
num189 = 0.3f;
}
if (death)
{
num188 += Vector2.Distance(player.Center, npc.Center) * 0.005f * (1f - lifeRatio);
num189 += Vector2.Distance(player.Center, npc.Center) * 0.0001f * (1f - lifeRatio);
}
}
float num48 = num188 * 1.3f;
@@ -547,6 +549,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Cycles between attacks faster, 2 - Brimstone Ray splits off into brimstone darts when fired, 3 - Brimlings stay very close to their mother to act as meat shields
#region Brimstone Elemental
public static void BrimstoneElementalAI(NPC npc, Mod mod)
{
@@ -633,18 +637,9 @@ namespace CalamityMod.NPCs
}
// Speed while moving in phase 1
float speed = expertMode ? 5f : 4.5f;
if (BossRushEvent.BossRushActive)
speed = 12f;
else if (!calamity)
speed = 7f;
else if (death)
speed = 6f;
else if (revenge)
speed = 5.5f;
float speed = BossRushEvent.BossRushActive ? 12f : !calamity ? 8f : death ? 6f : revenge ? 5.5f : expertMode ? 5f : 4.5f;
if (expertMode)
speed += death ? 2f : 2f * (1f - lifeRatio);
speed += death ? 4f * (1f - lifeRatio) : 2f * (1f - lifeRatio);
// Variables for target location relative to npc location
float xDistance = player.Center.X - vectorCenter.X;
@@ -675,7 +670,7 @@ namespace CalamityMod.NPCs
if (Main.netMode != NetmodeID.MultiplayerClient)
{
npc.localAI[1] += 1f;
if (npc.localAI[1] >= (BossRushEvent.BossRushActive ? 90f : 180f))
if (npc.localAI[1] >= (BossRushEvent.BossRushActive ? 90f : death ? 150f : 180f))
{
npc.TargetClosest(true);
npc.localAI[1] = 0f;
@@ -788,7 +783,7 @@ namespace CalamityMod.NPCs
{
if (Main.netMode != NetmodeID.MultiplayerClient)
{
float num742 = BossRushEvent.BossRushActive ? 6f : 4f;
float num742 = BossRushEvent.BossRushActive ? 8f : death ? 5f : 4f;
float num743 = player.position.X + player.width * 0.5f - vectorCenter.X;
float num744 = player.position.Y + player.height * 0.5f - vectorCenter.Y;
float num745 = (float)Math.Sqrt(num743 * num743 + num744 * num744);
@@ -818,7 +813,7 @@ namespace CalamityMod.NPCs
}
}
float projectileSpeed = BossRushEvent.BossRushActive ? 7f : 5f;
float projectileSpeed = BossRushEvent.BossRushActive ? 10f : death ? 6.5f : 5f;
if (calamityGlobalNPC.enraged > 0 || (CalamityConfig.Instance.BossRushXerocCurse && BossRushEvent.BossRushActive))
projectileSpeed += 4f;
if (revenge)
@@ -827,7 +822,7 @@ namespace CalamityMod.NPCs
projectileSpeed += 2f;
if (expertMode)
projectileSpeed += death ? 3f : 3f * (1f - lifeRatio);
projectileSpeed += 3f * (1f - lifeRatio);
vectorCenter = npc.Center;
float relativeSpeedX = player.position.X + player.width * 0.5f - vectorCenter.X;
@@ -845,45 +840,49 @@ namespace CalamityMod.NPCs
}
}
if (npc.position.Y > player.position.Y - 150f) //200
float maxVelocityY = death ? 2.5f : 3f;
float maxVelocityX = death ? 7f : 8f;
if (npc.position.Y > player.position.Y - 150f)
{
if (npc.velocity.Y > 0f)
npc.velocity.Y *= 0.98f;
npc.velocity.Y -= BossRushEvent.BossRushActive ? 0.15f : 0.1f;
npc.velocity.Y -= BossRushEvent.BossRushActive ? 0.2f : death ? 0.12f : 0.1f;
if (npc.velocity.Y > 3f)
npc.velocity.Y = 3f;
if (npc.velocity.Y > maxVelocityY)
npc.velocity.Y = maxVelocityY;
}
else if (npc.position.Y < player.position.Y - 350f) //500
else if (npc.position.Y < player.position.Y - 350f)
{
if (npc.velocity.Y < 0f)
npc.velocity.Y *= 0.98f;
npc.velocity.Y += BossRushEvent.BossRushActive ? 0.15f : 0.1f;
npc.velocity.Y += BossRushEvent.BossRushActive ? 0.2f : death ? 0.12f : 0.1f;
if (npc.velocity.Y < -3f)
npc.velocity.Y = -3f;
if (npc.velocity.Y < -maxVelocityY)
npc.velocity.Y = -maxVelocityY;
}
if (npc.position.X + (npc.width / 2) > player.position.X + (player.width / 2) + 150f) //100
if (npc.position.X + (npc.width / 2) > player.position.X + (player.width / 2) + 150f)
{
if (npc.velocity.X > 0f)
npc.velocity.X *= 0.985f;
npc.velocity.X -= BossRushEvent.BossRushActive ? 0.15f : 0.1f;
npc.velocity.X -= BossRushEvent.BossRushActive ? 0.2f : death ? 0.12f : 0.1f;
if (npc.velocity.X > 8f)
npc.velocity.X = 8f;
if (npc.velocity.X > maxVelocityX)
npc.velocity.X = maxVelocityX;
}
if (npc.position.X + (npc.width / 2) < player.position.X + (player.width / 2) - 150f) //100
if (npc.position.X + (npc.width / 2) < player.position.X + (player.width / 2) - 150f)
{
if (npc.velocity.X < 0f)
npc.velocity.X *= 0.985f;
npc.velocity.X += BossRushEvent.BossRushActive ? 0.15f : 0.1f;
npc.velocity.X += BossRushEvent.BossRushActive ? 0.2f : death ? 0.12f : 0.1f;
if (npc.velocity.X < -8f)
npc.velocity.X = -8f;
if (npc.velocity.X < -maxVelocityX)
npc.velocity.X = -maxVelocityX;
}
if (npc.ai[1] >= divisor * 10f)
@@ -906,7 +905,7 @@ namespace CalamityMod.NPCs
{
npc.localAI[0] += 1f;
if (expertMode)
npc.localAI[0] += death ? 1f : 1f * (1f - lifeRatio);
npc.localAI[0] += death ? 2f * (1f - lifeRatio) : 1f - lifeRatio;
if (calamityGlobalNPC.enraged > 0 || (CalamityConfig.Instance.BossRushXerocCurse && BossRushEvent.BossRushActive))
npc.localAI[0] += 2f;
@@ -917,9 +916,7 @@ namespace CalamityMod.NPCs
{
npc.localAI[0] = 0f;
float projectileSpeed = revenge ? 8f : 6f;
if (BossRushEvent.BossRushActive)
projectileSpeed = 12f;
float projectileSpeed = BossRushEvent.BossRushActive ? 12f : death ? 9f : revenge ? 8f : 6f;
vectorCenter = player.Center - vectorCenter;
@@ -945,7 +942,7 @@ namespace CalamityMod.NPCs
Main.projectile[proj].tileCollide = false;
}
totalProjectiles = 12;
totalProjectiles = death ? 16 : 12;
float radians2 = MathHelper.TwoPi / totalProjectiles;
type = ModContent.ProjectileType<BrimstoneBarrage>();
damage = npc.GetProjectileDamage(type);
@@ -964,7 +961,7 @@ namespace CalamityMod.NPCs
npc.spriteDirection = npc.direction;
npc.ai[1] += 1f;
if (npc.ai[1] >= 300f)
if (npc.ai[1] >= (death ? 240f : 300f))
{
npc.TargetClosest(true);
npc.ai[0] = 0f;
+36 -18
View File
@@ -116,6 +116,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Far larger size, 2 - Glows rainbow colors, 3 - Spawns a rainbow slime every 5% HP
#region Buffed King Slime AI
public static bool BuffedKingSlimeAI(NPC npc, Mod mod)
{
@@ -476,8 +478,10 @@ namespace CalamityMod.NPCs
if (npc.life <= 0)
return false;
// Adjust size npcd on HP
lifeRatio = lifeRatio * 0.5f + 0.75f;
// Adjust size based on HP
float maxScale = death ? 3f : 1.25f;
float minScale = 0.75f;
lifeRatio = lifeRatio * (maxScale - minScale) + minScale;
lifeRatio *= num234;
if (lifeRatio != npc.scale)
{
@@ -562,6 +566,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - 2 eyes spawn at once, one in phase 1 and one in phase 2
#region Buffed Eye of Cthulhu AI
public static bool BuffedEyeofCthulhuAI(NPC npc, bool enraged, Mod mod)
{
@@ -1379,6 +1385,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Far more segments, 2 - Larger scale, 3 - Can fly more easily, similar to the small perf worm
#region Buffed Eater of Worlds AI
public static bool BuffedEaterofWorldsAI(NPC npc, Mod mod)
{
@@ -1944,6 +1952,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Spawns far more Creepers, 2 - Moves and dashes far quicker, 3 - Creepers charge much quicker, 4 - Fully visible mirages in phase 2
#region Buffed Brain of Cthulhu AI
public static bool BuffedBrainofCthulhuAI(NPC npc, bool enraged, Mod mod)
{
@@ -2640,6 +2650,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Always has 1 added to her enrage scale
#region Buffed Queen Bee AI
public static bool BuffedQueenBeeAI(NPC npc, Mod mod)
{
@@ -3255,6 +3267,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Arms are immune to damage and Skeletron no longer has increased defense while the arms are alive
#region Buffed Skeletron AI
public static bool BuffedSkeletronAI(NPC npc, bool enraged, Mod mod)
{
@@ -3921,6 +3935,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Hungries spawn detached and have more health, 2 - Eyes are smaller and mouth is bigger, 3 - Moves quicker
#region Buffed Wall of Flesh AI
public static bool BuffedWallofFleshAI(NPC npc, bool enraged, Mod mod)
{
@@ -4431,6 +4447,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Splits like the Eater of Worlds
#region Buffed Destroyer AI
public static bool BuffedDestroyerAI(NPC npc, bool enraged, Mod mod)
{
@@ -5455,6 +5473,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Retinazer fires spreads of death lasers, moves and charges more often and faster, cycles attacks faster, 2 - Spazmatism moves and charges more often and faster, cycles attacks faster, 3 - Retinazer is slightly smaller and Spazmatism is slightly larger
#region Buffed Twins AI
public static bool BuffedRetinazerAI(NPC npc, bool enraged, Mod mod)
{
@@ -6906,6 +6926,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Charges far quicker, 2 - Arms and head accelerate extremely fast, 3 - Arms remain closer to the head and resist piercing
#region Buffed Skeletron Prime AI
public static bool BuffedSkeletronPrimeAI(NPC npc, bool enraged, Mod mod)
{
@@ -7682,8 +7704,8 @@ namespace CalamityMod.NPCs
}
Vector2 vector63 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
float num513 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - 350f - vector63.X;
float num514 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - 120f - vector63.Y; // Used to be 20f
float num513 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - 320f - vector63.X;
float num514 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - 160f - vector63.Y;
float num515 = (float)Math.Sqrt(num513 * num513 + num514 * num514);
num515 = (BossRushEvent.BossRushActive ? 10f : 7f) / num515;
num513 *= num515;
@@ -7715,10 +7737,10 @@ namespace CalamityMod.NPCs
}
npc.TargetClosest(true);
vector63 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
num513 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector63.X;
num514 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector63.Y;
num515 = (float)Math.Sqrt(num513 * num513 + num514 * num514);
npc.rotation = (float)Math.Atan2(num514, num513) - MathHelper.PiOver2;
if (Main.netMode != NetmodeID.MultiplayerClient && !dontAttack)
@@ -7979,10 +8001,10 @@ namespace CalamityMod.NPCs
}
npc.TargetClosest(true);
vector61 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
num499 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector61.X;
num500 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector61.Y;
num501 = (float)Math.Sqrt(num499 * num499 + num500 * num500);
npc.rotation = (float)Math.Atan2(num500, num499) - MathHelper.PiOver2;
if (Main.netMode != NetmodeID.MultiplayerClient && !dontAttack)
@@ -8208,7 +8230,6 @@ namespace CalamityMod.NPCs
Vector2 vector57 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
float num483 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector57.X;
float num484 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector57.Y;
float num485 = (float)Math.Sqrt(num483 * num483 + num484 * num484);
npc.rotation = (float)Math.Atan2(num484, num483) + MathHelper.PiOver2;
return false;
}
@@ -8222,7 +8243,6 @@ namespace CalamityMod.NPCs
Vector2 vector58 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
float num486 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - 280f * npc.ai[0] - vector58.X;
float num487 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector58.Y;
float num488 = (float)Math.Sqrt(num486 * num486 + num487 * num487);
npc.rotation = (float)Math.Atan2(num487, num486) + MathHelper.PiOver2;
npc.velocity.X = (npc.velocity.X * 5f + Main.npc[(int)npc.ai[1]].velocity.X) / 6f;
@@ -8247,7 +8267,7 @@ namespace CalamityMod.NPCs
vector58 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
num486 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector58.X;
num487 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector58.Y;
num488 = (float)Math.Sqrt(num486 * num486 + num487 * num487);
float num488 = (float)Math.Sqrt(num486 * num486 + num487 * num487);
num488 = chargeVelocity / num488;
npc.velocity.X = num486 * num488;
npc.velocity.Y = num487 * num488;
@@ -8287,7 +8307,6 @@ namespace CalamityMod.NPCs
Vector2 vector59 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
float num489 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector59.X;
float num490 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector59.Y;
float num491 = (float)Math.Sqrt(num489 * num489 + num490 * num490);
npc.rotation = (float)Math.Atan2(num490, num489) + MathHelper.PiOver2;
npc.velocity.Y = (npc.velocity.Y * 5f + Main.npc[(int)npc.ai[1]].velocity.Y) / 6f;
@@ -8311,7 +8330,7 @@ namespace CalamityMod.NPCs
vector59 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
num489 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector59.X;
num490 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector59.Y;
num491 = (float)Math.Sqrt(num489 * num489 + num490 * num490);
float num491 = (float)Math.Sqrt(num489 * num489 + num490 * num490);
num491 = chargeVelocity / num491;
npc.velocity.X = num489 * num491;
npc.velocity.Y = num490 * num491;
@@ -8525,7 +8544,6 @@ namespace CalamityMod.NPCs
Vector2 vector52 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
float num468 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector52.X;
float num469 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector52.Y;
float num470 = (float)Math.Sqrt(num468 * num468 + num469 * num469);
npc.rotation = (float)Math.Atan2(num469, num468) + MathHelper.PiOver2;
return false;
}
@@ -8535,7 +8553,6 @@ namespace CalamityMod.NPCs
Vector2 vector53 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
float num471 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector53.X;
float num472 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector53.Y;
float num473 = (float)Math.Sqrt(num471 * num471 + num472 * num472);
npc.rotation = (float)Math.Atan2(num472, num471) + MathHelper.PiOver2;
npc.velocity.X *= 0.95f;
@@ -8558,7 +8575,7 @@ namespace CalamityMod.NPCs
vector53 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
num471 = Main.player[npc.target].position.X + (Main.player[npc.target].width / 2) - vector53.X;
num472 = Main.player[npc.target].position.Y + (Main.player[npc.target].height / 2) - vector53.Y;
num473 = (float)Math.Sqrt(num471 * num471 + num472 * num472);
float num473 = (float)Math.Sqrt(num471 * num471 + num472 * num472);
num473 = chargeVelocity / num473;
npc.velocity.X = num471 * num473;
npc.velocity.Y = num472 * num473;
@@ -8633,7 +8650,6 @@ namespace CalamityMod.NPCs
vector54 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + npc.height * 0.5f);
num474 = Main.npc[(int)npc.ai[1]].position.X + (Main.npc[(int)npc.ai[1]].width / 2) - 200f * npc.ai[0] - vector54.X;
num475 = Main.npc[(int)npc.ai[1]].position.Y + 230f - vector54.Y;
num476 = (float)Math.Sqrt(num474 * num474 + num475 * num475);
npc.rotation = (float)Math.Atan2(num475, num474) + MathHelper.PiOver2;
return false;
}
@@ -8647,6 +8663,8 @@ namespace CalamityMod.NPCs
}
#endregion
// Master Mode changes
// 1 - Spawns multiple tentacle rings that now rotate, 2 - Spawns far more tentacles to protect herself in phase 2 and they resist piercing, 3 - Spore gas spreads out far more, 4 - Plantera is larger
#region Buffed Plantera AI
public static bool BuffedPlanteraAI(NPC npc, bool enraged, Mod mod)
{
@@ -10461,7 +10479,7 @@ namespace CalamityMod.NPCs
#endregion
// Master Mode changes
// 1 - Cycle between attacks faster, 2 - Move faster, 3 - Smaller size, 4 - Bigger tornadoes
// 1 - Cycles between attacks faster, 2 - Move faster, 3 - Smaller size, 4 - Bigger tornadoes
#region Buffed Duke Fishron AI
public static bool BuffedDukeFishronAI(NPC npc, bool enraged, Mod mod)
{
@@ -11425,7 +11443,7 @@ namespace CalamityMod.NPCs
#endregion
// Master Mode changes
// 1 - Use more dangerous attacks more often, 2 - Cycle between attacks faster
// 1 - Use more dangerous attacks more often, 2 - Cycles between attacks faster
#region Buffed Cultist AI
public static bool BuffedCultistAI(NPC npc, bool enraged, Mod mod)
{
@@ -12645,7 +12663,7 @@ namespace CalamityMod.NPCs
#endregion
// Master Mode changes
// 1 - lol
// 1 - Moon Lord is at maximum aggression at all times
#region Buffed Moon Lord AI
public static bool BuffedMoonLordAI(NPC npc, bool enraged, Mod mod)
{
+8 -3
View File
@@ -799,7 +799,7 @@ namespace CalamityMod.NPCs
if (CalamityWorld.revenge)
{
RevengeanceStatChanges(npc, mod);
RevDeathStatChanges(npc, mod);
}
OtherStatChanges(npc);
@@ -932,8 +932,8 @@ namespace CalamityMod.NPCs
}
#endregion
#region Revengeance Stat Changes
private void RevengeanceStatChanges(NPC npc, Mod mod)
#region Revengeance and Death Mode Stat Changes
private void RevDeathStatChanges(NPC npc, Mod mod)
{
npc.value = (int)(npc.value * 1.5);
@@ -1044,6 +1044,11 @@ namespace CalamityMod.NPCs
npc.lifeMax = (int)(npc.lifeMax * 1.25);
npc.npcSlots = 10f;
}
else if (npc.type == NPCID.KingSlime)
{
if (CalamityWorld.death)
npc.scale = 3f;
}
else if (npc.type == NPCID.Wraith || npc.type == NPCID.Mimic || npc.type == NPCID.Reaper || npc.type == NPCID.PresentMimic || npc.type == NPCID.SandElemental)
{
npc.knockBackResist = 0f;
+1 -1
View File
@@ -125,7 +125,7 @@ namespace CalamityMod.NPCs.Ravager
{
Vector2 shootFromVector = new Vector2(npc.Center.X, npc.Center.Y - 20f);
Vector2 velocity = new Vector2(0f, -15f);
int nuke = Projectile.NewProjectile(shootFromVector, velocity, type, damage + (provy ? 30 : 0), 0f, Main.myPlayer, npc.target + 1, 0f);
int nuke = Projectile.NewProjectile(shootFromVector, velocity, type, damage + (provy ? 30 : 0), 0f, Main.myPlayer, 0f, 0f);
Main.projectile[nuke].velocity.Y = -15f;
}
}