diff --git a/Items/SummonItems/BloodwormItem.cs b/Items/SummonItems/BloodwormItem.cs index 5bd5f6c758..b511859045 100644 --- a/Items/SummonItems/BloodwormItem.cs +++ b/Items/SummonItems/BloodwormItem.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.SummonItems { public new string LocalizationCategory => "Items.SummonItems"; - private const int SpoofBaitNumber = 4444; + public const int SpoofBaitNumber = 4444; public override void SetStaticDefaults() { Item.ResearchUnlockCount = 3; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs index 9b70e6bac4..35fc92c954 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs @@ -1664,6 +1664,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride if (Time <= ChaseTime) { + NPC.damage = NPC.defDamage; float speedUp = MathHelper.Clamp((Time - 10) / 10f, 0f, 1f); float slowDown = 1 - MathHelper.Clamp((Time - (ChaseTime - 15)) / 15f, 0f, 1f); float angleChange = MathHelper.Lerp(MathHelper.Pi / 24f, 0f, MathHelper.Clamp(Time / (ChaseTime * 0.666f), 0f, 1f)); @@ -1676,6 +1677,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride Vector2 direction = Target.velocity.SafeNormalize(Vector2.UnitX * Target.direction).RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 3f, MathHelper.Pi / 3f)); AttackPosition = Target.Center + (direction * DefaultTeleportDistance); BoCAfterImages = []; + NPC.damage = 0; NPC.netUpdate = true; } else @@ -1687,6 +1689,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride else { TeleportDuration = IdleTeleportDuration; + NPC.damage = 0; Vector2 endPoint = AttackPosition; @@ -1950,6 +1953,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride if (endTime == 0) SoundEngine.PlaySound(Roar, NPC.Center); + if (endTime >= DashPrepTime) { if (endTime < DashPrepTime + DashReelbackTime) @@ -1985,6 +1989,8 @@ public class BrainOfCthulhuAI : VanillaAIOverride private void SanguineScythes() { + NPC.damage = 0; + #region Attack Ending if (AttackCounter > SanguineTeleportCount) { @@ -2289,6 +2295,8 @@ public class BrainOfCthulhuAI : VanillaAIOverride private void IllusionDash() { + NPC.damage = 0; + #region Attack Start if (Time < IllusionDashTeleportDuration) { diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/CreeperAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/CreeperAI.cs index 41aeb8b39c..8ad34c50b4 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/CreeperAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/CreeperAI.cs @@ -587,7 +587,7 @@ public class CreeperAI : VanillaAIOverride ConnectionOpacity = BringOpacityTo(ConnectionOpacity, 0f, 0.05f); float slowDown = (1 - MathHelper.Clamp((bossCounter - OrbitDuration) / 30f, 0f, 1f)); - AttackAngle += (BaseRotationSpeed * (MathHelper.Lerp(1f, 0.5f, CreeperAmountRatio) + (bocAI.OnSecondCreeperPhase ? 1f : 0.5f))) * slowDown * bocAI.AttackSign; + AttackAngle += (BaseRotationSpeed * (MathHelper.Lerp(1f, 0.5f, CreeperAmountRatio) + (bocAI.OnSecondCreeperPhase ? 0.75f : 0.5f))) * slowDown * bocAI.AttackSign; Vector2 rotation = Vector2.UnitX.RotatedBy(CachedValue1 + AttackAngle) * dist; if (bossCounter < OrbitSetupDuration) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index ee5a3cbc01..26a5993dbd 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -3333,7 +3333,7 @@ namespace CalamityMod.Projectiles { projectile.ai[0] = 1; projectile.localAI[1] = NPCType() * -1; - baitPower = 4444; // Manually set the power to the displayed value + baitPower = BloodwormItem.SpoofBaitNumber; // Manually set the power to the displayed value ReelTheBobberChecks(); } else if (baitPower > 75) @@ -3622,9 +3622,10 @@ namespace CalamityMod.Projectiles if (TimerToCatch <= 0) { projectile.FishingCheck(); - if (projectile.ai[1] < 0 && !(projectile.lavaWet && !owner.accLavaFishing)) + var fishingCond = Main.player[projectile.owner].GetFishingConditions(); + bool canLavaFish = ItemID.Sets.CanFishInLava[fishingCond.PoleItemType] || ItemID.Sets.IsLavaBait[fishingCond.BaitItemType] || Main.player[projectile.owner].accLavaFishing; + if (projectile.ai[1] < 0 && !(projectile.lavaWet && !canLavaFish)) { - CaughtItemID = (int)projectile.localAI[1]; projectile.ai[1] = 0; projectile.localAI[1] = 0; diff --git a/Systems/Mechanic/RecipeSystem.cs b/Systems/Mechanic/RecipeSystem.cs index 22135486fa..b28cf6f45e 100644 --- a/Systems/Mechanic/RecipeSystem.cs +++ b/Systems/Mechanic/RecipeSystem.cs @@ -1391,7 +1391,7 @@ namespace CalamityMod.Systems r = Recipe.Create(ItemID.Bacon); r.AddIngredient(); - r.AddTile(TileID.Hellforge); + r.AddTile(TileID.CookingPots); r.Register(); r.DisableDecraft(); }