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
This commit is contained in:
doze-zoze committed 2026-04-23 12:31:56 -05:00
1 parent f05daf409c
commit ea481ce474
9 files changed
+41 -34

No files matched your search

+9 -3
View File
@@ -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)
+2 -2
View File
@@ -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;
+1 -4
View File
@@ -3961,9 +3961,6 @@ namespace CalamityMod.CalPlayer
Player.npcTypeNoAggro[ModContent.NPCType<GammaSlime>()] = true;
}
if (fadedIdolatry && Player.FindBuffIndex(ModContent.BuffType<FieryDraconidBuff>()) != -1)
Player.maxMinions += Player.ownedProjectileCounts[ModContent.ProjectileType<FieryDraconid>()];
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)
+4 -1
View File
@@ -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<YharonsKindleStaff>() && 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)));
}
+5
View File
@@ -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;
@@ -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.']
'''
}
@@ -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 <right> 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
'''
}
+10 -1
View File
@@ -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++;
-1
View File
@@ -428,7 +428,6 @@ namespace CalamityMod.Projectiles.Summon
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.buffImmune[ModContent.BuffType<ShellfishClaps>()] = target.Calamity().DR >= 0.99f;
target.AddBuff(ModContent.BuffType<ShellfishClaps>(), 600000);
}