From f116cdec372c3fb2693221976310ff9b490757ef Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 2 Aug 2020 14:45:15 -0400 Subject: [PATCH 1/4] Fixed Exodus Wings description oversight --- Items/Accessories/Wings/XerocWings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Accessories/Wings/XerocWings.cs b/Items/Accessories/Wings/XerocWings.cs index 00ee2b732b..70e9f5a6a7 100644 --- a/Items/Accessories/Wings/XerocWings.cs +++ b/Items/Accessories/Wings/XerocWings.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories.Wings public override void SetStaticDefaults() { DisplayName.SetDefault("Exodus Wings"); - Tooltip.SetDefault("Highly radioactive\n" + + Tooltip.SetDefault("Pulsing with an alien heartbeat\n" + "Horizontal speed: 8.5\n" + "Acceleration multiplier: 2\n" + "Good vertical speed\n" + From 4e84520e4e41d8b83b70c10da5747e4d620ddf40 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Thu, 6 Aug 2020 21:51:43 -0400 Subject: [PATCH 2/4] fixed acid rain and AS modcalls --- ModSupport/ModCalls.cs | 46 +++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/ModSupport/ModCalls.cs b/ModSupport/ModCalls.cs index df1f5835a5..e3e3f30b12 100644 --- a/ModSupport/ModCalls.cs +++ b/ModSupport/ModCalls.cs @@ -27,11 +27,11 @@ namespace CalamityMod case "acid rain": case "acidrain": - case "acid rain initial": + case "acid rain 1": + case "acidrain 1": + case "acidrain1": case "acid rain eoc": case "acidrain eoc": - case "acidrain initial": - case "acidraininitial": case "acidraineoc": return CalamityWorld.downedEoCAcidRain; @@ -69,18 +69,25 @@ namespace CalamityMod case "the slime god": return CalamityWorld.downedSlimeGod; - case "acid rain aquatic": - case "acidrain aquatic": - case "acidrainaquatic": - case "acid rain scourge": - case "acidrain scourge": - case "acidrainscourge": - case "acid rain as": - case "acidrain as": - return CalamityWorld.downedAquaticScourgeAcidRain; - case "cryogen": return CalamityWorld.downedCryogen; + + case "acid rain 2": + case "acidrain 2": + case "acidrain2": + case "acid rain scourge": + case "acid rain aquatic scourge": + case "acid rain aquaticscourge": + case "acidrain scourge": + case "acidrain aquatic scourge": + case "acidrain aquaticscourge": + case "acidrainscourge": + case "acidrainaquaticscourge": + return CalamityWorld.downedAquaticScourgeAcidRain; + + case "aquaticscourge": + case "aquatic scourge": + return CalamityWorld.downedAquaticScourge; case "brimstoneelemental": case "brimstone elemental": @@ -100,6 +107,7 @@ namespace CalamityMod case "great sand shark": return CalamityWorld.downedGSS; + // Don't remove the old references to "Siren" here to avoid breaking other mods case "sirenleviathan": case "siren leviathan": case "sirenandleviathan": @@ -108,7 +116,6 @@ namespace CalamityMod case "siren": case "thesiren": case "the siren": - case "anahita": case "leviathan": case "theleviathan": @@ -168,16 +175,23 @@ namespace CalamityMod case "necroplasm": return CalamityWorld.downedPolterghast; + // Old Duke is also Acid Rain tier 3, so he gets those names too case "oldduke": case "old duke": + case "theoldduke": + case "the old duke": case "boomerduke": case "boomer duke": - case "acidrainduke": - case "acid rain duke": case "sulphurduke": case "sulphur duke": case "sulfurduke": case "sulfur duke": + case "acid rain 3": + case "acidrain 3": + case "acidrain3": + case "acid rain duke": + case "acidrain duke": + case "acidrainduke": return CalamityWorld.downedBoomerDuke; case "sentinel1": // backwards compatibility From d4f564183aaf1c4e097dda56c651685e31b73a1d Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Fri, 7 Aug 2020 01:58:28 -0500 Subject: [PATCH 3/4] 1 - Rev+ Moon Lord phantasmal eye AI changes. --- Projectiles/CalamityGlobalProjectile.cs | 119 ++++++++++++++++++++++++ 1 file changed, 119 insertions(+) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index ffad71a7f8..217d251a3c 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -347,6 +347,125 @@ namespace CalamityMod.Projectiles return false; } + // Change the stupid homing eyes + else if (projectile.type == ProjectileID.PhantasmalEye) + { + projectile.alpha -= 40; + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + if (projectile.ai[0] == 0f) + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] >= 45f) + { + projectile.localAI[0] = 0f; + projectile.ai[0] = 1f; + projectile.ai[1] = 0f - projectile.ai[1]; + projectile.netUpdate = true; + } + projectile.velocity.X = projectile.velocity.RotatedBy(projectile.ai[1]).X; + projectile.velocity.X = MathHelper.Clamp(projectile.velocity.X, -6f, 6f); + projectile.velocity.Y -= 0.08f; + if (projectile.velocity.Y > 0f) + { + projectile.velocity.Y -= 0.2f; + } + if (projectile.velocity.Y < -7f) + { + projectile.velocity.Y = -7f; + } + } + else if (projectile.ai[0] == 1f) + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] >= 90f) + { + projectile.localAI[0] = 0f; + projectile.ai[0] = 2f; + projectile.ai[1] = Player.FindClosest(projectile.position, projectile.width, projectile.height); + projectile.netUpdate = true; + } + projectile.velocity.X = projectile.velocity.RotatedBy(projectile.ai[1]).X; + projectile.velocity.X = MathHelper.Clamp(projectile.velocity.X, -6f, 6f); + projectile.velocity.Y -= 0.08f; + if (projectile.velocity.Y > 0f) + { + projectile.velocity.Y -= 0.2f; + } + if (projectile.velocity.Y < -7f) + { + projectile.velocity.Y = -7f; + } + } + else if (projectile.ai[0] == 2f) + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] >= 60f) + { + projectile.localAI[0] = 0f; + projectile.ai[0] = 3f; + projectile.netUpdate = true; + } + Vector2 value23 = Main.player[(int)projectile.ai[1]].Center - projectile.Center; + value23.Normalize(); + value23 *= 12f; + value23 = Vector2.Lerp(projectile.velocity, value23, 0.6f); + float num675 = 0.4f; + if (projectile.velocity.X < value23.X) + { + projectile.velocity.X += num675; + if (projectile.velocity.X < 0f && value23.X > 0f) + { + projectile.velocity.X += num675; + } + } + else if (projectile.velocity.X > value23.X) + { + projectile.velocity.X -= num675; + if (projectile.velocity.X > 0f && value23.X < 0f) + { + projectile.velocity.X -= num675; + } + } + if (projectile.velocity.Y < value23.Y) + { + projectile.velocity.Y += num675; + if (projectile.velocity.Y < 0f && value23.Y > 0f) + { + projectile.velocity.Y += num675; + } + } + else if (projectile.velocity.Y > value23.Y) + { + projectile.velocity.Y -= num675; + if (projectile.velocity.Y > 0f && value23.Y < 0f) + { + projectile.velocity.Y -= num675; + } + } + } + else if (projectile.ai[0] == 3f) + { + Vector2 value23 = Main.player[(int)projectile.ai[1]].Center - projectile.Center; + if (value23.Length() < 30f) + { + projectile.Kill(); + return false; + } + if (projectile.velocity.Length() < 18f) + projectile.velocity *= 1.01f; + } + if (projectile.alpha < 40) + { + int num676 = Dust.NewDust(projectile.Center - Vector2.One * 5f, 10, 10, 229, (0f - projectile.velocity.X) / 3f, (0f - projectile.velocity.Y) / 3f, 150, Color.Transparent, 1.2f); + Main.dust[num676].noGravity = true; + } + projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2; + return false; + } + // Moon Lord Deathray else if (projectile.type == ProjectileID.PhantasmalDeathray) { From 7b31aa8b773554f4f9634c58b26ce9fa4b17d9b7 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Fri, 7 Aug 2020 05:10:56 -0500 Subject: [PATCH 4/4] 1 - Reduced Piggy spawn rates a bit. --- NPCs/NormalNPCs/Piggy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/NormalNPCs/Piggy.cs b/NPCs/NormalNPCs/Piggy.cs index c0b7ad111f..6fdfb9a214 100644 --- a/NPCs/NormalNPCs/Piggy.cs +++ b/NPCs/NormalNPCs/Piggy.cs @@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.NormalNPCs { return 0f; } - return SpawnCondition.TownCritter.Chance * 0.01f; + return SpawnCondition.TownCritter.Chance * 0.005f; } public override void FindFrame(int frameHeight)