From ad477093479fe3f5868ca92e0ef4f5619128f3e1 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 16 Feb 2026 19:27:29 -0500 Subject: [PATCH 01/44] You cannot use GSD and Relic of Deliverance at the same time --- CalPlayer/CalamityPlayer.cs | 8 ++++++++ Items/Weapons/Typeless/RelicOfDeliverance.cs | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ba1d05dc99..986e166c17 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3811,6 +3811,14 @@ namespace CalamityMod.CalPlayer if (godSlayer && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && !Player.HasCooldown(GodSlayerDash.ID) && Player.dashDelay == 0) { godSlayerDashHotKeyPressed = true; + foreach (Projectile p in Main.ActiveProjectiles) + { + if (p.type == ProjectileType() && Player.whoAmI == p.owner) + { + (p.ModProjectile as RelicOfDeliveranceSpear).KillProj(); + return; + } + } } } diff --git a/Items/Weapons/Typeless/RelicOfDeliverance.cs b/Items/Weapons/Typeless/RelicOfDeliverance.cs index 52a8e2e512..8dd3c542b9 100644 --- a/Items/Weapons/Typeless/RelicOfDeliverance.cs +++ b/Items/Weapons/Typeless/RelicOfDeliverance.cs @@ -1,4 +1,5 @@ -using CalamityMod.Projectiles.Typeless; +using CalamityMod.CalPlayer.Dashes; +using CalamityMod.Projectiles.Typeless; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -40,6 +41,6 @@ namespace CalamityMod.Items.Weapons.Typeless // Terraria seems to really dislike high crit values in SetDefaults public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 55; - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0; + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && player.Calamity().DashID != GodslayerArmorDash.ID; } } From 5e2735c7b297fbda560f808b71bf56200244d7aa Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 16 Feb 2026 19:33:19 -0500 Subject: [PATCH 02/44] Firestorm Cannon nerf --- Items/Weapons/Ranged/FirestormCannon.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/FirestormCannon.cs b/Items/Weapons/Ranged/FirestormCannon.cs index f26eca63a1..bece6011c9 100644 --- a/Items/Weapons/Ranged/FirestormCannon.cs +++ b/Items/Weapons/Ranged/FirestormCannon.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 56; Item.height = 28; - Item.damage = 17; + Item.damage = 15; Item.DamageType = DamageClass.Ranged; Item.useTime = Item.useAnimation = 11; Item.knockBack = 1.5f; From be23098565958288af32f8fff79833b2d7e88002 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Tue, 17 Feb 2026 07:50:37 +0700 Subject: [PATCH 03/44] update perma upgrade prices recipe changes got to this one --- Items/PermanentBoosters/MiracleFruit.cs | 2 +- Items/PermanentBoosters/SacredStrawberry.cs | 2 +- Items/PermanentBoosters/SanguineTangerine.cs | 2 +- Items/PermanentBoosters/TaintedCloudberry.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/PermanentBoosters/MiracleFruit.cs b/Items/PermanentBoosters/MiracleFruit.cs index bd12178cf9..055e92bc5c 100644 --- a/Items/PermanentBoosters/MiracleFruit.cs +++ b/Items/PermanentBoosters/MiracleFruit.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Items.PermanentBoosters Item.useAnimation = Item.useTime = 30; Item.UseSound = UseSound; Item.useStyle = ItemUseStyleID.HoldUp; - Item.value = Item.sellPrice(gold: 30); + Item.value = Item.sellPrice(gold: 24); Item.rare = ItemRarityID.Yellow; } diff --git a/Items/PermanentBoosters/SacredStrawberry.cs b/Items/PermanentBoosters/SacredStrawberry.cs index 96e4dd00f7..50e53a941c 100644 --- a/Items/PermanentBoosters/SacredStrawberry.cs +++ b/Items/PermanentBoosters/SacredStrawberry.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Items.PermanentBoosters Item.useAnimation = Item.useTime = 30; Item.UseSound = UseSound; Item.useStyle = ItemUseStyleID.HoldUp; - Item.value = Item.sellPrice(gold: 48); + Item.value = Item.sellPrice(gold: 36); Item.rare = ModContent.RarityType(); } diff --git a/Items/PermanentBoosters/SanguineTangerine.cs b/Items/PermanentBoosters/SanguineTangerine.cs index 473b2b825b..2f8a6cb783 100644 --- a/Items/PermanentBoosters/SanguineTangerine.cs +++ b/Items/PermanentBoosters/SanguineTangerine.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.PermanentBoosters Item.useAnimation = Item.useTime = 30; Item.UseSound = UseSound; Item.useStyle = ItemUseStyleID.HoldUp; - Item.value = Item.sellPrice(gold: 24); + Item.value = Item.sellPrice(gold: 16); Item.rare = ItemRarityID.LightPurple; } diff --git a/Items/PermanentBoosters/TaintedCloudberry.cs b/Items/PermanentBoosters/TaintedCloudberry.cs index 93bcaf634f..8e4092d358 100644 --- a/Items/PermanentBoosters/TaintedCloudberry.cs +++ b/Items/PermanentBoosters/TaintedCloudberry.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.PermanentBoosters Item.useAnimation = Item.useTime = 30; Item.UseSound = UseSound; Item.useStyle = ItemUseStyleID.HoldUp; - Item.value = Item.sellPrice(gold: 36); + Item.value = Item.sellPrice(gold: 28); Item.rare = ModContent.RarityType(); } From 67cc1866cff3832c2c6ce1bb59c1ebf490865eda Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Tue, 17 Feb 2026 07:53:23 +0700 Subject: [PATCH 04/44] garand is sold without a custom price --- Items/Weapons/Ranged/M1Garand.cs | 2 +- NPCs/CalamityGlobalTownNPC.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Ranged/M1Garand.cs b/Items/Weapons/Ranged/M1Garand.cs index ff034f96b2..27254cb375 100644 --- a/Items/Weapons/Ranged/M1Garand.cs +++ b/Items/Weapons/Ranged/M1Garand.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAmmo = AmmoID.Bullet; Item.noUseGraphic = true; - Item.value = CalamityGlobalItem.RarityOrangeBuyPrice; + Item.value = Item.buyPrice(gold: 20); // Sold by Arms Dealer Item.rare = ItemRarityID.Orange; } diff --git a/NPCs/CalamityGlobalTownNPC.cs b/NPCs/CalamityGlobalTownNPC.cs index 2e8d54eebc..21bdbb8ca3 100644 --- a/NPCs/CalamityGlobalTownNPC.cs +++ b/NPCs/CalamityGlobalTownNPC.cs @@ -1253,7 +1253,7 @@ namespace CalamityMod.NPCs if (type == NPCID.ArmsDealer) { - shop.AddWithCustomValue(ItemType(), Item.buyPrice(gold: 20), Condition.DownedSkeletron) + shop.Add(Condition.DownedSkeletron) .Add(Condition.Hardmode) .AddWithCustomValue(ItemID.Boomstick, Item.buyPrice(gold: 25), Condition.DownedQueenBee) .AddWithCustomValue(ItemID.Uzi, Item.buyPrice(gold: 50), Condition.DownedPlantera); From 7436e4f10a53998909f53abf5674c38a46978913 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 16 Feb 2026 22:12:52 -0500 Subject: [PATCH 05/44] 1 - Nerfed Baby Cannonball Jellyfish's Cannon effectiveness 2 - Reverted several ID-static iframe changes for vanilla projectiles that resulted in double hitting or AI breakage --- Items/Critters/BabyCannonballJellyfishItem.cs | 2 +- Projectiles/CalamityGlobalProjectileTweaks.cs | 16 ++++------------ Projectiles/Typeless/BabyCannonballProjectile.cs | 2 +- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Items/Critters/BabyCannonballJellyfishItem.cs b/Items/Critters/BabyCannonballJellyfishItem.cs index d36cc2a4b9..644de42130 100644 --- a/Items/Critters/BabyCannonballJellyfishItem.cs +++ b/Items/Critters/BabyCannonballJellyfishItem.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Critters Item.DefaultToCapturedCritter(ModContent.NPCType()); Item.value = Item.sellPrice(silver: 10); Item.rare = ItemRarityID.Green; - Item.damage = 400; + Item.damage = 300; } } } diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 9d21db0c48..2f77f97505 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -328,7 +328,7 @@ namespace CalamityMod.Projectiles { ProjectileID.CrimsandBallGun, defaultIFrames }, { ProjectileID.CrimsonHeart, defaultIFrames }, { ProjectileID.CrimsonSpray, defaultIFrames }, - { ProjectileID.CrystalDart, Do( ExtraUpdatesExact(2), LocalIFrames(-1)) }, + { ProjectileID.CrystalDart, Do(ExtraUpdatesExact(2), LocalIFrames(-1)) }, { ProjectileID.CrystalLeaf, defaultIFrames }, { ProjectileID.CrystalLeafShot, defaultIFrames }, { ProjectileID.CrystalPulse, defaultIFrames }, @@ -338,7 +338,7 @@ namespace CalamityMod.Projectiles { ProjectileID.CrystalVileShardHead, defaultIFrames }, { ProjectileID.CrystalVileShardShaft, defaultIFrames }, { ProjectileID.CursedArrow, defaultIFrames }, - { ProjectileID.CursedDart, Do( ExtraUpdatesExact(1), LocalIFrames(20)) }, + { ProjectileID.CursedDart, Do(ExtraUpdatesExact(1), LocalIFrames(20)) }, { ProjectileID.CursedDartFlame, defaultIFrames }, { ProjectileID.CursedFlameFriendly, defaultIFrames }, { ProjectileID.CursedFlare, defaultIFrames }, @@ -397,7 +397,7 @@ namespace CalamityMod.Projectiles { ProjectileID.IceBlock, defaultIFrames }, { ProjectileID.IceBolt, defaultIFrames }, { ProjectileID.IchorArrow, defaultIFrames }, - { ProjectileID.IchorDart, Do( ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, + { ProjectileID.IchorDart, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, { ProjectileID.JackOLantern, defaultIFrames }, { ProjectileID.JavelinFriendly, defaultIFrames }, { ProjectileID.JestersArrow, defaultIFrames }, @@ -412,13 +412,9 @@ namespace CalamityMod.Projectiles { ProjectileID.LavaSnowmanRocket, defaultIFrames }, { ProjectileID.Leaf, defaultIFrames }, { ProjectileID.LifeCrystalBoulder, defaultIFrames }, - { ProjectileID.MagicMissile, Do(IDStaticIFrames(8)) }, // Has an exception in Vanilla iframe code, uses 8 iframes { ProjectileID.MagnetSphereBolt, defaultIFrames }, { ProjectileID.MedusaHead, defaultIFrames }, { ProjectileID.MedusaHeadRay, defaultIFrames }, - { ProjectileID.Meteor1, Do(IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes - { ProjectileID.Meteor2, Do(IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes - { ProjectileID.Meteor3, Do(IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes { ProjectileID.MinecartMechLaser, defaultIFrames }, { ProjectileID.MiniBoulder, defaultIFrames }, { ProjectileID.MiniMinotaur, defaultIFrames }, @@ -441,8 +437,6 @@ namespace CalamityMod.Projectiles { ProjectileID.NailFriendly, Do(IDStaticIFrames(1)) }, // Has an exception in Vanilla iframe code, uses 1 iframe { ProjectileID.NebulaArcanumExplosionShot, defaultIFrames }, { ProjectileID.NebulaArcanumExplosionShotShard, defaultIFrames }, - { ProjectileID.NebulaBlaze1, Do(IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes - { ProjectileID.NebulaBlaze2, Do(IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes { ProjectileID.NettleBurstEnd, defaultIFrames }, { ProjectileID.NettleBurstLeft, defaultIFrames }, { ProjectileID.NettleBurstRight, defaultIFrames }, @@ -466,7 +460,7 @@ namespace CalamityMod.Projectiles { ProjectileID.PhantasmArrow, defaultIFrames }, { ProjectileID.PineNeedleFriendly, defaultIFrames }, { ProjectileID.PlatinumCoin, defaultIFrames }, - { ProjectileID.PoisonDart, Do( ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, + { ProjectileID.PoisonDart, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, { ProjectileID.PoisonDartBlowgun, defaultIFrames }, { ProjectileID.PoisonDartTrap, defaultIFrames }, { ProjectileID.PoisonedKnife, defaultIFrames }, @@ -549,7 +543,6 @@ namespace CalamityMod.Projectiles { ProjectileID.StickyDynamite, defaultIFrames }, { ProjectileID.StickyGrenade, defaultIFrames }, { ProjectileID.StormTigerGem, defaultIFrames }, - { ProjectileID.Stynger, Do(IDStaticIFrames(7)) }, // Has an exception in Vanilla iframe code, uses 7 iframes { ProjectileID.StyngerShrapnel, defaultIFrames }, { ProjectileID.TentacleSpike, defaultIFrames }, { ProjectileID.ThornChakram, defaultIFrames }, @@ -566,7 +559,6 @@ namespace CalamityMod.Projectiles { ProjectileID.ToxicFlask, defaultIFrames }, { ProjectileID.Truffle, defaultIFrames }, { ProjectileID.TruffleSpore, defaultIFrames }, - { ProjectileID.Typhoon, Do(IDStaticIFrames(6)) }, // Has an exception in Vanilla iframe code, uses 6 iframes { ProjectileID.UFOLaser, defaultIFrames }, { ProjectileID.UFOMinion, defaultIFrames }, { ProjectileID.UnholyArrow, defaultIFrames }, diff --git a/Projectiles/Typeless/BabyCannonballProjectile.cs b/Projectiles/Typeless/BabyCannonballProjectile.cs index 2dcca5f59d..81dd4c3a93 100644 --- a/Projectiles/Typeless/BabyCannonballProjectile.cs +++ b/Projectiles/Typeless/BabyCannonballProjectile.cs @@ -92,7 +92,7 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(SoundID.Item88, Projectile.Center); if (Projectile.owner == Main.myPlayer) { - int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); + int p = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack, Projectile.owner); Main.projectile[p].DamageType = DamageClass.Default; } // Circular spread of clouds and bubbles for impact From 1e89b77b3c75c5a014bbae5291134ba0e0a9b0a5 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 16 Feb 2026 22:22:51 -0500 Subject: [PATCH 06/44] Removed unused grapeBeerTimer variable --- CalPlayer/CalamityPlayer.cs | 3 --- Projectiles/CalamityGlobalProjectile.cs | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 986e166c17..3003008d01 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1458,7 +1458,6 @@ namespace CalamityMod.CalPlayer public bool redWine = false; public float redWineStoredY = 0; public bool grapeBeer = false; - public int grapeBeerTimer = 0; public bool moonshine = false; public bool rum = false; public bool whiskey = false; @@ -2746,8 +2745,6 @@ namespace CalamityMod.CalPlayer vodka = false; redWine = false; grapeBeer = false; - if (grapeBeerTimer > 0) - grapeBeerTimer--; moonshine = false; rum = false; whiskey = false; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index e35861b142..e3137e2e57 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -336,7 +336,7 @@ namespace CalamityMod.Projectiles { if (player.Calamity().grapeBeer && (item.useAmmo == AmmoID.Bullet || item.useAmmo == AmmoID.Arrow || item.useAmmo == AmmoID.Dart || item.useAmmo == AmmoID.Rocket)) { - if (player.heldProj != projectile.whoAmI && projectile.aiStyle != ProjAIStyleID.HeldProjectile && projectile.damage > 0 && player.Calamity().grapeBeerTimer < 5 && !CalamityProjectileSets.DoesNotGetHomingWithGrapeBeer[projectile.type]) + if (player.heldProj != projectile.whoAmI && projectile.aiStyle != ProjAIStyleID.HeldProjectile && projectile.damage > 0 && !CalamityProjectileSets.DoesNotGetHomingWithGrapeBeer[projectile.type]) ApplyGrapeBeer(); else grapeBeer = true; @@ -357,7 +357,7 @@ namespace CalamityMod.Projectiles //Grape Beer homing if (parent.Calamity().grapeBeer) { - if (Main.player[projectile.owner].heldProj != projectile.whoAmI && projectile.aiStyle != ProjAIStyleID.HeldProjectile && projectile.damage > 0 && Main.player[projectile.owner].Calamity().grapeBeerTimer < 5 && !CalamityProjectileSets.DoesNotGetHomingWithGrapeBeer[projectile.type]) + if (Main.player[projectile.owner].heldProj != projectile.whoAmI && projectile.aiStyle != ProjAIStyleID.HeldProjectile && projectile.damage > 0 && !CalamityProjectileSets.DoesNotGetHomingWithGrapeBeer[projectile.type]) ApplyGrapeBeer(); else grapeBeer = true; From a2f9ed6751f703a9e2f6c18bbab8abc6bf063ccc Mon Sep 17 00:00:00 2001 From: apotofkoolaid Date: Tue, 17 Feb 2026 10:06:40 -0600 Subject: [PATCH 07/44] Fixed Exo Work Bench dropping twice --- Tiles/FurnitureExo/ExoWorkBenchTile.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Tiles/FurnitureExo/ExoWorkBenchTile.cs b/Tiles/FurnitureExo/ExoWorkBenchTile.cs index d77a9b53bb..fdd26e7386 100644 --- a/Tiles/FurnitureExo/ExoWorkBenchTile.cs +++ b/Tiles/FurnitureExo/ExoWorkBenchTile.cs @@ -29,11 +29,6 @@ namespace CalamityMod.Tiles.FurnitureExo num = fail ? 1 : 3; } - public override void KillMultiTile(int i, int j, int frameX, int frameY) - { - Item.NewItem(new EntitySource_TileBreak(i, j), i * 16, j * 16, 32, 16, ModContent.ItemType()); - } - public override void PostDraw(int i, int j, SpriteBatch spriteBatch) { if (Main.tile[i, j].IsTileActuallyInvisible()) From 64d3121568d5ef91f88c247aecc3fb1f933c0ed4 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 17:23:45 -0600 Subject: [PATCH 08/44] abyss now generates with unsafe walls --- World/Abyss.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/World/Abyss.cs b/World/Abyss.cs index e36254d037..ca8dca54fe 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -245,7 +245,7 @@ namespace CalamityMod.World else { tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); + tile.WallType = (ushort)ModContent.WallType(); } } //basically places smaller clusters everywhere else? @@ -301,7 +301,7 @@ namespace CalamityMod.World else { tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); + tile.WallType = (ushort)ModContent.WallType(); } } } From ab9fd2d0c607763475626936780c601c3d94035e Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 17:14:44 -0600 Subject: [PATCH 09/44] probably fixed the entire summoner class --- Buffs/Summon/BaseSummonBuff.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Buffs/Summon/BaseSummonBuff.cs b/Buffs/Summon/BaseSummonBuff.cs index 9fede4e1a2..de0d355b89 100644 --- a/Buffs/Summon/BaseSummonBuff.cs +++ b/Buffs/Summon/BaseSummonBuff.cs @@ -37,8 +37,8 @@ namespace CalamityMod.Buffs.Summon public override void Update(Player player, ref int buffIndex) { - BuffOwner ??= player; - BuffModdedOwner ??= player.Calamity(); + BuffOwner = player; + BuffModdedOwner = player.Calamity(); if (player.ownedProjectileCounts[MinionProjectileType] > 0) MinionBool = true; From 4ec4c114dbea14eb54ffec49101ee49cecca6e84 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 17:36:40 -0600 Subject: [PATCH 10/44] acidwood trees no longer get obstructed by the ground they are placed on --- Tiles/Abyss/AcidWoodTreeSapling.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tiles/Abyss/AcidWoodTreeSapling.cs b/Tiles/Abyss/AcidWoodTreeSapling.cs index ecc1de60bf..2ebd617ecf 100644 --- a/Tiles/Abyss/AcidWoodTreeSapling.cs +++ b/Tiles/Abyss/AcidWoodTreeSapling.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Tiles.Abyss { return; } - if (!WorldGen.EmptyTileCheck(i - 1, i + 1, trueStartingPositionY - 20, trueStartingPositionY, Type)) + if (!WorldGen.EmptyTileCheck(i - 1, i + 1, trueStartingPositionY - 20, trueStartingPositionY-1, Type)) { return; } From aa5dae1f98ef81e5f52fbf7a4722fb25bfdacac5 Mon Sep 17 00:00:00 2001 From: Lion8cake <69915693+Lion8cake@users.noreply.github.com> Date: Wed, 18 Feb 2026 12:40:42 +1030 Subject: [PATCH 11/44] Fixed biome lava mod crashing when enabled alongside calamity (#107) --- ModSupport/WeakReferenceSupport.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 0f2bf130da..0fcbeb04a1 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -180,9 +180,13 @@ namespace CalamityMod // { "Xeroc", 26f }, }; - public override void PostSetupContent() + public override void Load() { LavaStyleToBiomeLava(); + } + + public override void PostSetupContent() + { BossChecklistSupport(); FargosSupport(); DialogueTweakSupport(); @@ -214,7 +218,7 @@ namespace CalamityMod Func ModifyLightFunc = ModifyLight; Func IsLavaActive = lavaStyle.IsLavaActive; Func lavafallGlowmask = lavaStyle.LavafallGlowmask; - Func InflictDebuffFunc = InflictDebuff; + Action InflictDebuffFunc = InflictDebuff; Func yes = InflictsOnFire; Vector3 ModifyLight(int x, int y, float r, float g, float b) @@ -223,13 +227,12 @@ namespace CalamityMod return new Vector3(r, g, b); } - Action InflictDebuff(Player player, NPC npc, int onfireDuration) + void InflictDebuff(Player player, NPC npc, int onfireDuration) { if (player != null && npc == null) { lavaStyle.InflictDebuff(player, onfireDuration); } - return null; } bool InflictsOnFire() From 1626ebb56c4b537a76d788cc0ead738d211adffe Mon Sep 17 00:00:00 2001 From: RazzSG <51904365+RazzSG@users.noreply.github.com> Date: Wed, 18 Feb 2026 04:12:11 +0200 Subject: [PATCH 12/44] Fix Draedon dialog scrolling and scaling issues on high resolutions (#108) --- UI/DraedonSummoning/CodebreakerUI.Communication.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/UI/DraedonSummoning/CodebreakerUI.Communication.cs b/UI/DraedonSummoning/CodebreakerUI.Communication.cs index 223f642127..e4b9f39545 100644 --- a/UI/DraedonSummoning/CodebreakerUI.Communication.cs +++ b/UI/DraedonSummoning/CodebreakerUI.Communication.cs @@ -358,7 +358,8 @@ namespace CalamityMod.UI.DraedonSummoning // Draw and update the text scroller if there is some cut off text. Vector2 textTopLeft = selectionArea.TopLeft() + new Vector2(20f, 12f) * panelScale + Vector2.UnitY * OptionsTextVerticalOffset; - float cutoffDistance = OptionsTextHeight / GeneralScale - selectionOutline.Height; + float bottomPadding = panelScale.Y * 24f; + float cutoffDistance = OptionsTextHeight - selectionOutline.Height * panelScale.Y + bottomPadding; if (cutoffDistance > 0f && OptionsTextOpacity > 0f) { if (MouseScreenArea.Intersects(selectionArea)) @@ -476,7 +477,9 @@ namespace CalamityMod.UI.DraedonSummoning // Ensure that the player starts at the bottom of the scoller, now that new text is generating there. Texture2D dialogOutline = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonDialogOutline").Value; Rectangle dialogArea = Utils.CenteredRectangle(selectionCenter, dialogOutline.Size() * panelScale); - DialogVerticalOffset = -DialogHeight * GeneralScale; + float scaledLineSpacing = FontAssetSystem.CodebreakerDialog.Value.LineSpacing * panelScale.Y; + bottomPadding = scaledLineSpacing * 3f; + DialogVerticalOffset = -(DialogHeight - dialogOutline.Height * panelScale.Y + bottomPadding); DialogScroller.PositionYInterpolant = 1f; if (DialogVerticalOffset > 0f) DialogVerticalOffset = 0f; @@ -579,7 +582,9 @@ namespace CalamityMod.UI.DraedonSummoning // Draw and update the text scroller if there is some cut off text. Vector2 textTopLeft = dialogArea.TopLeft() + new Vector2(20f, 14f) * panelScale; - float cutoffDistance = DialogHeight - dialogOutline.Height; + float scaledLineSpacing = FontAssetSystem.CodebreakerDialog.Value.LineSpacing * panelScale.Y; + float bottomPadding = scaledLineSpacing * 3f; + float cutoffDistance = DialogHeight - (dialogOutline.Height * panelScale.Y - bottomPadding); if (cutoffDistance > 0f && OptionsTextOpacity > 0f) { if (MouseScreenArea.Intersects(dialogArea)) From 0fba115af555c4ba16726631a498fd4ef9597a77 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 20:13:18 -0600 Subject: [PATCH 13/44] searing lava rebalance, tooltip edits --- Buffs/DamageOverTime/SearingLava.cs | 19 +++++++++++++++++-- .../en-US/Mods.CalamityMod.Buffs.hjson | 12 +++++++++++- ...ods.CalamityMod.Items.Weapons.Ranged.hjson | 4 ++-- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 4 ++-- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/Buffs/DamageOverTime/SearingLava.cs b/Buffs/DamageOverTime/SearingLava.cs index ca5641a4ba..708af57feb 100644 --- a/Buffs/DamageOverTime/SearingLava.cs +++ b/Buffs/DamageOverTime/SearingLava.cs @@ -1,4 +1,5 @@ -using CalamityMod.DataStructures; +using System; +using CalamityMod.DataStructures; using Terraria; using Terraria.ModLoader; @@ -10,8 +11,22 @@ namespace CalamityMod.Buffs.DamageOverTime public static DebuffData debuffData = new DebuffData() { EnemyLostRegen = 40, - HeatDebuffScaling = 2 + HeatDebuffScaling = 2, + NPCLifeRegenMethod = CragsLavaScaling }; + + public static void CragsLavaScaling(NPC npc, int buffType, ref int buffIndex, ref int damage) + { + //Applies the double Heat scaling but completely ignores NPC weakness/resistance to heat. + + //We need to apply slimed as that isn't included in HeatDebuffMultiplier due to needing to dynamically update if slimed is applied + StatModifier multiplier = npc.Calamity().HeatDebuffMultiplier; + if (npc.drippingSlime || npc.drippingSparkleSlime) + multiplier += 1f; + + int dotValue = (int)DebuffData.ApplyScalingToStatModifer(multiplier, debuffData.HeatDebuffScaling).ApplyTo(debuffData.EnemyLostRegen); + npc.Calamity().ApplyDPSDebuff(dotValue, (int)Math.Max(dotValue * debuffData.MultiplierDamageTickSize, debuffData.MinimumDamageTickSize), ref npc.lifeRegen, ref damage); + } public override void SetStaticDefaults() { Main.buffNoTimeDisplay[Type] = true; diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 9519a9149b..75dab61d8c 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -252,12 +252,22 @@ Plague: { SagePoison: { DisplayName: Sage Poison Description: Poisoned - ItemTooltip: Sickness - DPS scales with summoned Viral Sprout amount + ItemTooltip: + ''' + Sickness - 25 DPS per Viral Sprout / 50 DPS per Virid Vanguard + Ignores 75% of enemy sickness weaknesses and resistances + ''' } SearingLava: { DisplayName: Searing Lava Description: The brimstone lava sears your flesh + ItemTooltip: + ''' + Heat - 20 DPS + Ignores enemy heat weaknesses and resistances + Gains double effect from Heat debuff amplifiers + ''' } ShellfishClaps: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index ee926c25be..63e3fc1bb0 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1135,8 +1135,8 @@ SlagfireDouser: { DisplayName: Slagfire Douser Tooltip: ''' - Lobs armor-penetrating lava in bursts - Armor-penetrating lava ignores 10 points of enemy defense + Sprays bursts of molten pollen + Molten pollen ignores 10 points of enemy defense and inflicts [cbuff:CalamityMod/SearingLava] [c/FF9900:Capable of dousing townsfolk in lava too...] ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 63f07d4fc8..1c30610f69 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -865,7 +865,7 @@ ViralSprout: { Tooltip: ''' Summons a sage spirit to fight for you - Inflicts Sage Poison, a debuff that becomes stronger the more spirits you own + Inflicts [cbuff:CalamityMod/SagePoison], a debuff that becomes stronger the more spirits you own ''' } @@ -876,7 +876,7 @@ ViridVanguard: { Alternates between summoning axes and swords, both laced with a powerful poison Axes orbit the player, dealing high damage at a close range Swords chase down enemies with extreme precision, tearing them to shreds - All weapons inflict Sage Poison, which becomes more powerful the more weapons are summoned + All weapons inflict [cbuff:CalamityMod/Sage Poison], which becomes more powerful the more weapons are summoned When all minion slots are full, again to spin up a flurry of slashes aimed at your cursor This ability has a five-second cooldown that requires holding this item Shift- this item in your inventory to change the rotation direction From 4e567dfd086e948f57061ef046642b4175c16872 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 20:26:53 -0600 Subject: [PATCH 14/44] Searing lava no longer reduces cold DoT dmg --- NPCs/CalamityGlobalNPC.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index f01e24fb37..00d7c4dbd7 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -891,11 +891,6 @@ namespace CalamityMod.NPCs { ActiveWaterDebuffMultiplier += 1; } - - if (npc.HasBuff()) //Searing Lava is so hot it makes cold less strong - { - ActiveColdDebuffMultiplier -= 0.5f; - } if (VulnerableToHeat.HasValue) { if (VulnerableToHeat.Value) From 8141836081fd234d746d9b40d08e48da46094111 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 20:36:05 -0600 Subject: [PATCH 15/44] fixed searing lava - no longer applies by being near a crag lava fountain - no longer blocked by lava immunity --- CalPlayer/CalamityPlayerMiscEffects.cs | 3 +++ Waters/CragsLava.cs | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index fbaac556b5..d6f0056f1f 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1399,6 +1399,9 @@ namespace CalamityMod.CalPlayer Player.lavaTime++; } } + // Extra DoT in the lava of the crags. Negated by Flame-licked Shell. + else if (ZoneCalamity && !flameLickedShell) + Player.AddBuff(ModContent.BuffType(), 2, false); // Release irradiated slimes from the sky during the Acid Rain event. if (Player.whoAmI == Main.myPlayer) diff --git a/Waters/CragsLava.cs b/Waters/CragsLava.cs index 4c9340658c..778df3f4dd 100644 --- a/Waters/CragsLava.cs +++ b/Waters/CragsLava.cs @@ -26,9 +26,6 @@ namespace CalamityMod.Waters public override void InflictDebuff(Player player, int onfireDuration) { - // Extra DoT in the lava of the crags. Negated by Flame-licked Shell. - if (!player.Calamity().flameLickedShell) - player.AddBuff(ModContent.BuffType(), 2, false); } } } From 458d80ff43829ed284f7246ee93b7f8f62ad9107 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 21:10:26 -0600 Subject: [PATCH 16/44] Balancing Chaos Stone buff, Galileo Gladius nerf, Death's Ascencion nerf --- Items/Accessories/ChaosStone.cs | 2 +- Items/Weapons/Melee/DeathsAscension.cs | 2 +- Projectiles/Melee/Shortswords/GalileoGladiusThrown.cs | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Items/Accessories/ChaosStone.cs b/Items/Accessories/ChaosStone.cs index e339d2c5f8..8b743a1c10 100644 --- a/Items/Accessories/ChaosStone.cs +++ b/Items/Accessories/ChaosStone.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories public class ChaosStone : ModItem, ILocalizedModType { public static float LostRegenPer100Mana => 8; - public static float DamageMultPer100Mana => 0.03f; + public static float DamageMultPer100Mana => 0.04f; public new string LocalizationCategory => "Items.Accessories"; public override void ModifyTooltips(List tooltips) { diff --git a/Items/Weapons/Melee/DeathsAscension.cs b/Items/Weapons/Melee/DeathsAscension.cs index 4d1b2516d2..8468e0ba75 100644 --- a/Items/Weapons/Melee/DeathsAscension.cs +++ b/Items/Weapons/Melee/DeathsAscension.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 70; Item.height = 70; - Item.damage = 900; + Item.damage = 700; Item.knockBack = 9f; Item.useAnimation = Item.useTime = 24; Item.DamageType = DamageClass.Melee; diff --git a/Projectiles/Melee/Shortswords/GalileoGladiusThrown.cs b/Projectiles/Melee/Shortswords/GalileoGladiusThrown.cs index 83f946ec7a..ae618ec5b3 100644 --- a/Projectiles/Melee/Shortswords/GalileoGladiusThrown.cs +++ b/Projectiles/Melee/Shortswords/GalileoGladiusThrown.cs @@ -140,7 +140,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords { for (var i = 0; i < 10; i++) GeneralParticleHandler.SpawnParticle(new SparkParticle(Projectile.Center, (Projectile.rotation-MathHelper.PiOver4).ToRotationVector2().RotatedByRandom(0.4f) * -Main.rand.Next(10,20), false, 30, 2, new Color(69, 69, 200))); - Projectile.damage = (int)(Projectile.damage*15f); + Projectile.damage = (int)(Projectile.damage*10f); Projectile.Damage(); Owner.Calamity().StratusStarburst -= 10; for (int i = 0; i < 3; i++) @@ -153,6 +153,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords Main.projectile[proj].usesIDStaticNPCImmunity = false; Main.projectile[proj].usesLocalNPCImmunity = true; Main.projectile[proj].localNPCHitCooldown = 20; + Main.projectile[proj].timeLeft = Main.projectile[proj].MaxUpdates * 600; } } Projectile.velocity = (Projectile.rotation - MathHelper.PiOver4).ToRotationVector2() * -15; @@ -184,7 +185,7 @@ namespace CalamityMod.Projectiles.Melee.Shortswords Projectile.damage = Projectile.originalDamage; if (Owner.Calamity().AvaliableStarburst >= 20) { - Projectile.damage = (int)(Projectile.damage* 30f); + Projectile.damage = (int)(Projectile.damage*20f); Owner.SetImmuneTimeForAllTypes(Owner.longInvince ? 40 : 20); Owner.Calamity().StratusStarburst -= 20; SoundEngine.PlaySound(SoundID.DD2_MonkStaffGroundImpact, Owner.Center); @@ -201,6 +202,8 @@ namespace CalamityMod.Projectiles.Melee.Shortswords Main.projectile[proj].usesIDStaticNPCImmunity = false; Main.projectile[proj].usesLocalNPCImmunity = true; Main.projectile[proj].localNPCHitCooldown = 20; + Main.projectile[proj].timeLeft = Main.projectile[proj].MaxUpdates * 600; + } } } From 6451c0a7ca536e1cb2eaf828c4d32c88172f5fb1 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Tue, 17 Feb 2026 21:13:18 -0600 Subject: [PATCH 17/44] chaos stone gets Vodka now --- Projectiles/CalamityGlobalProjectile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index e3137e2e57..7cf139872c 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -4701,7 +4701,7 @@ namespace CalamityMod.Projectiles { var player = Main.player[projectile.owner]; float burnRatio = (-player.statMana / 100) * ChaosStone.DamageMultPer100Mana; - target.Calamity().manaBurn += damageDone * burnRatio * (player.Calamity().oldFashioned ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().ivDrip ? IVDripOnTheRocks.DamageBoostMultiplier : 1); + target.Calamity().manaBurn += damageDone * burnRatio * (player.Calamity().oldFashioned ? OldFashioned.DamageBoostMultiplier : 1) * (player.Calamity().ivDrip ? IVDripOnTheRocks.DamageBoostMultiplier : 1) * (player.Calamity().vodka ? 1+Vodka.DebuffBoost : 1); target.Calamity().playerManaBurnIntensity = -player.statMana / (float)player.statManaMax2; if (Main.netMode != NetmodeID.SinglePlayer) ManaBurnSyncPacket.Send(target); From 8561a17d8af7554ff4e79d8704d50ebf1496ed3c Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 11:36:30 -0600 Subject: [PATCH 18/44] uncreeping the power Average bangle dps (before dmg buffs) BKB 12.4 -> 8 Proto 19.7 -> 17 Batho 45 -> 20 At full charge, sea spirit DPS from (before dmg boosts) 35 -> 17 Nerf to Polarizer lifesteal, 1.5x to 1.75x (6.8 hp/s vs 8) Amalgam 4x to 3x debuff dmg --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- CalPlayer/CalamityPlayerOnHit.cs | 2 +- Items/Accessories/BatholithBangle.cs | 2 +- Items/Accessories/BlackGlassBand.cs | 2 +- Items/Accessories/ProtolithBangle.cs | 2 +- Items/Accessories/TheAmalgam.cs | 10 +++++----- .../en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- Projectiles/Typeless/AmuletEnergy.cs | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index d6f0056f1f..816060142c 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1892,7 +1892,7 @@ namespace CalamityMod.CalPlayer { if (numOfEnergy < energyCap) { - int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(22); + int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(4); Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy); if (numOfEnergy + 1 == energyCap && Player.Calamity().sSpiritAmuletVisual) { diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 24c643bda7..de439d9647 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1349,7 +1349,7 @@ namespace CalamityMod.CalPlayer if (manaOverloader) { double healMult = 0.1D - proj.numHits * 0.025D; - Player.SpawnLifeStealProjectile(target, proj, ProjectileType(), (int)Math.Round(damage * healMult), 1.5f); + Player.SpawnLifeStealProjectile(target, proj, ProjectileType(), (int)Math.Round(damage * healMult), 1.75f); } if (ataxiaMage) diff --git a/Items/Accessories/BatholithBangle.cs b/Items/Accessories/BatholithBangle.cs index ef0d8c630f..c244cd51d4 100644 --- a/Items/Accessories/BatholithBangle.cs +++ b/Items/Accessories/BatholithBangle.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories { public new string LocalizationCategory => "Items.Accessories"; public static int cooldown = 600; - public static int damage = 225; + public static int damage = 100; public override void SetDefaults() { Item.width = 36; diff --git a/Items/Accessories/BlackGlassBand.cs b/Items/Accessories/BlackGlassBand.cs index ff767add74..affacf97aa 100644 --- a/Items/Accessories/BlackGlassBand.cs +++ b/Items/Accessories/BlackGlassBand.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories { public new string LocalizationCategory => "Items.Accessories"; public static int cooldown = 300; - public static int damage = 32; + public static int damage = 20; public override void SetDefaults() { Item.width = 30; diff --git a/Items/Accessories/ProtolithBangle.cs b/Items/Accessories/ProtolithBangle.cs index 70274095b3..b80f6f8225 100644 --- a/Items/Accessories/ProtolithBangle.cs +++ b/Items/Accessories/ProtolithBangle.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories { public new string LocalizationCategory => "Items.Accessories"; public static int cooldown = 420; - public static int damage = 68; + public static int damage = 60; public override void SetDefaults() { Item.width = 34; diff --git a/Items/Accessories/TheAmalgam.cs b/Items/Accessories/TheAmalgam.cs index fdea11a01a..d54b5c5e34 100644 --- a/Items/Accessories/TheAmalgam.cs +++ b/Items/Accessories/TheAmalgam.cs @@ -39,11 +39,11 @@ namespace CalamityMod.Items.Accessories modPlayer.rBrain = true; // Handles shaderain cloud spawning on hit modPlayer.amalgam = true; player.brainOfConfusionItem = Item; - modPlayer.HeatDebuffMultiplier += 3f; - modPlayer.ColdDebuffMultiplier += 3f; - modPlayer.SicknessDebuffMultiplier += 3f; - modPlayer.WaterDebuffMultiplier += 3f; - modPlayer.ElectricDebuffMultiplier += 3f; + modPlayer.HeatDebuffMultiplier += 2f; + modPlayer.ColdDebuffMultiplier += 2f; + modPlayer.SicknessDebuffMultiplier += 2f; + modPlayer.WaterDebuffMultiplier += 2f; + modPlayer.ElectricDebuffMultiplier += 2f; } public override void AddRecipes() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 45c287541c..f71470eda3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1856,7 +1856,7 @@ TheAmalgam: { DisplayName: The Amalgam Tooltip: ''' - All attacks inflict a variety of debuffs, 300% increased elemental debuff damage + All attacks inflict a variety of debuffs, 200% increased elemental debuff damage Most buffs last twice as long, and persist after dying Taking damage confuses nearby enemies and spawns a dank creeper The dank creeper flies above you, exploding into several shaderain clouds diff --git a/Projectiles/Typeless/AmuletEnergy.cs b/Projectiles/Typeless/AmuletEnergy.cs index fb3ec36405..54c54990df 100644 --- a/Projectiles/Typeless/AmuletEnergy.cs +++ b/Projectiles/Typeless/AmuletEnergy.cs @@ -199,7 +199,7 @@ namespace CalamityMod.Projectiles.Typeless } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { - target.AddBuff(ModContent.BuffType(), 540); + target.AddBuff(ModContent.BuffType(), 90); Projectile.netUpdate = true; } public override void OnKill(int timeLeft) From 85920be4e8233c252787ab3b3d0396cd2102cd11 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 11:40:04 -0600 Subject: [PATCH 19/44] Floodtide only replaces 66% of legendary catches --- CalPlayer/CalamityPlayerFishing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index edd7792110..d5e2542067 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -246,7 +246,7 @@ namespace CalamityMod.CalPlayer return; // Add top priorities of our own - if (DownedBossSystem.downedLeviathan && attempt.legendary && poolSize > 1000) + if (DownedBossSystem.downedLeviathan && attempt.legendary && poolSize > 1000 && !Main.rand.NextBool(3)) { itemDrop = ModContent.ItemType(); return; From 9a81f0b999701ec6c1cc04a1531980b3c3391541 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 12:14:52 -0600 Subject: [PATCH 20/44] sea spirit buff bc i missed the spawn time change 16.2 to 19.2 dps, longer debuff time --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Projectiles/Typeless/AmuletEnergy.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 816060142c..38d304a460 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1892,7 +1892,7 @@ namespace CalamityMod.CalPlayer { if (numOfEnergy < energyCap) { - int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(4); + int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(8); Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy); if (numOfEnergy + 1 == energyCap && Player.Calamity().sSpiritAmuletVisual) { diff --git a/Projectiles/Typeless/AmuletEnergy.cs b/Projectiles/Typeless/AmuletEnergy.cs index 54c54990df..278b83fa31 100644 --- a/Projectiles/Typeless/AmuletEnergy.cs +++ b/Projectiles/Typeless/AmuletEnergy.cs @@ -199,7 +199,7 @@ namespace CalamityMod.Projectiles.Typeless } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) { - target.AddBuff(ModContent.BuffType(), 90); + target.AddBuff(ModContent.BuffType(), 180); Projectile.netUpdate = true; } public override void OnKill(int timeLeft) From 546cdaaa352ab696938c4644f469de0dfa9e5635 Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Wed, 18 Feb 2026 15:01:35 -0500 Subject: [PATCH 21/44] Some sword balancing --- Items/Weapons/Melee/ExaltedOathblade.cs | 2 +- Items/Weapons/Melee/ForbiddenOathblade.cs | 2 +- Items/Weapons/Melee/Lucrecia.cs | 2 +- Projectiles/Melee/DevilsDevastationHoldout.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Melee/ExaltedOathblade.cs b/Items/Weapons/Melee/ExaltedOathblade.cs index 15f6113870..bfd403ae03 100644 --- a/Items/Weapons/Melee/ExaltedOathblade.cs +++ b/Items/Weapons/Melee/ExaltedOathblade.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Items.Weapons.Melee } if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax) { - Projectile.NewProjectile(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), Item.damage * 14, Item.knockBack, player.whoAmI, 0, throwCount); //This used to be 23x damage. + Projectile.NewProjectile(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), Item.damage * 16, Item.knockBack, player.whoAmI, 0, throwCount); } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Melee/ForbiddenOathblade.cs b/Items/Weapons/Melee/ForbiddenOathblade.cs index 8ee7e170fd..b8339e9b17 100644 --- a/Items/Weapons/Melee/ForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ForbiddenOathblade.cs @@ -72,7 +72,7 @@ namespace CalamityMod.Items.Weapons.Melee } if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax) { - Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter,Vector2.Zero, ModContent.ProjectileType(), Item.damage * 10, Item.knockBack, player.whoAmI, 0, throwCount); // This used to be 12x damage. + Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter,Vector2.Zero, ModContent.ProjectileType(), Item.damage * 12, Item.knockBack, player.whoAmI, 0, throwCount); } } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) diff --git a/Items/Weapons/Melee/Lucrecia.cs b/Items/Weapons/Melee/Lucrecia.cs index ff151ba276..6fd7a2d0d9 100644 --- a/Items/Weapons/Melee/Lucrecia.cs +++ b/Items/Weapons/Melee/Lucrecia.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 54; Item.height = 54; Item.useStyle = ItemUseStyleID.Shoot; - Item.damage = 170; + Item.damage = 150; Item.DamageType = DamageClass.Melee; Item.useAnimation = Item.useTime = 34; Item.shootSpeed = 10f; diff --git a/Projectiles/Melee/DevilsDevastationHoldout.cs b/Projectiles/Melee/DevilsDevastationHoldout.cs index 3f526d4002..501bccd737 100644 --- a/Projectiles/Melee/DevilsDevastationHoldout.cs +++ b/Projectiles/Melee/DevilsDevastationHoldout.cs @@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Melee Vector2 vel = (MathHelper.TwoPi * i / 4f).ToRotationVector2() * 2; Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), lastHitTarget.Center, vel.RotatedBy(MathHelper.ToRadians(45)), ModContent.ProjectileType(), 0, 0f, Owner.whoAmI, 1, 0); } - Projectile strike = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), lastHitTarget.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), 0f, Owner.whoAmI, lastHitTarget.whoAmI, 0); + Projectile strike = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), lastHitTarget.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.666f), 0f, Owner.whoAmI, lastHitTarget.whoAmI, 0); strike.DamageType = DamageClass.Melee; SoundStyle dieSound = new("CalamityMod/Sounds/Item/LanceofDestinyStrong"); SoundEngine.PlaySound(dieSound with { Volume = 0.9f, Pitch = 0.3f }, lastHitTarget.Center); From 3c005dd136dcd286b18cce08b89d32f68531f44f Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 18 Feb 2026 15:02:37 -0500 Subject: [PATCH 22/44] Fixed Abyssal Diving Gear still saying it removes the bleed effect that no longer exists --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 1 - 1 file changed, 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index f71470eda3..3c37ac44eb 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -13,7 +13,6 @@ AbyssalDivingGear: { Tooltip: ''' Reduces the damage caused by the pressure of the abyss while out of breath - Removes the bleed effect caused by the abyss Grants the ability to swim and greatly extends underwater breathing Provides light underwater and extra mobility on ice Provides a moderate amount of light and reduces breath loss in the abyss From 4924300161d9db5caa52e0d320d7ceff5b5c4181 Mon Sep 17 00:00:00 2001 From: Lastprismer Date: Thu, 19 Feb 2026 04:25:42 +0800 Subject: [PATCH 23/44] Fix: Memory leak in VengefulSunSpiritMinion.PreDraw() causing GPU/CPU resource exhaustion (#109) --- Projectiles/Summon/VengefulSunSpiritMinion.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Projectiles/Summon/VengefulSunSpiritMinion.cs b/Projectiles/Summon/VengefulSunSpiritMinion.cs index 5e6685008e..f298bbd61d 100644 --- a/Projectiles/Summon/VengefulSunSpiritMinion.cs +++ b/Projectiles/Summon/VengefulSunSpiritMinion.cs @@ -147,7 +147,6 @@ namespace CalamityMod.Projectiles.Summon public static Asset circle; public override bool PreDraw(ref Color lightColor) { - AllWhiteVersion = null; var spTex = TextureAssets.Projectile[Type].Value; var whiteTex = GetWhiteTex(); var ciTex = CalamityUtils.GetTextureEfficient(ref circle, "CalamityMod/ExtraTextures/GreyscaleOpenCircleButBigger").Value; From 6180f9bf0b0e6dfe568c53243b0b917c0aeae947 Mon Sep 17 00:00:00 2001 From: Big E Date: Sat, 14 Feb 2026 21:49:46 -0500 Subject: [PATCH 24/44] + Changed how the Bloodletting attack works, including a new NPCProjectile which can be hit at close range to fire it back at BoC --- .../en-US/Mods.CalamityMod.NPCs.hjson | 1 + .../Mods.CalamityMod.Projectiles.Boss.hjson | 1 + .../Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs | 27 ++- Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs | 211 ++++++++++++++++++ Projectiles/Boss/BrainOfCthulhu/BloodBomb.png | Bin 0 -> 594 bytes 5 files changed, 230 insertions(+), 10 deletions(-) create mode 100644 Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs create mode 100644 Projectiles/Boss/BrainOfCthulhu/BloodBomb.png diff --git a/Localization/en-US/Mods.CalamityMod.NPCs.hjson b/Localization/en-US/Mods.CalamityMod.NPCs.hjson index 22f3ea08cd..12a58c2e4b 100644 --- a/Localization/en-US/Mods.CalamityMod.NPCs.hjson +++ b/Localization/en-US/Mods.CalamityMod.NPCs.hjson @@ -567,3 +567,4 @@ Dragonfolly.DisplayName: Dragonfolly Shoreskipper.DisplayName: Shoreskipper BrainIllusion.DisplayName: Brain Illusion FalseBrain.DisplayName: False Brain +BloodBomb.DisplayName: Blood Bomb diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson index 576280052c..c394d0ba93 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson @@ -23,6 +23,7 @@ BigFlare.DisplayName: Big Flare BigFlare2.DisplayName: Big Flare BirbAura.DisplayName: Draconic Aura BirbAuraFlare.DisplayName: Draconic Aura Flare +BloodBombRTS.DisplayName: Blood Bomb BloodGeyser.DisplayName: Blood Geyser BloodScythe.DisplayName: Blood Scythe BrimstoneBall.DisplayName: Brimstone Fireball diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs index 0fb08a8dd9..54537ec4e0 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs @@ -153,7 +153,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride internal static int BloodlettingDuration => 675; internal static Vector2 HoverDistance => new (420f, 300f); internal static float HoverEndHeight => 300f; - internal static int IchorRate => CalamityWorld.death ? 9 : 10; + internal static int IchorRate => CalamityWorld.death ? 10 : 12; internal static float IchorSpread => 1.5f; internal static float IchorVelocity => 3f; internal static int BloodshotRate => 90; @@ -1890,17 +1890,24 @@ public class BrainOfCthulhuAI : VanillaAIOverride if (Time % (IchorRate * 2) == 0) SoundEngine.PlaySound(SoundID.Item17, NPC.Center); - if(Main.netMode == NetmodeID.SinglePlayer) - Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + NPC.velocity + Main.rand.NextVector2Circular(72, 72), new Vector2(Main.rand.NextFloat(-IchorSpread, IchorSpread), -IchorVelocity), ModContent.ProjectileType(), IchorShotDamage, 0.5f); - else if(Main.dedServ) + if (Time > BloodshotRate + 30 && Time % (IchorRate * 10) == 0) { - Player furthestLeft = Main.player[AttackList[0]]; - Player furthestRight = Main.player[AttackList[1]]; - float xDist = furthestRight.Center.X - furthestLeft.Center.X; - int projCount = 1 + (int)(xDist / 360); - - for(int i = 0; i < projCount; i++) + NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); + } + else + { + if (Main.netMode == NetmodeID.SinglePlayer) Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + NPC.velocity + Main.rand.NextVector2Circular(72, 72), new Vector2(Main.rand.NextFloat(-IchorSpread, IchorSpread), -IchorVelocity), ModContent.ProjectileType(), IchorShotDamage, 0.5f); + else if (Main.dedServ) + { + Player furthestLeft = Main.player[AttackList[0]]; + Player furthestRight = Main.player[AttackList[1]]; + float xDist = furthestRight.Center.X - furthestLeft.Center.X; + int projCount = 1 + (int)(xDist / 360); + + for (int i = 0; i < projCount; i++) + Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + NPC.velocity + Main.rand.NextVector2Circular(72, 72), new Vector2(Main.rand.NextFloat(-IchorSpread, IchorSpread), -IchorVelocity), ModContent.ProjectileType(), IchorShotDamage, 0.5f); + } } } diff --git a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs new file mode 100644 index 0000000000..dc1bc27b8d --- /dev/null +++ b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Particles; +using CalamityMod.Projectiles.Typeless; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.Audio; +using Terraria.DataStructures; +using Terraria.GameContent; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Boss.BrainOfCthulhu; + +public class BloodBomb : ModNPC, ILocalizedModType +{ + public new string LocalizationCategory => "NPCs"; + + public override void SetStaticDefaults() + { + NPCID.Sets.ProjectileNPC[Type] = true; + } + + public override void SetDefaults() + { + NPC.width = 30; + NPC.height = 30; + NPC.noGravity = true; + NPC.damage = 10; + NPC.defense = 5; + NPC.lifeMax = 60; + NPC.Calamity().canBreakPlayerDefense = true; + NPC.lavaImmune = true; + NPC.aiStyle = -1; + AIType = -1; + NPC.value = 0; + NPC.HitSound = SoundID.NPCHit24; + NPC.DeathSound = SoundID.NPCDeath27; + NPC.knockBackResist = 0f; + NPC.chaseable = false; + NPC.noTileCollide = true; + } + + public override void OnSpawn(IEntitySource source) + { + if (source is EntitySource_Parent { Entity: NPC n }) + NPC.ai[1] = n.whoAmI; + else + NPC.ai[1] = -1; + + Vector2 goal = Main.player[0].Center - NPC.Center; + + float vyi = 6; + float vyisq = 36; + float g = 0.2f; + + float vyf = -MathF.Sqrt(vyisq + 2 * g * goal.Y); + float t = Math.Abs((vyf - vyi) / g); + + float vxi = goal.X / t; + + NPC.velocity = new Vector2(float.IsNaN(vxi) ? (goal.X > 0 ? 10 : -10) : vxi, -vyi); + } + + public override void AI() + { + if (NPC.ai[0] > 1200) + NPC.active = false; + + NPC.velocity.Y += 0.2f; + + NPC.ai[0]++; + } + + public override void ModifyHitByItem(Player player, Item item, ref NPC.HitModifiers modifiers) + { + if (modifiers.DamageType == TrueMeleeDamageClass.Instance) + { + modifiers.FinalDamage *= 1.5f; + return; + } + + float dist = player.DistanceSQ(NPC.Center); + dist = MathHelper.Clamp(dist - 10000, 0, 160000); + if (dist > 160000) + modifiers.FinalDamage *= 0; + else + modifiers.FinalDamage *= MathHelper.Lerp(1f, 0f, dist / 160000f); + } + + public override bool? CanBeHitByProjectile(Projectile projectile) + { + return null; + } + + public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers) + { + if (modifiers.DamageType == TrueMeleeDamageClass.Instance) + { + modifiers.FinalDamage *= 1.5f; + return; + } + + if (projectile.owner == -1) + { + modifiers.FinalDamage *= 0; + return; + } + + float dist = Main.player[projectile.owner].DistanceSQ(NPC.Center); + dist = MathHelper.Clamp(dist - 10000, 0, 160000); + if (dist > 160000f) + modifiers.FinalDamage *= 0; + else + modifiers.FinalDamage *= MathHelper.Lerp(1f, 0f, dist / 160000f); + } + + public override void HitEffect(NPC.HitInfo hit) + { + if(NPC.life <= 0) + { + if (NPC.ai[1] == -1) + NPC.ai[1] = NPC.Center.ClosestNPCAt(1200, true, true).whoAmI; + Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center, NPC.DirectionTo(Main.npc[(int)NPC.ai[1]].Center) * 16f, ModContent.ProjectileType(), 40, 1f, -1, NPC.ai[1]); + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) + { + float deathRatio = 1 - (NPC.life / NPC.lifeMax); + float time = Main.GlobalTimeWrappedHourly * (10f + (10f * deathRatio)); + float lerp = MathF.Sin(time) / 2f + 0.5f; + Color color = Color.Lerp(Color.Red, Color.Yellow, lerp); + + Texture2D tex = TextureAssets.Npc[Type].Value; + spriteBatch.Draw(tex, NPC.Center - Main.screenPosition, null, color, NPC.rotation, tex.Size() * 0.5f, 1.5f + (MathF.Sin(time) * 0.25f), 0, 0); + return false; + } +} + +public class BloodBombRTS : ModProjectile, ILocalizedModType +{ + public new string LocalizationCategory => "Projectiles.Boss"; + public override string Texture => "CalamityMod/Projectiles/Boss/BrainOfCthulhu/BloodBomb"; + public override void SetStaticDefaults() + { + ProjectileID.Sets.TrailCacheLength[Type] = 8; + ProjectileID.Sets.TrailingMode[Type] = 2; + } + + public override void SetDefaults() + { + Projectile.width = 30; + Projectile.height = 30; + Projectile.penetrate = 1; + Projectile.ignoreWater = true; + Projectile.tileCollide = false; + Projectile.damage = 10; + Projectile.friendly = true; + Projectile.hostile = false; + Projectile.tileCollide = false; + Projectile.timeLeft = 360; + } + + public override void AI() + { + Projectile.velocity = Projectile.DirectionTo(Main.npc[(int)Projectile.ai[0]].Center) * 16f; + } + + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + modifiers.SetCrit(); + } + + public override void OnKill(int timeLeft) + { + SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, Projectile.Center); + + CustomPulse explosion1 = new(Projectile.Center, Vector2.Zero, Color.OrangeRed, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(0f, MathHelper.Pi), 0f, 0.1f, 24); + GeneralParticleHandler.SpawnParticle(explosion1); + + CustomPulse explosion2 = new(Projectile.Center, Vector2.Zero, Color.Red, "CalamityMod/Particles/FlameExplosion", Vector2.One, Main.rand.NextFloat(0f, MathHelper.Pi), 0f, 0.075f, 24); + GeneralParticleHandler.SpawnParticle(explosion2); + } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D tex = TextureAssets.Projectile[Type].Value; + + for (int i = 0; i < (CalamityClientConfig.Instance.Afterimages ? Projectile.oldPos.Length : 1); ++i) + { + float time = (Main.GlobalTimeWrappedHourly * 30) - (i / 2f); + float lerp = MathF.Sin(time) / 2f + 0.5f; + Color color = Color.Lerp(Color.Red, Color.Yellow, lerp); + float afterimageRot = Projectile.oldRot[i]; + Vector2 drawPos = Projectile.oldPos[i] + (Projectile.Size / 2f) - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY); + if (i != 0) + color *= 0.75f; + + // DO NOT REMOVE THESE "UNNECESSARY" FLOAT CASTS. THIS WILL BREAK THE AFTERIMAGES. + float interpolant = ((float)(Projectile.oldPos.Length - i) / (float)Projectile.oldPos.Length); + Main.spriteBatch.Draw(tex, drawPos, null, color, afterimageRot, tex.Size() * 0.5f, (Projectile.scale + MathF.Sin(time) / 2f + 0.5f) * interpolant, SpriteEffects.None, 0f); + } + return false; + } +} diff --git a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.png b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.png new file mode 100644 index 0000000000000000000000000000000000000000..b392e6b2ce65e8291c72a96594d34ca12e6e24e2 GIT binary patch literal 594 zcmV-Y08u_YOpmxCPNDR2mx5x&lh2guBpd6|`ENC{$V@QEDWJxP)E*;@O-GlbvFB zXTRi^*O_;|bI#)o_FW18)oQhmBoa=i#0w{#FzJ1<3+HmV4>)C`(Ga@bu3n)B-|rf? zk=TXf{=-jQe_EK7==FNSU@#CWm5Q+0Y!u37vjRQ%-6)kxLR|8vg?}p1ck_HLOiHxd zZGqjx6Wne$!Q)P+qs~L2P*8~UXti1bsS!>7wXi4rtNOHXwOSRT8z2Qp0r&Iyyh6V2 z%3Sc+^=V-@e!ISNuBg}Rf*0gG;qxn(%Yw(gFRn)K^V7~+NH1}8$H(JQq4W7HTrL;E z=eghSh1F`M)dM{^DLq8z_xS%Lo=&HNcg8t`)YxvfLip{)YkDEB!S5cg;d#?foXKQ_ z*=!~(mrH?NVzF2#wA<|z8jVJR?{P9$pS{QFC-zPzlZhq|#bQyo-|vF^PRVaC{Q2ZH z-1q%HcaL4uOMJav-#{wxy$bKll^#5H^;6690AG*R@pvq-7Sc=Xot;i6fnOjrn@z#} zXeC|9eSUl4arDf6J^jS%_4*Bb7C~zC`+b4WICyejAtjt>KA#JR!$II&;ePswy%SP{ z)EEwjg8Td(_KLrmND1FhN_g!0e-e8~qz?J%#sB~S literal 0 HcmV?d00001 From 641200c48e728c1d4feee8eadada350fd52fe8a5 Mon Sep 17 00:00:00 2001 From: Big E Date: Sun, 15 Feb 2026 16:05:36 -0500 Subject: [PATCH 25/44] + Sound + Visual Improvements --- .../Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs | 8 +++++--- Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs | 17 ++++++++++------- .../BrainOfCthulhu/BoC_Rev_BloodBomb.ogg | Bin 0 -> 22891 bytes 3 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 Sounds/Custom/BrainOfCthulhu/BoC_Rev_BloodBomb.ogg diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs index 54537ec4e0..f5bbe10910 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs @@ -41,6 +41,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride private static SoundStyle Growl = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_Growl", 2) with { PauseBehavior = PauseBehavior.PauseWithGame }; private static SoundStyle Death = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_Death_Roar") with { PauseBehavior = PauseBehavior.PauseWithGame }; private static SoundStyle BloodShot = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_BloodShot"); + private static SoundStyle BloodBomb = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_BloodBomb"); private static SoundStyle BloodExplosion = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_Explosion", 2); @@ -1887,15 +1888,16 @@ public class BrainOfCthulhuAI : VanillaAIOverride { if (Time % IchorRate == 0) { - if (Time % (IchorRate * 2) == 0) - SoundEngine.PlaySound(SoundID.Item17, NPC.Center); - if (Time > BloodshotRate + 30 && Time % (IchorRate * 10) == 0) { + SoundEngine.PlaySound(BloodBomb, NPC.Center); NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); } else { + if (Time % (IchorRate * 2) == 0) + SoundEngine.PlaySound(SoundID.Item17, NPC.Center); + if (Main.netMode == NetmodeID.SinglePlayer) Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + NPC.velocity + Main.rand.NextVector2Circular(72, 72), new Vector2(Main.rand.NextFloat(-IchorSpread, IchorSpread), -IchorVelocity), ModContent.ProjectileType(), IchorShotDamage, 0.5f); else if (Main.dedServ) diff --git a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs index dc1bc27b8d..2ff889e63f 100644 --- a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs +++ b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs @@ -39,8 +39,8 @@ public class BloodBomb : ModNPC, ILocalizedModType NPC.aiStyle = -1; AIType = -1; NPC.value = 0; - NPC.HitSound = SoundID.NPCHit24; - NPC.DeathSound = SoundID.NPCDeath27; + NPC.HitSound = SoundID.NPCHit1; + NPC.DeathSound = SoundID.NPCHit1 with { Pitch = 0.5f }; NPC.knockBackResist = 0f; NPC.chaseable = false; NPC.noTileCollide = true; @@ -65,6 +65,14 @@ public class BloodBomb : ModNPC, ILocalizedModType float vxi = goal.X / t; NPC.velocity = new Vector2(float.IsNaN(vxi) ? (goal.X > 0 ? 10 : -10) : vxi, -vyi); + + for (int i = 0; i < 3; i++) + { + BloodParticle p = new(NPC.Center, NPC.velocity.RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 6f, MathHelper.Pi / 6f)) * Main.rand.NextFloat(0.5f, 1f), 32, 1f, Color.Red); + GeneralParticleHandler.SpawnParticle(p); + } + BloodParticle2 p2 = new(NPC.Center, NPC.velocity * 0.75f, 16, 0.5f, Color.Red); + GeneralParticleHandler.SpawnParticle(p2); } public override void AI() @@ -93,11 +101,6 @@ public class BloodBomb : ModNPC, ILocalizedModType modifiers.FinalDamage *= MathHelper.Lerp(1f, 0f, dist / 160000f); } - public override bool? CanBeHitByProjectile(Projectile projectile) - { - return null; - } - public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers) { if (modifiers.DamageType == TrueMeleeDamageClass.Instance) diff --git a/Sounds/Custom/BrainOfCthulhu/BoC_Rev_BloodBomb.ogg b/Sounds/Custom/BrainOfCthulhu/BoC_Rev_BloodBomb.ogg new file mode 100644 index 0000000000000000000000000000000000000000..27b0983094386a21502377cf4fd1f92ec52874be GIT binary patch literal 22891 zcmeFZcT|&4*C_fV1PBC>K!AXNA+!Ji0qKH<5=tmSAOS)#RH-Uev4(00MLI~)5Q-3r zfPko=fOIVMVnqZMtRUEx6ZH4K-+RA%);V{rv+jRq)?_lXXV2_scA42T&m;#99dZW1 zz(2uJ=WnLJRgw;p1;rkT^bL;M27xW=|3QiPi`)S^u-)?CVY?-WQ&Lmxh!U~b`fnkd z>u*=v-Ma-J4bnIec?cC2>`VSb0A+*H*3{P2)YsHOVTb|#F@C{^525gfV}m1)91agS z9IdiV2E_fh4;3?WG6;ZjAX;{)e%e?T2>^rvfU2M(lpAQHQk7SZi7U#p-p=)FrWWO; z_9Ok$wFdr`pmhAj0008eFnpO6FKt5Z8y-R`XGSs&gB=Vmqj(uk3x<5Xn@WC%t6Qr> z58qc&gbKQIa~J^NtmTps#O=hFE|-GjBnAR~fn0o63!A@(M?AO@E<8>Z#gTfInWcz6VW^i%!|0@Q%7XeCDhx(qdH-;D2;j&RN5u9=>R3hT3`QAqqE)oTaGu@04Z9ux62i9F0RX2Z-5()6 z%;5%6eKJzlHOgc*%6^u^ifxYkuS5JFec=p5t}L)1ga+M{<@1LvG)}k3a;Uk$UrHPV zdifHnc&zx-Jwu`5Wo9j+WU?pKr9}C9ZBfY|35MO5e8G{W%E*O&=7q81sQWeo#Z`ZE zaUvzW4Yd;-nB=Qcp#e!B4qos?F>md>8>g-NSnj+LRHLpau?Yhg~{{B&mTJO^P zJ%-OYEm9wrgkIVxCR&1VidP?mr?oyp^ikgJx)e+3qyV|4J?WF$BeWN!` zcZAIav^ZLf)#Ye$M%&AaQH_Syp;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^4~m#{s#Gf3{YKE1$G!c;3py?(o?W=ns-G9_91JVCVX8-w>3ONz7PrKSr--c!$_ z$T^`Trz|WZx@qv)gVW2vWbXBf7p{%F3B|T>F|={iBOdYA(@vE;zy9`jZe%j^`b;wy z`led7nHLP-h*;Pg2)|v_#XIifoF^&LdVbl~{r0xfbvySSwp89&GR5N7`LX{g1=;^! z3PAk)276dq5i1&ue!5nDQW1g=1bZ$LKy=#Ojr^N)TN2U#%YprJkEc=hm!bSvod9t> z|4a)es~}G_Gwwy9H}6RY2SVpSX7Y2b(6wgqZWisFAY}ui?!wEZWnOr>J@{y@U-bSG z&g7yG#RDEfB?X^Y@|Wv`!!sAk@_z}#&XxcG literal 0 HcmV?d00001 From 541740f7e06e18284d4c7427bc7ec3c0e65f29b2 Mon Sep 17 00:00:00 2001 From: Big E Date: Sun, 15 Feb 2026 16:21:07 -0500 Subject: [PATCH 26/44] + Adjusted how the bloodshots are fired after the Illusion Dash attack to be more consistant --- .../Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs index f5bbe10910..cf8b48b4cc 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs @@ -2488,13 +2488,15 @@ public class BrainOfCthulhuAI : VanillaAIOverride NPC.velocity *= 0.9f; if (startTime % 15 == 5 && startTime > 60 + IllusionDashSpinDuration + 30 + IllusionDashFakeoutTeleportDuration) { + Vector2 dir = NPC.DirectionTo(Target.Center); + for (int i = 0; i < (CalamityWorld.death ? 2 : 1); i++) { - Vector2 dir = NPC.DirectionTo(Target.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { Vector2 initialDir = dir.RotatedBy(MathHelper.Pi + Main.rand.NextFloat(-0.01f, 0.01f)); - Projectile.NewProjectile(NPC.GetSource_FromThis(), NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.width), initialDir * Main.rand.NextFloat(6f, 8f), ProjectileID.BloodNautilusShot, BloodShotDamage, 0.5f, ai0: dir.ToRotation() + MathHelper.TwoPi, ai1: initialDir.ToRotation()); + Vector2 spawnPos = NPC.Center + (dir.RotatedBy(MathHelper.PiOver2) * Main.rand.NextFloat(-NPC.width, NPC.width) - (dir * 48)); + Projectile.NewProjectile(NPC.GetSource_FromThis(), spawnPos, initialDir * Main.rand.NextFloat(6f, 8f), ProjectileID.BloodNautilusShot, BloodShotDamage, 0.5f, ai0: dir.ToRotation() + MathHelper.TwoPi, ai1: initialDir.ToRotation()); } NPC.velocity -= dir; } From f0fbd786ee069df6e7094fa1a8548844c6196f24 Mon Sep 17 00:00:00 2001 From: Big E Date: Wed, 18 Feb 2026 15:18:54 -0500 Subject: [PATCH 27/44] + Blood Bomb Sprites + Visual Improvements --- Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs | 69 ++++++++++++++++-- Projectiles/Boss/BrainOfCthulhu/BloodBomb.png | Bin 594 -> 454 bytes .../Boss/BrainOfCthulhu/BloodBomb2.png | Bin 0 -> 535 bytes 3 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 Projectiles/Boss/BrainOfCthulhu/BloodBomb2.png diff --git a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs index 2ff889e63f..686fb8adac 100644 --- a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs +++ b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.cs @@ -8,6 +8,7 @@ using CalamityMod.Particles; using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; +using ReLogic.Content; using Terraria; using Terraria.Audio; using Terraria.DataStructures; @@ -21,9 +22,33 @@ public class BloodBomb : ModNPC, ILocalizedModType { public new string LocalizationCategory => "NPCs"; + internal static Asset BloodBombYellow; + internal static Texture2D BloodBombGlow; + public override void SetStaticDefaults() { NPCID.Sets.ProjectileNPC[Type] = true; + BloodBombYellow = ModContent.Request("CalamityMod/Projectiles/Boss/BrainOfCthulhu/BloodBomb2"); + } + + internal static Texture2D GetBombGlow() + { + if (BloodBombGlow == null) + { + var tex = new Texture2D(Main.graphics.GraphicsDevice, BloodBombYellow.Value.Width, BloodBombYellow.Value.Height); + + var BaseArray = new Color[tex.Width * tex.Height]; + var ColorArray = new Color[tex.Width * tex.Height]; + BloodBombYellow.Value.GetData(BaseArray); + for (var i = 0; i < BaseArray.Length; i++) + { + ColorArray[i] = new Color(255, 255, 255) * (((float)BaseArray[i].A) / 255f); + } + tex.SetData(ColorArray); + BloodBombGlow = tex; + } + + return BloodBombGlow; } public override void SetDefaults() @@ -44,6 +69,7 @@ public class BloodBomb : ModNPC, ILocalizedModType NPC.knockBackResist = 0f; NPC.chaseable = false; NPC.noTileCollide = true; + NPC.ShowNameOnHover = false; } public override void OnSpawn(IEntitySource source) @@ -68,10 +94,10 @@ public class BloodBomb : ModNPC, ILocalizedModType for (int i = 0; i < 3; i++) { - BloodParticle p = new(NPC.Center, NPC.velocity.RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 6f, MathHelper.Pi / 6f)) * Main.rand.NextFloat(0.5f, 1f), 32, 1f, Color.Red); + BloodParticle p = new(NPC.Center, NPC.velocity.RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 6f, MathHelper.Pi / 6f)) * Main.rand.NextFloat(2f, 3f), 32, 1f, Color.Red); GeneralParticleHandler.SpawnParticle(p); } - BloodParticle2 p2 = new(NPC.Center, NPC.velocity * 0.75f, 16, 0.5f, Color.Red); + BloodParticle2 p2 = new(NPC.Center, NPC.velocity * 2.5f, 16, 0.5f, Color.Red); GeneralParticleHandler.SpawnParticle(p2); } @@ -82,6 +108,19 @@ public class BloodBomb : ModNPC, ILocalizedModType NPC.velocity.Y += 0.2f; + NPC.rotation += Math.Sign(NPC.velocity.X) * (NPC.velocity.Length()) * 0.01f; + + if (NPC.ai[0] % 3 == 0) + { + float deathRatio = 1 - (NPC.life / NPC.lifeMax); + float time = Main.GlobalTimeWrappedHourly * (10f + (10f * deathRatio)); + float lerp = MathF.Sin(time) / 2f + 0.5f; + Color color = Color.Lerp(Color.Red, Color.Yellow, lerp); + + BloodParticle p = new(NPC.Center + Main.rand.NextVector2Circular(NPC.width, NPC.height), (-NPC.velocity).RotatedBy(Main.rand.NextFloat(-MathHelper.Pi / 6f, MathHelper.Pi / 6f)) * Main.rand.NextFloat(0.25f, 0.75f), Main.rand.Next(10, 17), Main.rand.NextFloat(0.5f, 1f), color); + GeneralParticleHandler.SpawnParticle(p); + } + NPC.ai[0]++; } @@ -138,10 +177,18 @@ public class BloodBomb : ModNPC, ILocalizedModType float deathRatio = 1 - (NPC.life / NPC.lifeMax); float time = Main.GlobalTimeWrappedHourly * (10f + (10f * deathRatio)); float lerp = MathF.Sin(time) / 2f + 0.5f; - Color color = Color.Lerp(Color.Red, Color.Yellow, lerp); - Texture2D tex = TextureAssets.Npc[Type].Value; - spriteBatch.Draw(tex, NPC.Center - Main.screenPosition, null, color, NPC.rotation, tex.Size() * 0.5f, 1.5f + (MathF.Sin(time) * 0.25f), 0, 0); + Texture2D baseTex = TextureAssets.Npc[Type].Value; + Texture2D overlayTex = BloodBombYellow.Value; + + Vector2 drawPos = NPC.Center - Main.screenPosition + Main.rand.NextVector2CircularEdge((2 * deathRatio), (2 * deathRatio)); + float scale = 1.5f + (MathF.Sin(time) * 0.25f); + + if (Main.LocalPlayer.HasBuff(BuffID.Hunter)) + spriteBatch.Draw(GetBombGlow(), drawPos, null, Color.OrangeRed, NPC.rotation, BloodBombGlow.Size() * 0.5f, scale + 0.15f, 0, 0); + + spriteBatch.Draw(baseTex, drawPos, null, Color.White, NPC.rotation, baseTex.Size() * 0.5f, scale, 0, 0); + spriteBatch.Draw(overlayTex, drawPos, null, Color.White * lerp, NPC.rotation, overlayTex.Size() * 0.5f, scale, 0, 0); return false; } } @@ -172,7 +219,9 @@ public class BloodBombRTS : ModProjectile, ILocalizedModType public override void AI() { - Projectile.velocity = Projectile.DirectionTo(Main.npc[(int)Projectile.ai[0]].Center) * 16f; + NPC npc = Main.npc[(int)Projectile.ai[0]]; + if(npc.active && !npc.dontTakeDamage) + Projectile.velocity = Projectile.DirectionTo(npc.Center) * 16f; } public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) @@ -194,12 +243,14 @@ public class BloodBombRTS : ModProjectile, ILocalizedModType public override bool PreDraw(ref Color lightColor) { Texture2D tex = TextureAssets.Projectile[Type].Value; + Texture2D overlayTex = BloodBomb.BloodBombYellow.Value; + for (int i = 0; i < (CalamityClientConfig.Instance.Afterimages ? Projectile.oldPos.Length : 1); ++i) { float time = (Main.GlobalTimeWrappedHourly * 30) - (i / 2f); float lerp = MathF.Sin(time) / 2f + 0.5f; - Color color = Color.Lerp(Color.Red, Color.Yellow, lerp); + Color color = Color.White; float afterimageRot = Projectile.oldRot[i]; Vector2 drawPos = Projectile.oldPos[i] + (Projectile.Size / 2f) - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY); if (i != 0) @@ -207,7 +258,9 @@ public class BloodBombRTS : ModProjectile, ILocalizedModType // DO NOT REMOVE THESE "UNNECESSARY" FLOAT CASTS. THIS WILL BREAK THE AFTERIMAGES. float interpolant = ((float)(Projectile.oldPos.Length - i) / (float)Projectile.oldPos.Length); - Main.spriteBatch.Draw(tex, drawPos, null, color, afterimageRot, tex.Size() * 0.5f, (Projectile.scale + MathF.Sin(time) / 2f + 0.5f) * interpolant, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(tex, drawPos, null, color * (1 - lerp), afterimageRot, tex.Size() * 0.5f, (Projectile.scale + MathF.Sin(time) / 2f + 0.5f) * interpolant, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(overlayTex, drawPos, null, color * lerp, afterimageRot, overlayTex.Size() * 0.5f, (Projectile.scale + MathF.Sin(time) / 2f + 0.5f) * interpolant, SpriteEffects.None, 0f); + } return false; } diff --git a/Projectiles/Boss/BrainOfCthulhu/BloodBomb.png b/Projectiles/Boss/BrainOfCthulhu/BloodBomb.png index b392e6b2ce65e8291c72a96594d34ca12e6e24e2..ab2860fe7bb38debb0afb85dd50e0efc925a5e0e 100644 GIT binary patch literal 454 zcmV;%0XhDOP)Px$fJsC_R9J=8mLX5WU=W7i5Ti8o)UrR!AJm%8g?b~(S#cC;H*r) zZnc^TW2D&?P25Pqb;pI+`HRK5#g)a0)a%m}#>kHuDJ`-Cb~M$(1P>O~%$ZXk#z@B5 z7)zqEII_r2bY^rm6xOeu&p%rXW5hjKNhNV0`JKhN+~3^|W4zXT+m$%+MIQw0sKARM;75-o96M!sCgng9R*07*qoM6N<$f&ntoxc~qF literal 594 zcmV-Y08u_YOpmxCPNDR2mx5x&lh2guBpd6|`ENC{$V@QEDWJxP)E*;@O-GlbvFB zXTRi^*O_;|bI#)o_FW18)oQhmBoa=i#0w{#FzJ1<3+HmV4>)C`(Ga@bu3n)B-|rf? zk=TXf{=-jQe_EK7==FNSU@#CWm5Q+0Y!u37vjRQ%-6)kxLR|8vg?}p1ck_HLOiHxd zZGqjx6Wne$!Q)P+qs~L2P*8~UXti1bsS!>7wXi4rtNOHXwOSRT8z2Qp0r&Iyyh6V2 z%3Sc+^=V-@e!ISNuBg}Rf*0gG;qxn(%Yw(gFRn)K^V7~+NH1}8$H(JQq4W7HTrL;E z=eghSh1F`M)dM{^DLq8z_xS%Lo=&HNcg8t`)YxvfLip{)YkDEB!S5cg;d#?foXKQ_ z*=!~(mrH?NVzF2#wA<|z8jVJR?{P9$pS{QFC-zPzlZhq|#bQyo-|vF^PRVaC{Q2ZH z-1q%HcaL4uOMJav-#{wxy$bKll^#5H^;6690AG*R@pvq-7Sc=Xot;i6fnOjrn@z#} zXeC|9eSUl4arDf6J^jS%_4*Bb7C~zC`+b4WICyejAtjt>KA#JR!$II&;ePswy%SP{ z)EEwjg8Td(_KLrmND1FhN_g!0e-e8~qz?J%#sB~S diff --git a/Projectiles/Boss/BrainOfCthulhu/BloodBomb2.png b/Projectiles/Boss/BrainOfCthulhu/BloodBomb2.png new file mode 100644 index 0000000000000000000000000000000000000000..47c4444e55208f4b42e33b1954fc37ce2f079572 GIT binary patch literal 535 zcmV+y0_gpTP)Px$(Md!>R9J=8mp@CxP!z>aT7`D#(81DGXcb4hSy~;1P6ffiRS~~|i=&Glz(sU* z5CkW|Q7j4$breBxEzOX@p@P^rq$lQG&0i6&XL-CN?>6t3`|i25kWx>(6*tLq^9MsK zP261C7x^p2zBLKdW`_WP+~#TI^X|i$H})?80M9QKAORu$M1D&`Dvpd^B3ViJbCDai z^J?6mDVKmB$mk;?N!;~|0D$J!YO+9!>&AS1vH<|-U6zgO`RW_+0~s|$rsM^Z_!txb z05|*B0D$VkbY!5p2@#nyQjBZE%pEmEEa@GC$M;NuS{=uj^VGz}W6r1{@-0WQN}diN z9a()uzA9iLashKeR!*J6!ol literal 0 HcmV?d00001 From 56e5179491c62a31201cf11120359505477b8c1b Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 15:30:58 -0600 Subject: [PATCH 28/44] stratus sphere flight restore safety checks --- Projectiles/Typeless/StratusBlackHole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Typeless/StratusBlackHole.cs b/Projectiles/Typeless/StratusBlackHole.cs index 032903d270..b803f42dfa 100644 --- a/Projectiles/Typeless/StratusBlackHole.cs +++ b/Projectiles/Typeless/StratusBlackHole.cs @@ -59,7 +59,7 @@ namespace CalamityMod.Projectiles.Typeless } foreach (var player in Main.ActivePlayers) { - if (player.Distance(Projectile.Center) <= 600) + if (player.Distance(Projectile.Center) <= 600 && !player.dead) { if (player.miscCounter % 30 == 15) { @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Typeless player.Calamity().StarburstEntities.Add(new StarburstEntity(Projectile.Center)); player.Calamity().StratusStarburstResetTimer = (int)MathHelper.Max(player.Calamity().StratusStarburstResetTimer, 180); } - if (player.wingsLogic > 0) + if (player.wingsLogic > 0 && player.wingTimeMax > 0) { if (player.wingTime <= 0 && player.Calamity().AvaliableStarburst > 0) { From f8530de369a56e3f1cffc743534442533ec20e41 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 18 Feb 2026 16:41:29 -0500 Subject: [PATCH 29/44] Fixed Dynamo Stem Cells tooltip still saying it reduces Electrified damage --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 3c37ac44eb..612a6444df 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -626,7 +626,7 @@ DynamoStemCells: { ''' 10% increased ranged damage and movement speed Ranged weapons fire a powerful mini swarmer every 3 seconds - Reduces damage taken from Dragonfire and Electrified + Reduces damage taken from Dragonfire ''' } From 66f690bd95a41bcd9c65da9dbbbb5d34019f59ed Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 16:09:58 -0600 Subject: [PATCH 30/44] nerfs to broken weapons also fixed Tooth Ball being smaller than Rot Ball --- Items/Weapons/Melee/HolyCollider.cs | 2 +- Items/Weapons/Melee/MonstrousKnives.cs | 2 +- Items/Weapons/Rogue/RotBall.cs | 2 +- Items/Weapons/Rogue/ToothBall.cs | 2 +- Items/Weapons/Summon/DazzlingStabberStaff.cs | 2 +- Items/Weapons/Summon/SanctifiedSpark.cs | 2 +- Items/Weapons/Summon/VengefulSunStaff.cs | 2 +- Projectiles/CalamityGlobalProjectileTweaks.cs | 6 +++--- Projectiles/Melee/MonstrousKnife.cs | 2 +- Projectiles/Rogue/ToothBallProjectile.cs | 4 ++-- Projectiles/Summon/ProfanedEnergy.cs | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Items/Weapons/Melee/HolyCollider.cs b/Items/Weapons/Melee/HolyCollider.cs index 481ff370dd..51133ffcf2 100644 --- a/Items/Weapons/Melee/HolyCollider.cs +++ b/Items/Weapons/Melee/HolyCollider.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 114; Item.height = 146; - Item.damage = 3140; + Item.damage = 2900; Item.DamageType = TrueMeleeDamageClass.Instance; Item.useAnimation = 45; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Melee/MonstrousKnives.cs b/Items/Weapons/Melee/MonstrousKnives.cs index 4dff8f0547..72d7cdd46c 100644 --- a/Items/Weapons/Melee/MonstrousKnives.cs +++ b/Items/Weapons/Melee/MonstrousKnives.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 18; Item.height = 20; - Item.damage = 9; + Item.damage = 8; Item.DamageType = DamageClass.MeleeNoSpeed; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/RotBall.cs b/Items/Weapons/Rogue/RotBall.cs index 24d5f0bf51..a915b82bc8 100644 --- a/Items/Weapons/Rogue/RotBall.cs +++ b/Items/Weapons/Rogue/RotBall.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 30; Item.height = 30; - Item.damage = 20; + Item.damage = 16; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 16; diff --git a/Items/Weapons/Rogue/ToothBall.cs b/Items/Weapons/Rogue/ToothBall.cs index fd95ef183a..eada2f3536 100644 --- a/Items/Weapons/Rogue/ToothBall.cs +++ b/Items/Weapons/Rogue/ToothBall.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 30; Item.height = 30; - Item.damage = 20; + Item.damage = 16; Item.noMelee = true; Item.noUseGraphic = true; Item.useAnimation = 16; diff --git a/Items/Weapons/Summon/DazzlingStabberStaff.cs b/Items/Weapons/Summon/DazzlingStabberStaff.cs index f66a47e2db..4ea967a21e 100644 --- a/Items/Weapons/Summon/DazzlingStabberStaff.cs +++ b/Items/Weapons/Summon/DazzlingStabberStaff.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon Item.UseSound = SoundID.DD2_DarkMageHealImpact; Item.DamageType = DamageClass.Summon; Item.mana = 10; - Item.damage = 43; + Item.damage = 35; Item.knockBack = 2f; Item.autoReuse = true; Item.useAnimation = Item.useTime = 24; diff --git a/Items/Weapons/Summon/SanctifiedSpark.cs b/Items/Weapons/Summon/SanctifiedSpark.cs index 62798dbb63..0c10f1a1bb 100644 --- a/Items/Weapons/Summon/SanctifiedSpark.cs +++ b/Items/Weapons/Summon/SanctifiedSpark.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.width = 66; Item.height = 68; - Item.damage = 128; + Item.damage = 100; Item.DamageType = DamageClass.Summon; Item.sentry = true; Item.mana = 100; diff --git a/Items/Weapons/Summon/VengefulSunStaff.cs b/Items/Weapons/Summon/VengefulSunStaff.cs index 7152f1617f..14f973ea85 100644 --- a/Items/Weapons/Summon/VengefulSunStaff.cs +++ b/Items/Weapons/Summon/VengefulSunStaff.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.width = 72; Item.height = 72; - Item.damage = 40; + Item.damage = 35; Item.mana = 10; Item.useAnimation = Item.useTime = 36; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 2f77f97505..3c9e997be9 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles { ProjectileID.ClusterFragmentsII, Do(IDStaticIFrames(15)) }, { ProjectileID.ClusterSnowmanRocketI, Do(LocalIFrames(15)) }, { ProjectileID.ClusterSnowmanRocketII, Do(LocalIFrames(15)) }, - { ProjectileID.DangerousSpider, Do( ExtraUpdatesExact(2), LocalIFrames(45)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. + { ProjectileID.DangerousSpider, Do( ExtraUpdatesExact(2), LocalIFrames(90)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. { ProjectileID.DD2SquireSonicBoom, Do(PiercingExact(3), DefaultIDStaticIFrames) }, // Flying Dragon { ProjectileID.DeadlySphere, Do(LocalIFrames(30)) }, { ProjectileID.EmeraldBolt, Do(NoPiercing) }, @@ -165,7 +165,7 @@ namespace CalamityMod.Projectiles { ProjectileID.InfluxWaver, Do(ExtraUpdatesExact(1)) }, { ProjectileID.InfernoFriendlyBolt, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, { ProjectileID.InfernoFriendlyBlast, Do(ExtraUpdatesExact(2), DefaultIDStaticIFrames) }, - { ProjectileID.JumperSpider, Do( ExtraUpdatesExact(2), LocalIFrames(45)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. + { ProjectileID.JumperSpider, Do( ExtraUpdatesExact(2), LocalIFrames(90)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. { ProjectileID.LaserDrill, Do(ArmorPenetrationDelta(+25), LocalIFrames(5)) }, { ProjectileID.LightDisc, Do(MaxUpdatesExact(3), DefaultIDStaticIFrames) }, { ProjectileID.LostSoulHostile, Do(TileCollide) }, // Ragged Caster @@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles { ProjectileID.Trimarang, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, { ProjectileID.TrueNightsEdge, Do(PiercingExact(4)) }, { ProjectileID.VenomBullet, Do(ExtraUpdatesDelta(+2), DefaultIDStaticIFrames) }, - { ProjectileID.VenomSpider, Do( ExtraUpdatesExact(2), LocalIFrames(45)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. + { ProjectileID.VenomSpider, Do( ExtraUpdatesExact(2), LocalIFrames(90)) }, //Spider Staff spiders. It has Venom, Dangerous, and Jumping spiders. { ProjectileID.VortexDrill, standardDrillTweaks }, { ProjectileID.Wasp, Do(PiercingExact(2)) }, { ProjectileID.WeatherPainShot, Do(ExtraUpdatesExact(3), TimeLeftExact(1920)) }, diff --git a/Projectiles/Melee/MonstrousKnife.cs b/Projectiles/Melee/MonstrousKnife.cs index 7cfb2d2d45..8f2abedb44 100644 --- a/Projectiles/Melee/MonstrousKnife.cs +++ b/Projectiles/Melee/MonstrousKnife.cs @@ -45,6 +45,6 @@ namespace CalamityMod.Projectiles.Melee } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => Main.player[Projectile.owner].SpawnLifeStealProjectile(target, Projectile, ProjectileID.VampireHeal, 1, 3f); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => Main.player[Projectile.owner].SpawnLifeStealProjectile(target, Projectile, ProjectileID.VampireHeal, 1, 4f); //4x cooldown = 23.3 HP bank, 2.25 hp/s refill } } diff --git a/Projectiles/Rogue/ToothBallProjectile.cs b/Projectiles/Rogue/ToothBallProjectile.cs index 8592253161..59634c5d7c 100644 --- a/Projectiles/Rogue/ToothBallProjectile.cs +++ b/Projectiles/Rogue/ToothBallProjectile.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Projectiles.Rogue public override void SetDefaults() { - Projectile.width = 12; - Projectile.height = 12; + Projectile.width = 30; + Projectile.height = 30; Projectile.friendly = true; Projectile.penetrate = 3; Projectile.aiStyle = ProjAIStyleID.ThrownProjectile; diff --git a/Projectiles/Summon/ProfanedEnergy.cs b/Projectiles/Summon/ProfanedEnergy.cs index fadd5344d5..19db3f0522 100644 --- a/Projectiles/Summon/ProfanedEnergy.cs +++ b/Projectiles/Summon/ProfanedEnergy.cs @@ -186,7 +186,7 @@ namespace CalamityMod.Projectiles.Summon if (healShots != 0 && attackCooldown != maxRechargeTime && (attackCooldown % (maxRechargeTime / (healShots + 1)) == 0)) { Vector2 vel = ((Projectile.Center - player.Center) - player.velocity * 10).SafeNormalize(Vector2.UnitX) * -10; - Projectile healStar = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, vel, ModContent.ProjectileType(), 0, Projectile.knockBack, Projectile.owner, 0, 10, 5); + Projectile healStar = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, vel, ModContent.ProjectileType(), 0, Projectile.knockBack, Projectile.owner, 0, 5, 5); healStar.extraUpdates = 2; SoundStyle fireHeal = new("CalamityMod/Sounds/Custom/ProfanedGuardians/GuardianDash"); SoundEngine.PlaySound(fireHeal with { Volume = 0.7f, Pitch = 0.3f }, Projectile.Center); From 7d4c0f0aa18d62f58f2f13b5b810ee7bc134482d Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com> Date: Wed, 18 Feb 2026 17:50:10 -0500 Subject: [PATCH 31/44] Mana Polarizer's tooltip says HP/s instead of HP/sec --- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 612a6444df..3f2c0e5765 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -1089,7 +1089,7 @@ ManaPolarizer: { Increases max mana by 50 Provides life regeneration and magic damage that scales based on how much mana you have Lower mana means more life regeneration, but less magic damage - These scale from -2 to 2 HP/sec, and 15% to 5% damage + These scale from -2 to +2 HP/s, and 15% to 5% damage The provided regeneration is halved when under Mana Sickness Magic projectiles steal enemy life while holding a magic weapon ''' From 4ff8717184ed99de891b6dfbb2953f742f97ae60 Mon Sep 17 00:00:00 2001 From: Big E Date: Wed, 18 Feb 2026 18:00:58 -0500 Subject: [PATCH 32/44] + Missing mpclient check --- .../Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs index cf8b48b4cc..f7aeb43468 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs @@ -1891,7 +1891,8 @@ public class BrainOfCthulhuAI : VanillaAIOverride if (Time > BloodshotRate + 30 && Time % (IchorRate * 10) == 0) { SoundEngine.PlaySound(BloodBomb, NPC.Center); - NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); + if (Main.netMode != NetmodeID.MultiplayerClient)of + NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); } else { From b454f01e337c771f9068067e2741a35d426fd697 Mon Sep 17 00:00:00 2001 From: Big E Date: Wed, 18 Feb 2026 19:00:41 -0500 Subject: [PATCH 33/44] + Fixed a typo --- .../Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs index f7aeb43468..9b70e6bac4 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/BrainOfCthulhu/BrainOfCthulhuAI.cs @@ -1891,7 +1891,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride if (Time > BloodshotRate + 30 && Time % (IchorRate * 10) == 0) { SoundEngine.PlaySound(BloodBomb, NPC.Center); - if (Main.netMode != NetmodeID.MultiplayerClient)of + if (Main.netMode != NetmodeID.MultiplayerClient) NPC.NewNPC(NPC.GetSource_FromThis(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType(), NPC.whoAmI); } else From 9376a571e48053489b1393a5d422039b68a3cada Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 18:47:46 -0600 Subject: [PATCH 34/44] some Stratus balancing Sirius: - dmg nerf - starburst gen rate depends on slots provided, 0.33 starbursts per second per slot. 6 slots is identical to before (which is what you have with omega blue + summon pot + bewitching) - quasar no longer explodes when hitting armored targets Halley's Inferno - Fixed Starburst dmg mult not applying - Doubled starburst attack dmg, consumption, and generation on hit. Same dmg per starburst, but can get through Starbursts faster. --- Items/Weapons/Ranged/HalleysInferno.cs | 6 +++--- Items/Weapons/Summon/Sirius.cs | 2 +- Projectiles/Ranged/HalleysInfernoHoldout.cs | 6 +++--- Projectiles/Summon/SiriusMinion.cs | 13 +++++++++---- Projectiles/Summon/SiriusQuasar.cs | 4 +++- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Items/Weapons/Ranged/HalleysInferno.cs b/Items/Weapons/Ranged/HalleysInferno.cs index e17b40e422..69890dfbb8 100644 --- a/Items/Weapons/Ranged/HalleysInferno.cs +++ b/Items/Weapons/Ranged/HalleysInferno.cs @@ -20,13 +20,13 @@ namespace CalamityMod.Items.Weapons.Ranged public static readonly SoundStyle ShootSound = new("CalamityMod/Sounds/Item/HalleysInfernoShoot") { Volume = 0.68f }; public static readonly SoundStyle Hit = new("CalamityMod/Sounds/Item/HalleysInfernoHit") { Volume = 0.75f }; public static float MaxStarburstPerComet => 1; - public static float MaxStarburstPerStar => 0.25f; + public static float MaxStarburstPerStar => 0.5f; public static float LostAccuracyPerMiss => 4; public static float MaxAccuracy => 50; - public static float StarburstDmgMult => 1.25f; + public static float StarburstDmgMult => 2.5f; - public static float StarburstVelMult = 0.75f; + public static float StarburstVelMult => 0.75f; public override void SetDefaults() { Item.width = 84; diff --git a/Items/Weapons/Summon/Sirius.cs b/Items/Weapons/Summon/Sirius.cs index 3b90737476..9eb6828716 100644 --- a/Items/Weapons/Summon/Sirius.cs +++ b/Items/Weapons/Summon/Sirius.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { Item.width = Item.height = 62; - Item.damage = 150; + Item.damage = 90; Item.useAnimation = Item.useTime = 24; Item.mana = 10; Item.knockBack = 10f; diff --git a/Projectiles/Ranged/HalleysInfernoHoldout.cs b/Projectiles/Ranged/HalleysInfernoHoldout.cs index 166b8d838d..9d09b629f1 100644 --- a/Projectiles/Ranged/HalleysInfernoHoldout.cs +++ b/Projectiles/Ranged/HalleysInfernoHoldout.cs @@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Ranged } else if (Owner.controlUseTile) { - if (ShotTimer <= 0 && Owner.Calamity().AvaliableStarburst > 0) + if (ShotTimer <= 0 && Owner.Calamity().AvaliableStarburst > 1) { ShotTimer = 4; var spawnpos = Projectile.Center; @@ -97,8 +97,8 @@ namespace CalamityMod.Projectiles.Ranged for (var i = 0; i < 5; i++) GeneralParticleHandler.SpawnParticle(new GlowSparkParticle(spawnpos + dir * 36, (dir * Halley.shootSpeed).RotatedByRandom(0.75f) * Main.rand.NextFloat(0.5f, 1.5f), false, 7, 0.02f, drawColor, new Vector2(0.5f, 1f))); if (Projectile.owner == Main.myPlayer) - Projectile.NewProjectile(Owner.GetSource_ItemUse_WithPotentialAmmo(Halley, AmmoID.Gel), spawnpos + dir * 16,dir * Halley.shootSpeed * 0.75f, ModContent.ProjectileType(), (int)Owner.GetDamage(DamageClass.Ranged).ApplyTo(Halley.damage), Halley.knockBack, Projectile.owner, color); - Owner.Calamity().StratusStarburst--; + Projectile.NewProjectile(Owner.GetSource_ItemUse_WithPotentialAmmo(Halley, AmmoID.Gel), spawnpos + dir * 16,dir * Halley.shootSpeed * HalleysInferno.StarburstVelMult, ModContent.ProjectileType(), (int)(Owner.GetDamage(DamageClass.Ranged).ApplyTo(Halley.damage) * HalleysInferno.StarburstDmgMult), Halley.knockBack, Projectile.owner, color); + Owner.Calamity().StratusStarburst -= 2; SoundEngine.PlaySound(HalleysInferno.ShootSound); RecoilAmount = 4; } diff --git a/Projectiles/Summon/SiriusMinion.cs b/Projectiles/Summon/SiriusMinion.cs index e41364e24c..f85c8e11d3 100644 --- a/Projectiles/Summon/SiriusMinion.cs +++ b/Projectiles/Summon/SiriusMinion.cs @@ -89,11 +89,16 @@ namespace CalamityMod.Projectiles.Summon SpawnEffect(); // Does a dust spawn effect. ShootTarget(target); // If there's a target, shoot at the target. - if (target is not null && Owner.miscCounter % 30 == 0) { - - if (moddedOwner.StratusStarburst <= CalamityPlayer.MaxStratusStarburst) + if (target is not null) + { + moddedOwner.StarburstSpawnFrameCounter += Projectile.minionSlots / (float)CalamityUtils.SecondsToFrames(3f); //0.33 starbursts per seconds per minion slot + while (moddedOwner.StarburstSpawnFrameCounter >= 1 && moddedOwner.StratusStarburst <= CalamityPlayer.MaxStratusStarburst) + { + moddedOwner.StratusStarburst++; moddedOwner.StarburstEntities.Add(new StarburstEntity(Projectile.Center)); - moddedOwner.StratusStarburst++; + moddedOwner.StarburstSpawnFrameCounter--; + } + } Lighting.AddLight(Projectile.Center, 0.5f, 0.5f, 1f); // Passively makes blue light. diff --git a/Projectiles/Summon/SiriusQuasar.cs b/Projectiles/Summon/SiriusQuasar.cs index 568d8abe34..8caa8b3348 100644 --- a/Projectiles/Summon/SiriusQuasar.cs +++ b/Projectiles/Summon/SiriusQuasar.cs @@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Summon public new string LocalizationCategory => "Projectiles.Summon"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + bool hasExploded = false; public override void SetStaticDefaults() { ProjectileID.Sets.MinionShot[Type] = true; @@ -75,8 +76,9 @@ namespace CalamityMod.Projectiles.Summon //Due to Sirius's high Starburst consumption, it inflicts long amounts of Voidfrost on hit target.AddBuff(ModContent.BuffType(), 600); float x4 = Main.rgbToHsl(new Color(103, 203, Main.DiscoB)).X; - if (Projectile.numHits == 0) + if (!hasExploded && !target.Calamity().IsArmored()) { + hasExploded = true; SoundStyle fire = new("CalamityMod/Sounds/Item/ScorpioNukeHit"); SoundEngine.PlaySound(fire with { Volume = 0.75f, Pitch = 0.6f, PitchVariance = 0.2f }, Projectile.Center); float numberOfDusts = 156f; From 1a54e0422e5fc34e66a38830c4f67ba8a421a36d Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 19:27:37 -0600 Subject: [PATCH 35/44] balancing - Hyperdeath Rift Scepter beam now does magic dmg - Igneous Exaltation dmg 34 -> 35, pierce on active 50 -> 15, double dmg hit amount 10 -> 5 --- Items/Weapons/Summon/IgneousExaltation.cs | 6 +++--- Projectiles/Magic/HyperdeathRiftScepterBeam.cs | 1 + Projectiles/Summon/IgneousBlade.cs | 10 ++++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Items/Weapons/Summon/IgneousExaltation.cs b/Items/Weapons/Summon/IgneousExaltation.cs index 2523a46969..262929fdc0 100644 --- a/Items/Weapons/Summon/IgneousExaltation.cs +++ b/Items/Weapons/Summon/IgneousExaltation.cs @@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Summon { public class IgneousExaltation : ModItem, ILocalizedModType { - public static int ChargeDuration = 30; - public static int ChargeCooldown = 120; + public static int ChargeDuration => 25; + public static int ChargeCooldown => 120; public new string LocalizationCategory => "Items.Weapons.Summon"; private static Texture2D BladeOutline = null; public static Texture2D GetBladeOutlineTex() @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.width = 52; Item.height = 50; - Item.damage = 34; + Item.damage = 35; Item.mana = 10; Item.useAnimation = Item.useTime = 36; Item.useStyle = ItemUseStyleID.Shoot; diff --git a/Projectiles/Magic/HyperdeathRiftScepterBeam.cs b/Projectiles/Magic/HyperdeathRiftScepterBeam.cs index 284db13562..3a44dcb13b 100644 --- a/Projectiles/Magic/HyperdeathRiftScepterBeam.cs +++ b/Projectiles/Magic/HyperdeathRiftScepterBeam.cs @@ -45,6 +45,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.scale = 2; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; + Projectile.DamageType = DamageClass.Magic; } public override void AI() { diff --git a/Projectiles/Summon/IgneousBlade.cs b/Projectiles/Summon/IgneousBlade.cs index 7fca4f2e51..b13b17085f 100644 --- a/Projectiles/Summon/IgneousBlade.cs +++ b/Projectiles/Summon/IgneousBlade.cs @@ -118,11 +118,12 @@ namespace CalamityMod.Projectiles.Summon CircleOwner(); break; case AIState.TransitionToLaunch: - ChargeTargetPos = Owner.Calamity().mouseWorld; + Owner.Calamity().mouseWorldListener = true; + ChargeTargetPos = Owner.Calamity().mouseWorldDeltaFromPlayer; ChargeStartPos = Owner.Center; CurrentState = AIState.LaunchAtPos; AITimer = 0; - Projectile.penetrate = 50; + Projectile.penetrate = 15; LaunchAtTargetPos(); break; case AIState.LaunchAtPos: @@ -162,12 +163,13 @@ namespace CalamityMod.Projectiles.Summon public void LaunchAtTargetPos() { Projectile.damage = Projectile.originalDamage; - if (Projectile.penetrate > 40) //First 10 hits do 2x damage + if (Projectile.penetrate > 10) //First 5 hits do 2x damage Projectile.damage *= 2; int chargeTime = IgneousExaltation.ChargeDuration * 2; int chargeLength = 2000; float circleWidth = Math.Min(75, Owner.ownedProjectileCounts[Type] * 4); - var CurrentPlace = Vector2.Lerp(ChargeStartPos, ChargeStartPos + ChargeStartPos.DirectionTo(ChargeTargetPos) * chargeLength, MathF.Pow(AITimer / chargeTime, 3)); + var CurrentPlace = Vector2.Lerp(ChargeStartPos, ChargeStartPos + ChargeTargetPos.SafeNormalize(Vector2.UnitX) * chargeLength, MathF.Pow(AITimer / chargeTime, 3)); + Projectile.Center = CurrentPlace + BladeHoverOffsetAngle.ToRotationVector2() * Math.Max(MathHelper.Lerp(100f, 25f, AITimer / 10f), circleWidth); Projectile.rotation = Projectile.AngleFrom(CurrentPlace) + MathHelper.PiOver2; if (AITimer >= chargeTime) From 416c4ad370bc17343deb748ba07acd144394cc2f Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 19:35:35 -0600 Subject: [PATCH 36/44] igneous bugfix - blades now properly spawn the first 5 hits - now properly scales with summon dmg on the active - 35 -> 30 dmg to compensate --- Items/Weapons/Summon/IgneousExaltation.cs | 2 +- Projectiles/Summon/IgneousBlade.cs | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Items/Weapons/Summon/IgneousExaltation.cs b/Items/Weapons/Summon/IgneousExaltation.cs index 262929fdc0..3b829ede05 100644 --- a/Items/Weapons/Summon/IgneousExaltation.cs +++ b/Items/Weapons/Summon/IgneousExaltation.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.width = 52; Item.height = 50; - Item.damage = 35; + Item.damage = 30; Item.mana = 10; Item.useAnimation = Item.useTime = 36; Item.useStyle = ItemUseStyleID.Shoot; diff --git a/Projectiles/Summon/IgneousBlade.cs b/Projectiles/Summon/IgneousBlade.cs index b13b17085f..4a0edee62a 100644 --- a/Projectiles/Summon/IgneousBlade.cs +++ b/Projectiles/Summon/IgneousBlade.cs @@ -162,9 +162,6 @@ namespace CalamityMod.Projectiles.Summon public void LaunchAtTargetPos() { - Projectile.damage = Projectile.originalDamage; - if (Projectile.penetrate > 10) //First 5 hits do 2x damage - Projectile.damage *= 2; int chargeTime = IgneousExaltation.ChargeDuration * 2; int chargeLength = 2000; float circleWidth = Math.Min(75, Owner.ownedProjectileCounts[Type] * 4); @@ -195,9 +192,14 @@ namespace CalamityMod.Projectiles.Summon } } + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) + { + if (Projectile.penetrate >= 10) // First 5 hits deal 2x dmg + modifiers.SourceDamage *= 2; + } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - if (Projectile.penetrate >= 40 && CurrentState != AIState.CircleOwner) //The first 10 hits per launch can spawn blades + if (Projectile.penetrate >= 10 && CurrentState != AIState.CircleOwner) //The first 5 hits per launch can spawn blades if (Main.myPlayer == Projectile.owner) { for (int i = 0; i < 1; i++) From ee00008bce99c33ee20f791743a642aaaf77f3ea Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 20:08:29 -0600 Subject: [PATCH 37/44] Old Duke now is fished up like Duke Fishron --- CalPlayer/CalamityPlayerFishing.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index d5e2542067..60deea4a8a 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -177,8 +177,9 @@ namespace CalamityMod.CalPlayer // Old Duke spawn if (canSulphurFish && bait == ModContent.ItemType() && !BossRushEvent.BossRushActive) { - CalamityGlobalNPC.OldDukeSpawn(Player.whoAmI, ModContent.NPCType(), bait); + npcSpawn = ModContent.NPCType(); itemDrop = -1; + sonar.Text = ""; return; } From c51cb7c1ce6dccc4380f76c57321ac8060a5c36d Mon Sep 17 00:00:00 2001 From: Nathanael Overton Date: Wed, 18 Feb 2026 21:09:05 -0500 Subject: [PATCH 38/44] Feral bobber bugfix and balancing - Made feral bobber parse your entire inventory for bait instead of just ammo slots - Added diminishing returns for bait power past 75 --- Projectiles/CalamityGlobalProjectile.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 7cf139872c..6cc86b13cd 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -3313,7 +3313,18 @@ namespace CalamityMod.Projectiles if (cplayer.mouseRight && projectile.ai[1] == 0 && owner.miscCounter % 10 == 0) { owner.lifeRegenCount -= 600; // -5 health per 10 ticks - var projID = Projectile.NewProjectile(projectile.GetSource_FromThis(), Main.npc[(int)PersistentFishingData].Center, Vector2.Zero, ModContent.ProjectileType(), (int)owner.GetBestClassDamage().ApplyTo(owner.HeldItem.fishingPole + owner.fishingSkill + owner.ChooseAmmo(owner.HeldItem).bait), 0f, owner.whoAmI, Main.npc[(int)PersistentFishingData].whoAmI); + + Item baitItem; + owner.Fishing_GetBait(out baitItem); + + // Diminishing returns on bait power beyond 75 + int baitPower = baitItem?.bait ?? 0; + if (baitPower > 75) + { + baitPower = (int)Math.Pow((baitPower - 75), 0.5f) + 75; + } + + var projID = Projectile.NewProjectile(projectile.GetSource_FromThis(), Main.npc[(int)PersistentFishingData].Center, Vector2.Zero, ModContent.ProjectileType(), (int)owner.GetBestClassDamage().ApplyTo(owner.HeldItem.fishingPole + owner.fishingSkill + baitPower), 0f, owner.whoAmI, Main.npc[(int)PersistentFishingData].whoAmI); if (Main.projectile.IndexInRange(projID)) { Main.projectile[projID].ArmorPenetration = 100; //This should ignore almost all armor From e56508a3700ba97d98ec386dbf8f8bd86aa03c8d Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 20:14:50 -0600 Subject: [PATCH 39/44] fixed old duke spawn message it shows up again, but it shows up when he roars for those hype moments and aura --- NPCs/OldDuke/OldDuke.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index bacd9e74db..6ed76faa1a 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -617,6 +617,8 @@ namespace CalamityMod.NPCs.OldDuke CalamityUtils.AddScreenshakeAt(NPC.Center, 14); SoundEngine.PlaySound(SoundID.DD2_BetsyFlameBreath.WithPitchOffset(-0.5f), NPC.Center); SoundEngine.PlaySound(DashSoundP3, NPC.Center); + if (Main.netMode != NetmodeID.MultiplayerClient) + CalamityUtils.BossAwakenMessage(NPC.whoAmI); } if (NPC.ai[2] >= 75f) From 7ae37bf594158f6ce40d52d4443b9a4b855e1f2e Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 20:18:55 -0600 Subject: [PATCH 40/44] Feral Bobber spawns the fishrons when used with their bait spawners --- Projectiles/CalamityGlobalProjectile.cs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 6cc86b13cd..3a3cf1bb75 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -18,8 +18,10 @@ using CalamityMod.Items.Armor.Daedalus; using CalamityMod.Items.Armor.Reaver; using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Items.Potions.Alcohol; +using CalamityMod.Items.SummonItems; using CalamityMod.Items.VanillaArmorChanges; using CalamityMod.NPCs; +using CalamityMod.NPCs.OldDuke; using CalamityMod.NPCs.PlagueEnemies; using CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses; using CalamityMod.Packets.Entities; @@ -3313,13 +3315,23 @@ namespace CalamityMod.Projectiles if (cplayer.mouseRight && projectile.ai[1] == 0 && owner.miscCounter % 10 == 0) { owner.lifeRegenCount -= 600; // -5 health per 10 ticks - - Item baitItem; - owner.Fishing_GetBait(out baitItem); + owner.Fishing_GetBait(out Item baitItem); // Diminishing returns on bait power beyond 75 int baitPower = baitItem?.bait ?? 0; - if (baitPower > 75) + if (baitItem?.type == ItemID.TruffleWorm) + { + projectile.ai[0] = 1; + projectile.localAI[1] = 1; + ReelTheBobberChecks(); + } + else if (baitItem?.type == ItemType()) + { + projectile.ai[0] = 1; + projectile.localAI[1] = NPCType() * -1; + ReelTheBobberChecks(); + } + else if (baitPower > 75) { baitPower = (int)Math.Pow((baitPower - 75), 0.5f) + 75; } From d05b690ac384cee6b40a6619e0550ee6e780c72f Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 18 Feb 2026 20:58:54 -0600 Subject: [PATCH 41/44] Bloodworms are properly consumed by fishing & can only catch one OD per catch Catching fishron in MP with bobber minigames should work better --- CalPlayer/CalamityPlayerFishing.cs | 20 ++++++++++++++------ Projectiles/CalamityGlobalProjectile.cs | 4 ++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CalPlayer/CalamityPlayerFishing.cs b/CalPlayer/CalamityPlayerFishing.cs index 60deea4a8a..50bd493bad 100644 --- a/CalPlayer/CalamityPlayerFishing.cs +++ b/CalPlayer/CalamityPlayerFishing.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Linq; using CalamityMod.Events; using CalamityMod.Items.Accessories; using CalamityMod.Items.Accessories.Vanity; @@ -30,7 +31,6 @@ using Terraria.DataStructures; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; -using Terraria.UI; namespace CalamityMod.CalPlayer { @@ -49,15 +49,15 @@ namespace CalamityMod.CalPlayer // If the player does get a crate (can be from the reroll above), give it increased chances of being rarer if (attempt.crate) { - int uncommonRate = Math.Clamp(240 / attempt.fishingLevel, 3, 240); // Iron/Mythril (originally 300) + int uncommonRate = Math.Clamp(240 / attempt.fishingLevel, 3, 240); // Iron/Mythril (originally 300) attempt.uncommon = Main.rand.NextBool(uncommonRate); // These roll result bools are individually stored for the rarifying visuals - int rareRate = Math.Clamp(840 / attempt.fishingLevel, 4, 840); // Biome (originally 1050) + int rareRate = Math.Clamp(840 / attempt.fishingLevel, 4, 840); // Biome (originally 1050) bool rareRoll = Main.rand.NextBool(rareRate); attempt.rare = rareRoll; - int veryRareRate = Math.Clamp(1800 / attempt.fishingLevel, 5, 1800); // Golden/Titanium (originally 2250) + int veryRareRate = Math.Clamp(1800 / attempt.fishingLevel, 5, 1800); // Golden/Titanium (originally 2250) bool veryRareRoll = Main.rand.NextBool(veryRareRate); attempt.veryrare = veryRareRoll; @@ -86,6 +86,13 @@ namespace CalamityMod.CalPlayer } #endregion + public override bool? CanConsumeBait(Item bait) + { + if (bait.type == ModContent.ItemType()) + return true; + return null; + } + #region Catch Fish public override void CatchFish(FishingAttempt attempt, ref int itemDrop, ref int npcSpawn, ref AdvancedPopupRequest sonar, ref Vector2 sonarPosition) { @@ -128,7 +135,7 @@ namespace CalamityMod.CalPlayer // Fishing in lava overrides the rest of logic if (lava) { - // Don't do anything if you can't fish in lava + // Don't do anything if you can't fish in lava if (!attempt.CanFishInLava) return; @@ -177,7 +184,8 @@ namespace CalamityMod.CalPlayer // Old Duke spawn if (canSulphurFish && bait == ModContent.ItemType() && !BossRushEvent.BossRushActive) { - npcSpawn = ModContent.NPCType(); + if (!Main.projectile.Any(x => x.active && x.aiStyle == ProjAIStyleID.Bobber && x.ai[1] != 0 && x.localAI[1] == ModContent.NPCType() * -1)) + npcSpawn = ModContent.NPCType(); itemDrop = -1; sonar.Text = ""; return; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 3a3cf1bb75..adab757b67 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2969,6 +2969,10 @@ namespace CalamityMod.Projectiles { NPC.SpawnOnPlayer(owner.whoAmI, 370); } + else + { + NetMessage.SendData(MessageID.SpawnBossUseLicenseStartEvent, -1, -1, null, owner.whoAmI, 370f); + } projectile.ai[0] = 2f; } else if (projectile.localAI[1] < 1) From 867262d399f34bc61cf68addf186e4fe53e511a4 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 18 Feb 2026 22:49:51 -0500 Subject: [PATCH 42/44] Bloodworm now spoofs its bait power To fix bugs with it hooking immediately and staying hooked for much longer than it should --- Items/SummonItems/BloodwormItem.cs | 18 ++++++++++++++++-- Projectiles/CalamityGlobalProjectile.cs | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Items/SummonItems/BloodwormItem.cs b/Items/SummonItems/BloodwormItem.cs index be23362d9c..5bd5f6c758 100644 --- a/Items/SummonItems/BloodwormItem.cs +++ b/Items/SummonItems/BloodwormItem.cs @@ -1,7 +1,10 @@ -using CalamityMod.NPCs.AcidRain; +using System.Collections.Generic; +using System.Linq; +using CalamityMod.NPCs.AcidRain; using CalamityMod.Rarities; using Terraria; using Terraria.ID; +using Terraria.Localization; using Terraria.ModLoader; namespace CalamityMod.Items.SummonItems @@ -9,6 +12,8 @@ namespace CalamityMod.Items.SummonItems public class BloodwormItem : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.SummonItems"; + + private const int SpoofBaitNumber = 4444; public override void SetStaticDefaults() { Item.ResearchUnlockCount = 3; @@ -20,7 +25,10 @@ namespace CalamityMod.Items.SummonItems Item.width = 28; Item.height = 28; Item.maxStack = Item.CommonMaxStack; - Item.bait = 4444; + // Why spoof this in the tooltip? + // To fix bugs related to how bait power affects hooking fish. + // Vanilla gets around this for Truffle Worm with a hundred hardcoded checks but we don't have the full luxury to do that. + Item.bait = 50; Item.useStyle = ItemUseStyleID.Swing; Item.autoReuse = true; Item.useTurn = true; @@ -38,5 +46,11 @@ namespace CalamityMod.Items.SummonItems { itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem; } + + public override void ModifyTooltips(List tooltips) + { + TooltipLine bait = tooltips.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "BaitPower"); + bait?.Text = Language.GetTextValue("GameUI.BaitPower", SpoofBaitNumber); + } } } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index adab757b67..ee5a3cbc01 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -3333,6 +3333,7 @@ namespace CalamityMod.Projectiles { projectile.ai[0] = 1; projectile.localAI[1] = NPCType() * -1; + baitPower = 4444; // Manually set the power to the displayed value ReelTheBobberChecks(); } else if (baitPower > 75) From 76dc15edf91ac0230f62fe8552f1db72ac6662ba Mon Sep 17 00:00:00 2001 From: sunny-raindrops Date: Wed, 18 Feb 2026 21:18:30 -0800 Subject: [PATCH 43/44] Burning Sky now reforges to Unreal --- Items/Weapons/Melee/TheBurningSky.cs | 3 +++ Prefixes/ReforgeChange.cs | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Melee/TheBurningSky.cs b/Items/Weapons/Melee/TheBurningSky.cs index 161909dfc0..4147065fcb 100644 --- a/Items/Weapons/Melee/TheBurningSky.cs +++ b/Items/Weapons/Melee/TheBurningSky.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; using Terraria.DataStructures; +using Terraria.GameContent.Prefixes; using Terraria.ID; using Terraria.ModLoader; @@ -44,6 +45,8 @@ namespace CalamityMod.Items.Weapons.Melee Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); } + public override bool RangedPrefix() => true; //class identity is fake + public override bool MeleePrefix() => false; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Prefixes/ReforgeChange.cs b/Prefixes/ReforgeChange.cs index 7334129f63..5a42927f66 100644 --- a/Prefixes/ReforgeChange.cs +++ b/Prefixes/ReforgeChange.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.NPCs.TownNPCs; using CalamityMod.Packets; using CalamityMod.World; @@ -193,7 +194,7 @@ namespace CalamityMod.Prefixes // MELEE (includes tools and whips) // Melee-ranged hybrid weapons prioritize Legendary if available, otherwise go for Unreal - if ((item.CountsAsClass() || item.CountsAsClass()) && !(item.CountsAsClass() && !supportsLegendary)) + if ((item.CountsAsClass() || item.CountsAsClass()) && !(item.CountsAsClass() && !supportsLegendary) && !(item.type == ItemType())) { // Terrarian (has its own special "Legendary" for marketing reasons) // Other items that want to use Legendary2 are also compatible @@ -218,8 +219,8 @@ namespace CalamityMod.Prefixes } } - // RANGED - else if (item.CountsAsClass()) + // RANGED (and also Burning Sky) + else if (item.CountsAsClass() || item.type == ItemType()) { prefix = IteratePrefix(rand, RangedPrefixTiers, currentPrefix); } From b33c0bc4f16fca89bf3b08d73f46029d65e95539 Mon Sep 17 00:00:00 2001 From: apotofkoolaid Date: Thu, 19 Feb 2026 08:55:59 -0600 Subject: [PATCH 44/44] Terminus resprite + minor tooltip revision - Gave Terminus' glow mask a subtle animation similar to Xeroc's eye, or Fallen Stars on the ground. - Revised Terminus' tooltip to make it read easier. I didn't add any lore flairs, since I figure someone else wants to do that later. --- Items/SummonItems/Terminus.cs | 77 +++++++++++++++--- Items/SummonItems/Terminus.png | Bin 1466 -> 1056 bytes Items/SummonItems/TerminusGlow.png | Bin 0 -> 673 bytes .../Mods.CalamityMod.Items.SummonItems.hjson | 2 +- Projectiles/Typeless/TerminusHoldout.cs | 39 +++++++-- 5 files changed, 99 insertions(+), 19 deletions(-) create mode 100644 Items/SummonItems/TerminusGlow.png diff --git a/Items/SummonItems/Terminus.cs b/Items/SummonItems/Terminus.cs index 71f0b167e4..c1432c9c8b 100644 --- a/Items/SummonItems/Terminus.cs +++ b/Items/SummonItems/Terminus.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Items.SummonItems public new string LocalizationCategory => "Items.SummonItems"; public override void SetDefaults() { - Item.width = Main.zenithWorld ? 54 : 28; - Item.height = Main.zenithWorld ? 78 : 28; + Item.width = Main.zenithWorld ? 54 : 70; + Item.height = Main.zenithWorld ? 78 : 80; Item.rare = ItemRarityID.Blue; Item.useAnimation = 45; Item.useTime = 45; @@ -31,17 +31,67 @@ namespace CalamityMod.Items.SummonItems Item.SetNameOverride(this.GetLocalizedValue("GFBName")); } - public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale) + public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) { + // The wiki classifies Boss Rush as an event + itemGroup = ContentSamples.CreativeHelper.ItemGroup.EventItem; + } + + #region Sprite Drawing + public static void DrawTerminusGlow(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, float rotation, float baseScale) + { + Texture2D glowTexture = ModContent.Request("CalamityMod/Items/SummonItems/TerminusGlow").Value; + Vector2 origin = frame.Size() * 0.5f; + + float pulseRate = Main.GlobalTimeWrappedHourly % 5f; + float slowingRate = Main.GlobalTimeWrappedHourly * 0.4f; + float orbitRadius = baseScale != 1f ? 4f : 7f; + float glowCount = 3f; + + pulseRate /= 2.5f; + if (pulseRate >= 1f) + pulseRate = 2f - pulseRate; + pulseRate *= 0.6f; + + for (int i = 0; i < glowCount; i++) + { + float progress = i / glowCount; + float pulseRotation = (progress + slowingRate) * MathHelper.TwoPi; + + Vector2 offset = Vector2.UnitY * orbitRadius; + offset = offset.RotatedBy(pulseRotation) * pulseRate; + + spriteBatch.Draw(glowTexture, baseDrawPosition + offset, frame, new Color(56, 12, 115, 33), rotation, origin, baseScale, 0, 0); + } + + spriteBatch.Draw(glowTexture, baseDrawPosition, frame, Color.White, rotation, origin, baseScale, 0, 0); + } + + public static void DrawGlowInWorld(SpriteBatch spriteBatch, Vector2 baseDrawPosition, float rotation, float baseScale) + { + Texture2D glowTexture = ModContent.Request("CalamityMod/Items/SummonItems/TerminusGlow").Value; + Rectangle frame = glowTexture.Bounds; + DrawTerminusGlow(spriteBatch, baseDrawPosition + new Vector2(0, -1), frame, rotation, baseScale); + } + + public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale) + { + Texture2D texture; + float invScale = scale * 1.4f; + if (Main.zenithWorld) { - Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value; - Color overlay = Color.White; - spriteBatch.Draw(texture, position, null, overlay, 0f, origin, scale, 0, 0); - return false; + texture = ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value; + spriteBatch.Draw(texture, position - new Vector2(-4, -1), null, Color.White, 0f, origin, invScale - 0.04f, 0, 0); } else - return true; + { + texture = ModContent.Request("CalamityMod/Items/SummonItems/Terminus").Value; + spriteBatch.Draw(texture, position, null, Color.White, 0f, origin, invScale, 0, 0); + DrawTerminusGlow(spriteBatch, position, frame, 0f, invScale); + } + + return false; } public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) @@ -49,17 +99,20 @@ namespace CalamityMod.Items.SummonItems if (Main.zenithWorld) { Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value; - spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, 0, 0); + spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, rotation, Vector2.Zero, scale, 0, 0); return false; } else return true; } - public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) + public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { - // The wiki classifies Boss Rush as an event - itemGroup = ContentSamples.CreativeHelper.ItemGroup.EventItem; + if (!Main.zenithWorld) + { + DrawGlowInWorld(spriteBatch, Item.Center - Main.screenPosition, rotation, scale); + } } + #endregion } } diff --git a/Items/SummonItems/Terminus.png b/Items/SummonItems/Terminus.png index 9693d24bb8b1e3cecf617e38f835c640a42881db..b94449e1dd4c3968a0b944bc52545032c6be5fd8 100644 GIT binary patch literal 1056 zcmeAS@N?(olHy`uVBq!ia0vp^Za^Hs!3-oP*MBwuQjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`odSG9T#wB7|73rqsF19)M__1NrjD+~|L1zfrjZVI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~o(NvW7cTl{@>Xm|I zyG}$Q(IqPF@4e^*a&q#l9bd6YYbDwyDmJUHwt3xWxe5%?6@O1mZ1(vzYXQhEC^jKs z{?uDmuEtpVV`nd2FGUSNp+4YEc= UZBHo7E&u=k07*qoM6N<$f(J{-uK)l5 diff --git a/Items/SummonItems/TerminusGlow.png b/Items/SummonItems/TerminusGlow.png new file mode 100644 index 0000000000000000000000000000000000000000..67ce074418b0dae3459ca155d307359d965f896b GIT binary patch literal 673 zcmeAS@N?(olHy`uVBq!ia0vp^Za^Hs!3-oP*MBwuQjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`g#vs+T#wB7|73sV|L1y7`W62F{|^*CE~fecNU@a!`2_<-fMT2XFWCrK(-+x6N4a-jsoJ$b{4RB z4v-B3pUM~+UI2XwqtR_;U;s)^U}se&Heg%;F&AVf>jH>b(|~LcU;>)V1XdYj zX#r$Gbr~9ff{!8QZQ?J^7pryyLsHh$#W5tp{p~bIp~DIsuF5xl$M1BOTwP~SsF?RC zdI{S@U&D(hzg9lkWso$}bLPo|4No(UEol)veX-}}a>YX(Pv=TKn={j}>&+#Br+@BT z=Bh82E zUlh*zHLKG}rRwU8{hr~OTrb;m4(w9x44Ndk`P`Hh=Q#dGZ?TlS-?N?oQ to start or end the Boss Rush } YharonEgg: { diff --git a/Projectiles/Typeless/TerminusHoldout.cs b/Projectiles/Typeless/TerminusHoldout.cs index c444e4d74e..52a48fc9ba 100644 --- a/Projectiles/Typeless/TerminusHoldout.cs +++ b/Projectiles/Typeless/TerminusHoldout.cs @@ -28,8 +28,8 @@ namespace CalamityMod.Projectiles.Typeless public override void SetDefaults() { - Projectile.width = 50; - Projectile.height = 50; + Projectile.width = 70; + Projectile.height = 80; Projectile.aiStyle = -1; Projectile.ignoreWater = true; Projectile.tileCollide = false; @@ -130,6 +130,8 @@ namespace CalamityMod.Projectiles.Typeless int dustCount = (int)Math.Round(MathHelper.SmoothStep(1f, 5f, Time / Lifetime)); float outwardness = MathHelper.SmoothStep(40f, 150f, Time / Lifetime); float dustScale = MathHelper.Lerp(1.15f, 1.725f, Time / Lifetime); + float colorTime = Time / Lifetime * Main.rand.NextFloat(0.65f, 1f); + for (int i = 0; i < dustCount; i++) { Vector2 spawnPosition = Projectile.Center + Main.rand.NextVector2Unit() * outwardness * Main.rand.NextFloat(0.75f, 1.1f); @@ -138,7 +140,7 @@ namespace CalamityMod.Projectiles.Typeless Dust paleMagic = Dust.NewDustPerfect(spawnPosition, DustID.PortalBoltTrail); paleMagic.velocity = dustVelocity; paleMagic.scale = dustScale * Main.rand.NextFloat(0.75f, 1.15f); - paleMagic.color = Color.Lerp(Color.LightCoral, Color.White, Time / Lifetime * Main.rand.NextFloat(0.65f, 1f)); + paleMagic.color = Main.zenithWorld ? Color.Lerp(Color.LightCoral, Color.White, colorTime) : Color.Lerp(Color.Violet, Color.Goldenrod, colorTime); paleMagic.noGravity = true; paleMagic.noLight = true; } @@ -169,8 +171,8 @@ namespace CalamityMod.Projectiles.Typeless SpriteEffects direction = Projectile.spriteDirection == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; if (Time >= 150f) { - float outwardness = MathHelper.SmoothStep(1f, 15f, Utils.GetLerpValue(150f, Lifetime - 30f, Time, true)); - Color afterimageColor = Color.Lerp(baseColor, Color.LightCoral, Utils.GetLerpValue(150f, 195f, Time, true)) * 0.225f; + float outwardness = MathHelper.SmoothStep(0f, 12f, Utils.GetLerpValue(150f, Lifetime - 30f, Time, true)); + Color afterimageColor = Color.Lerp(baseColor, Color.PaleGoldenrod, Utils.GetLerpValue(150f, 195f, Time, true)) * 0.225f; afterimageColor.A = 0; for (int i = 0; i < 10; i++) @@ -179,9 +181,34 @@ namespace CalamityMod.Projectiles.Typeless Main.EntitySpriteDraw(texture, baseDrawPosition + drawOffset, null, afterimageColor, 0f, origin, Projectile.scale, direction, 0); } } - Main.EntitySpriteDraw(texture, baseDrawPosition, null, baseColor, 0f, origin, Projectile.scale, direction, 0); + Main.EntitySpriteDraw(texture, baseDrawPosition, null, baseColor, 0f, origin, Projectile.scale, direction, 0); return false; } + + public override void PostDraw(Color lightColor) + { + if (Main.zenithWorld) + return; + + Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/TerminusGlow").Value; + Vector2 baseDrawPosition = Projectile.Center - Main.screenPosition; + Vector2 origin = texture.Size() * 0.5f; + SpriteEffects direction = Projectile.spriteDirection == 1 ? SpriteEffects.None : SpriteEffects.FlipHorizontally; + + if (Time >= 75f) + { + float outwardness = MathHelper.SmoothStep(0f, 4f, Utils.GetLerpValue(75f, Lifetime - 30f, Time, true)); + + for (int i = 0; i < 3; i++) + { + Vector2 drawOffset = (MathHelper.TwoPi * i / 4f + Main.GlobalTimeWrappedHourly * 4.4f).ToRotationVector2() * outwardness; + + Main.EntitySpriteDraw(texture, baseDrawPosition + drawOffset, null, new Color(56, 12, 115, 0), 0f, origin, Projectile.scale, direction, 0); + } + } + + Main.EntitySpriteDraw(texture, baseDrawPosition, null, Color.White, 0f, origin, Projectile.scale, direction, 0); + } } }