From ea481ce4741927bc490654813b2efe0796de5824 Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Thu, 23 Apr 2026 12:31:56 -0500 Subject: [PATCH] see commit description - Crushing Ego 1.2x to 1.3x dealt, but 1.15x to 1.2x taken - Faded Idolatry now reduces minion slot cost from 5 to 4 - Shellfish now checks for SuperArmor property, is marked as a tag buff, and no longer sets immunity (means it now dynamically supports changing super armor, and supports crossmod better) - Shellfish 75 -> 85 DPS - Fixed many multi-slot summons having redundant tooltips saying how many slots they costed - Fixed Ares Exoskeleton not marking itself as costing 3 slots --- Buffs/DamageOverTime/ShellfishClaps.cs | 12 ++++++-- CalPlayer/CalamityPlayerHitHurt.cs | 4 +-- CalPlayer/CalamityPlayerMiscEffects.cs | 5 +--- Items/CalamityGlobalItemTooltip.cs | 5 +++- Items/Weapons/Summon/AresExoskeleton.cs | 5 ++++ .../Mods.CalamityMod.Items.Accessories.hjson | 4 +-- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 28 ++++++------------- Projectiles/Summon/FieryDraconid.cs | 11 +++++++- Projectiles/Summon/Shellfish.cs | 1 - 9 files changed, 41 insertions(+), 34 deletions(-) diff --git a/Buffs/DamageOverTime/ShellfishClaps.cs b/Buffs/DamageOverTime/ShellfishClaps.cs index c70408473c..45797d83fe 100644 --- a/Buffs/DamageOverTime/ShellfishClaps.cs +++ b/Buffs/DamageOverTime/ShellfishClaps.cs @@ -1,7 +1,9 @@ -using CalamityMod.Balancing; +using System; +using CalamityMod.Balancing; using CalamityMod.DataStructures; using CalamityMod.Projectiles.Summon; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Buffs.DamageOverTime @@ -10,11 +12,14 @@ namespace CalamityMod.Buffs.DamageOverTime { public static DebuffData debuffData = new DebuffData() { - EnemyLostRegen = 150, //Damage per shellfish + EnemyLostRegen = 170, //Damage per shellfish NPCLifeRegenMethod = ShellfishStacking }; public static void ShellfishStacking(NPC npc, int buffType, ref int buffIndex, ref int damage) { + if (npc.SuperArmor) + return; + int projectileCount = 0; int owner = 255; foreach (Projectile p in Main.ActiveProjectiles) @@ -38,7 +43,7 @@ namespace CalamityMod.Buffs.DamageOverTime if (CalamityUtils.ShouldTriggerSummonPenalty(Main.player[owner], heldItem)) totalDamage = (int)(totalDamage * BalancingConstants.SummonerCrossClassNerf); - int totalDisplayedDamage = totalDamage / 5; + int totalDisplayedDamage = (int)Math.Max(totalDamage * debuffData.MultiplierDamageTickSize, debuffData.MinimumDamageTickSize); npc.Calamity().ApplyDPSDebuff(projectileCount * totalDamage, projectileCount * totalDisplayedDamage, ref npc.lifeRegen, ref damage); } public override void SetStaticDefaults() @@ -47,6 +52,7 @@ namespace CalamityMod.Buffs.DamageOverTime Main.pvpBuff[Type] = true; Main.buffNoSave[Type] = true; BuffDatasets.DebuffDataset[Type] = debuffData; + BuffID.Sets.IsATagBuff[Type] = true; } public override void Update(NPC npc, ref int buffIndex) diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 696a0eaee5..0c6d477f4b 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -1636,8 +1636,8 @@ namespace CalamityMod.CalPlayer #region Player Incoming Damage Multiplier (Increases) double damageMult = 1D; - if (crushingEgo) // Dimensional Soul Artifact increases incoming damage by 15%. - damageMult += 0.15; + if (crushingEgo) + damageMult += 0.2; if (enraged) // Demonshade Enrage damageMult += DemonshadeHelm.MultDamageTakenBoost; diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 323091fbf1..e7846913a8 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3961,9 +3961,6 @@ namespace CalamityMod.CalPlayer Player.npcTypeNoAggro[ModContent.NPCType()] = true; } - if (fadedIdolatry && Player.FindBuffIndex(ModContent.BuffType()) != -1) - Player.maxMinions += Player.ownedProjectileCounts[ModContent.ProjectileType()]; - if (pSoulArtifact) { if (Player.whoAmI == Main.myPlayer) @@ -4397,7 +4394,7 @@ namespace CalamityMod.CalPlayer // Add any multiplicative damage bonuses here float multiplicativeDamage = 1; if (crushingEgo) - multiplicativeDamage += 0.2f; + multiplicativeDamage += 0.3f; if (WarbanneroftheRighteous) multiplicativeDamage += warbannerDamageMult; if (multiplicativeDamage != 1) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 60d2b7438a..ee62c4b95a 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -173,7 +173,10 @@ namespace CalamityMod.Items //Add "Uses X Minion Slots right above "Uses X Mana" if (ItemID.Sets.StaffMinionSlotsRequired[item.type] > 1 || ContentSamples.ProjectilesByType[item.shoot].minionSlots > 0) { - tooltips.Insert(tooltips.FindIndex(0, (x) => x.Name == "Knockback") + 1, new(Mod, "Minions", CalamityUtils.GetText(ItemID.Sets.StaffMinionSlotsRequired[item.type] > 1 ? "Common.MinionSlotCost" : "Common.MinionSlotCostSingle").Format(ItemID.Sets.StaffMinionSlotsRequired[item.type]))); + float cost = ItemID.Sets.StaffMinionSlotsRequired[item.type]; + if (item.type == ModContent.ItemType() && Main.LocalPlayer.Calamity().fadedIdolatry) + cost--; + tooltips.Insert(tooltips.FindIndex(0, (x) => x.Name == "Knockback") + 1, new(Mod, "Minions", CalamityUtils.GetText(cost > 1 ? "Common.MinionSlotCost" : "Common.MinionSlotCostSingle").Format(cost))); } diff --git a/Items/Weapons/Summon/AresExoskeleton.cs b/Items/Weapons/Summon/AresExoskeleton.cs index 309102e5a2..dee0622c01 100644 --- a/Items/Weapons/Summon/AresExoskeleton.cs +++ b/Items/Weapons/Summon/AresExoskeleton.cs @@ -66,6 +66,11 @@ namespace CalamityMod.Items.Weapons.Summon EquipLoader.AddEquipTexture(Mod, $"{Texture}_{EquipType.Body}", EquipType.Body, this); } + public override void SetStaticDefaults() + { + ItemID.Sets.StaffMinionSlotsRequired[Type] = 3; + } + public override void SetDefaults() { Item.width = Item.height = 36; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index eeb0ffc7cd..4e9ba6b01c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -251,7 +251,7 @@ FadedIdolatry: { DisplayName: Faded Idolatry Tooltip: ''' - For each Fiery Draconid you have summoned, you gain 1 minion slot + Summoned [i:CalamityMod/YharonsKindleStaff] Fiery Draconid cost one less minion slot [c/ffe100:'Once everything has crumbled to dust, what will be left of the world you created?'] ''' } @@ -592,7 +592,7 @@ CrushingEgo: { DisplayName: Crushing Ego Tooltip: ''' - Multiplies all damage by 1.2x, but at the cost of taking 15% increased damage + Multiplies all damage by 1.3x, but at the cost of taking 20% increased damage [c/ff00ff:'Don the mask of arrogance, and dance by your lonesome. Once the ball has gone quiet, you'll be the last man standing.'] ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index d9d34f5463..ff140ef3a8 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -48,7 +48,6 @@ AresExoskeleton: { Creates a panel with four slots and four choices above it: Plasma, Tesla, Laser, and Gauss Clicking one of the choices and then clicking one of the slots summons a cannon of that type Clicking on a slot that's already occupied destroys its associated cannon and clears the slot - Cannons take 3 minion slots each ''' } @@ -206,7 +205,7 @@ CosmicImmaterializer: { ''' Summons a cosmic energy spiral to fight for you The orb will fire swarms of homing energy bolts that cause [cbuff:CalamityMod/MiracleBlight] - Requires 10 minion slots to use and there can only be one energy spiral + There can only be one energy spiral ''' } @@ -227,7 +226,6 @@ Cosmilamp: { Tooltip: ''' Summons a cosmic lantern above your head to fight for you - Each lantern takes up 2 minion slots ''' } @@ -305,7 +303,6 @@ DragonbloodDisgorger: { Summons a skeletal dragon and her two children Baby spits burst into blood orbs upon hitting an enemy Picking up these blood orbs reduces the duration of [cbuffplr:PotionSickness] - Requires 6 minion slots to be summoned There can only be one family at a time ''' } @@ -338,8 +335,7 @@ Endogenesis: { The first mode makes it shoot sweeping lasers aimed at the enemy The second mode sacrifices its limbs to shoot out homing projectiles The third mode allows it to aggressively tackle its enemies - The fourth mode makes the limbs function as endothermic flamethrowers - Requires 10 minion slots to be summoned + The fourth mode makes the limbs function as endothermic flamethrowers There can only be one construct at a time [c/B0FBFF:'Ice puns not included'] ''' @@ -359,7 +355,6 @@ EntropysVigil: { Tooltip: ''' Summons a mini Calamitas Clone and her brothers to protect you - One minion trio takes two minion slots ''' } @@ -402,7 +397,6 @@ FlowersOfMortality: { Tooltip: ''' Summons five rainbow flowers over your head that inflict [cbuff:CalamityMod/ElementalMix] - The combined flowers consume three minion slots ''' } @@ -512,7 +506,7 @@ InfectedRemote: { Tooltip: ''' Summons a humanoid-hybrid Plaguebringer, codenamed 'Virili', to aid you in battle - Virili requires 3 minion slots to summon, and can only be summoned once + Virili can only be summoned once Virili uses a variety of attacks which she cycles through on a timer All attacks spread the [cbuff:CalamityMod/Plague], as was her original design intention 'There's a single label on the back: @@ -524,7 +518,7 @@ KingofConstellationsTenryu: { DisplayName: King of Constellations, Tenryū Tooltip: ''' - Uses 4 minion slots to summon a pair of celestial dragons to fight for you + Summons a pair of celestial dragons to fight for you There can only be one pair of dragons at a time 'The ones who will devour the Unmoving Star' ''' @@ -539,7 +533,6 @@ LiliesOfFinality: { DisplayName: Lilies of Finality Tooltip: ''' - Requires 2 minion slots to use Can only be summoned once 'Wake up' ''' @@ -553,7 +546,7 @@ Metastasis: { While the Sepulcher is active, brimstone hearts will begin to appear and orbit you When too many hearts are present, it will interrupt attacking to attack the hearts instead This happens more frequently depending on how many hearts are present - Requires 4 minion slots to use and can only be summoned once + Can only be summoned once ''' Calamitas: ''' @@ -589,7 +582,6 @@ MutatedTruffle: { ''' Summons a younger fishron to irradiate your foes The fishron will cycle between charging, projectiles, and a typhoon - Requires 3 minion slots to be used There can only be one minion ''' } @@ -610,7 +602,7 @@ Perdition: { {$CommonItemTooltip.Sentry} Summons a beacon at the position of the mouse When a target is manually selected via it releases torrents of souls from below onto the target - Requires one sentry slot to summon, and only one beacon may exist at a time + Only one beacon may exist at a time ''' } @@ -619,7 +611,7 @@ PlantationStaff: { Tooltip: ''' Summons a miniature Plantera to devastate enemies with floral fury - Occupies 3 minion slots and there can only be one Mini Plantera at a time + There can only be one Mini Plantera at a time ''' } @@ -706,7 +698,6 @@ ShellfishStaff: { Tooltip: ''' Summons a shellfish to latch onto enemies and inflict [cbuff:CalamityMod/ShellfishClaps] - Each shellfish takes 2 minion slots ''' } @@ -814,7 +805,7 @@ TemporalUmbrella: { - A cyan umbrella to beat down your foes with grace - A lavender rifle to snipe those who stand in your way Best of all, you get to wear a top hat - Requires 5 minion slots to use and there can only be one set of tools at a time + There can only be one set of tools at a time 'Surprisingly sturdy, I reckon this could defeat the Mafia in a single blow' ''' } @@ -913,7 +904,6 @@ WarloksMoonFist: { Tooltip: ''' Summons a celestial fist to punch enemies for you - Requires 4 minion slots to use ''' } @@ -922,7 +912,6 @@ WitherBlossomsStaff: { Tooltip: ''' Summons four decaying [cbuff:CalamityMod/Plague] flowers over your head - The combined flowers consume two minion slots ''' } @@ -943,6 +932,5 @@ YharonsKindleStaff: { Tooltip: ''' Summons a fiery draconid to fight for you - Requires 5 minion slots to use ''' } diff --git a/Projectiles/Summon/FieryDraconid.cs b/Projectiles/Summon/FieryDraconid.cs index 2574c58132..ed411b6930 100644 --- a/Projectiles/Summon/FieryDraconid.cs +++ b/Projectiles/Summon/FieryDraconid.cs @@ -37,7 +37,10 @@ namespace CalamityMod.Projectiles.Summon Projectile.ignoreWater = true; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 9; - Projectile.minionSlots = 5f; + if (!Main.gameMenu && Main.player[Projectile.owner].Calamity().fadedIdolatry) + Projectile.minionSlots = 4f; + else + Projectile.minionSlots = 5f; Projectile.timeLeft = 90000; Projectile.penetrate = -1; Projectile.tileCollide = false; @@ -64,6 +67,12 @@ namespace CalamityMod.Projectiles.Summon // Perform minion checks. PerformMinionChecks(); + //Update slots to match Faded Idolatry equip state + if (Main.player[Projectile.owner].Calamity().fadedIdolatry) + Projectile.minionSlots = 4f; + else + Projectile.minionSlots = 5f; + // Handle frame logic. if (Projectile.FinalExtraUpdate()) Projectile.frameCounter++; diff --git a/Projectiles/Summon/Shellfish.cs b/Projectiles/Summon/Shellfish.cs index be18d29396..3e3ef793e6 100644 --- a/Projectiles/Summon/Shellfish.cs +++ b/Projectiles/Summon/Shellfish.cs @@ -428,7 +428,6 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.buffImmune[ModContent.BuffType()] = target.Calamity().DR >= 0.99f; target.AddBuff(ModContent.BuffType(), 600000); }