From 01d6a7e2ffa1e736e2d4bb1d4aa430fb3c75440c Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Fri, 28 Aug 2020 18:16:31 -0500 Subject: [PATCH] 1 - Nerfed Squishy Bean mount. 2 - Squishy Bean mount increased fall speed is activated quicker by holding down. 3 - Changed Fabsol mount item name and tooltip. 4 - Cryogen no longer deals greatly increased contact damage in final phase. 5 - Fixed DoG phase 2 laser wall bugs. --- Items/Mounts/AlicornMount.cs | 10 ++++---- Items/Mounts/Fabsol.cs | 4 +-- Items/Mounts/SquishyBean.cs | 16 ++++++------ NPCs/Cryogen/Cryogen.cs | 2 +- NPCs/DevourerofGods/DevourerofGodsHeadS.cs | 9 ++++--- NPCs/Leviathan/Siren.cs | 29 ++++++++++++---------- NPCs/TownNPCs/FAP.cs | 2 +- Utilities/NPCStats.cs | 4 +-- 8 files changed, 39 insertions(+), 37 deletions(-) diff --git a/Items/Mounts/AlicornMount.cs b/Items/Mounts/AlicornMount.cs index 5669c11af0..6de53820ff 100644 --- a/Items/Mounts/AlicornMount.cs +++ b/Items/Mounts/AlicornMount.cs @@ -74,12 +74,11 @@ namespace CalamityMod.Items.Mounts { CalamityPlayer modPlayer = player.Calamity(); if (modPlayer.fabsolVodka) + player.allDamage += 0.1f; + + if (player.velocity.Length() > 9f) { - player.allDamage += 0.1f; - } - if (Math.Abs(player.velocity.X) > 12f || Math.Abs(player.velocity.Y) > 12f) - { - int rand = Main.rand.Next(2); + int rand = Main.rand.Next(2); bool momo = false; if (rand == 1) { @@ -98,6 +97,7 @@ namespace CalamityMod.Items.Mounts int dust = Dust.NewDust(new Vector2(rect.X, rect.Y), rect.Width, rect.Height, 234, 0, 0, 0, meme); Main.dust[dust].noGravity = true; } + if (player.velocity.Y != 0f) { if (player.mount.PlayerOffset == 28) diff --git a/Items/Mounts/Fabsol.cs b/Items/Mounts/Fabsol.cs index 17a060ce44..2c622ed09e 100644 --- a/Items/Mounts/Fabsol.cs +++ b/Items/Mounts/Fabsol.cs @@ -8,8 +8,8 @@ namespace CalamityMod.Items.Mounts { public override void SetStaticDefaults() { - DisplayName.SetDefault("Fabsol"); - Tooltip.SetDefault("Summons an alicorn\n" + + DisplayName.SetDefault("Princess Spirit in a Bottle"); + Tooltip.SetDefault("Summons the spirit of Cirrus, the Drunk Princess, in her alicorn form\n" + "Revengeance drop"); } diff --git a/Items/Mounts/SquishyBean.cs b/Items/Mounts/SquishyBean.cs index 42816aa49f..67cd6be372 100644 --- a/Items/Mounts/SquishyBean.cs +++ b/Items/Mounts/SquishyBean.cs @@ -14,14 +14,10 @@ namespace CalamityMod.Items.Mounts mountData.fallDamage = -1; mountData.runSpeed = 5f; mountData.dashSpeed = 8f; - mountData.fatigueMax = 0; mountData.jumpHeight = 20; mountData.acceleration = 0.1f; - mountData.jumpSpeed = 40f; //20 - mountData.blockExtraJumps = true; + mountData.jumpSpeed = 20f; mountData.totalFrames = 4; - mountData.constantJump = true; - mountData.usesHover = false; int[] array = new int[mountData.totalFrames]; for (int l = 0; l < array.Length; l++) { @@ -77,11 +73,13 @@ namespace CalamityMod.Items.Mounts public override void UpdateEffects(Player player) { - player.statDefense += 60; - player.gravity = 2f; - player.maxFallSpeed = 25f; + if (player.velocity.Y > 0f || player.controlDown) + { + player.gravity = 1f; + player.maxFallSpeed = 20f; + } player.noFallDmg = true; } - } + } } diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 4c71ff794f..a629991b71 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -730,7 +730,7 @@ namespace CalamityMod.NPCs.Cryogen } else if (npc.ai[0] == 5f) { - npc.damage = (int)(npc.defDamage * 1.5f); + npc.damage = npc.defDamage; if (phase7) { diff --git a/NPCs/DevourerofGods/DevourerofGodsHeadS.cs b/NPCs/DevourerofGods/DevourerofGodsHeadS.cs index b866329770..5b78c313bf 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHeadS.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHeadS.cs @@ -182,6 +182,10 @@ namespace CalamityMod.NPCs.DevourerofGods if (calamityGlobalNPC.newAI[3] >= 720f) { npc.alpha = 255; + + // Reset laser wall timer to 0 + calamityGlobalNPC.newAI[1] = 0f; + calamityGlobalNPC.newAI[3] = 0f; laserWallPhase = (int)LaserWallPhase.FireLaserWalls; } @@ -189,9 +193,6 @@ namespace CalamityMod.NPCs.DevourerofGods } else if (laserWallPhase == (int)LaserWallPhase.FireLaserWalls) { - // Reset laser wall timer to 0 - calamityGlobalNPC.newAI[1] = 0f; - // Remain in laser wall firing phase for 6 seconds idleCounter--; if (idleCounter <= 0) @@ -238,7 +239,7 @@ namespace CalamityMod.NPCs.DevourerofGods laserWallPhase = (int)LaserWallPhase.SetUp; // Enter final phase - if (!halfLife) + if (!halfLife && phase3) { // Teleport close to the target Teleport(player, true); diff --git a/NPCs/Leviathan/Siren.cs b/NPCs/Leviathan/Siren.cs index 3f2cfab324..cd5183d667 100644 --- a/NPCs/Leviathan/Siren.cs +++ b/NPCs/Leviathan/Siren.cs @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.Leviathan npc.dontTakeDamage = reader.ReadBoolean(); } - public override void AI() + public override void AI() { // whoAmI variable CalamityGlobalNPC.siren = npc.whoAmI; @@ -257,18 +257,21 @@ namespace CalamityMod.NPCs.Leviathan } // Alpha - if (isNotOcean) - { - npc.alpha += 3; - if (npc.alpha >= 150) - npc.alpha = 150; - } - else - { - npc.alpha -= 5; - if (npc.alpha <= 0) - npc.alpha = 0; - } + if (npc.damage != 0) + { + if (isNotOcean) + { + npc.alpha += 3; + if (npc.alpha >= 150) + npc.alpha = 150; + } + else + { + npc.alpha -= 5; + if (npc.alpha <= 0) + npc.alpha = 0; + } + } // Play sound if (Main.rand.NextBool(300)) diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 1e7e133c07..f5c4ac0dbf 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.TownNPCs { dialogue.Add("So...you're riding me, huh? That's not weird at all."); dialogue.Add("Are you coming on to me?"); - dialogue.Add("If I was a magical horse, I'd be out in space swirling cocktails, as I watch space worms battle for my enjoyment."); + dialogue.Add("If I was a magical horse, I'd be out in space, swirling cocktails, as I watch space worms battle for my enjoyment."); } IList donorList = new List(CalamityLists.donatorList); diff --git a/Utilities/NPCStats.cs b/Utilities/NPCStats.cs index 60d02d5a5e..0433c65a9e 100644 --- a/Utilities/NPCStats.cs +++ b/Utilities/NPCStats.cs @@ -44,8 +44,8 @@ using Terraria.ModLoader; namespace CalamityMod { - public static class NPCStats - { + public static class NPCStats + { // I want to die public static void GetNPCDamage(this NPC npc, bool expert, bool revenge, bool death, bool? master = null) {