misc whip balancing

- Lowered all flat summon tags
- gave cnidarian 2 flat summon tag damage
- made firecracker force a crit instead of mult. this allows it to work with crit accessories for more interesting synergies while having the same damage as before
This commit is contained in:
doze-zoze authored and Cameron Ewell committed 2025-12-23 20:59:04 -05:00
1 parent baa145e5cb
commit 693e44d464
5 files changed
+47 -18

No files matched your search

@@ -0,0 +1,18 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Summon.Whips
{
public class CnidarianSummonTagBuff : ModBuff
{
public override string Texture => "CalamityMod/Buffs/Summon/Whips/SentinalLash";
public override void SetStaticDefaults()
{
BuffID.Sets.IsATagBuff[Type] = true;
Main.debuff[Type] = true;
Main.buffNoSave[Type] = true;
}
}
}
+8 -18
View File
@@ -120,14 +120,6 @@ namespace CalamityMod.DataStructures
{
}
/// <summary>
/// Due to how Firecracker works, this allows it to work with crit accessories.
/// </summary>
public static void FirecrackerModifyHit(Projectile proj, NPC npc, ref NPC.HitModifiers modifiers, ref float tagDamageMult, ref float critChance)
{
modifiers.ScalingBonusDamage += (Firecracker.MultiplicativeTagDamage + Firecracker.UnlistedMultiplicativeTagDamage) * tagDamageMult;
modifiers.CritDamage += Firecracker.TagCritDamage;
}
/// <summary>
/// This is replaced by custom tag on hit effects. Does nothing.
/// </summary>
public static void BlankOnHit(NPC npc, Projectile projectile, NPC.HitInfo hit, int damagedone) { }
@@ -136,35 +128,33 @@ namespace CalamityMod.DataStructures
#region Vanilla whip stats
public static SummonTag LeatherWhip = new SummonTag(ItemID.BlandWhip)
{
FlatTagDamage = 4,
FlatTagDamage = 2,
UnlistedTagDamage = -4 //Negative value cancels out vanilla tag damage
};
public static SummonTag Snapthorn = new SummonTag(ItemID.ThornWhip)
{
FlatTagDamage = 4,
FlatTagDamage = 1,
UnlistedTagDamage = -6 //Negative value cancels out vanilla tag damage
};
public static SummonTag SpinalTap = new SummonTag(ItemID.BoneWhip)
{
FlatTagDamage = 5,
FlatTagDamage = 4,
UnlistedTagDamage = -7 //Negative value cancels out vanilla tag damage
};
public static SummonTag Firecracker = new SummonTag(ItemID.FireWhip)
{
MultiplicativeTagDamage = 1f,
TagCritDamage = -1f,
TagModifyHitEffects = FirecrackerModifyHit,
TagCritChance = 1f, //Since we make firecracker do 2x damage, I make this apply as a crit for the ability to proc crit accessories and for visual style points
UnlistedMultiplicativeTagDamage = -1.75f, //Cancels out the vanilla firecracker tag damage
AutoDrawTooltip = false
};
public static SummonTag CoolWhip = new SummonTag(ItemID.CoolWhip)
{
FlatTagDamage = 8,
FlatTagDamage = 6,
UnlistedTagDamage = -6 //Negative value cancels out vanilla tag damage
};
public static SummonTag Durendal = new SummonTag(ItemID.SwordWhip)
{
FlatTagDamage = 5,
FlatTagDamage = 4,
TagCritChance = 0.05f,
UnlistedTagDamage = -9 //Negative value cancels out vanilla tag damage
};
@@ -175,13 +165,13 @@ namespace CalamityMod.DataStructures
};
public static SummonTag DarkHarvest = new SummonTag(ItemID.ScytheWhip)
{
FlatTagDamage = 14,
FlatTagDamage = 10,
UnlistedTagDamage = -10, //Negative value cancels out vanilla tag damage
//This has a unique on hit effect from vanilla.
};
public static SummonTag Kaleidoscope = new SummonTag(ItemID.RainbowWhip)
{
FlatTagDamage = 10,
FlatTagDamage = 8,
TagCritChance = 0.10f,
UnlistedTagDamage = -20 //Negative value cancels out vanilla tag damage
};
+14
View File
@@ -1,6 +1,9 @@
using System.Linq;
using CalamityMod.Buffs.Summon.Whips;
using CalamityMod.DataStructures;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Summon;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
@@ -15,6 +18,17 @@ namespace CalamityMod.Items.Weapons.Summon
public new string LocalizationCategory => "Items.Weapons.Summon";
public override string Texture => "CalamityMod/Items/Weapons/Summon/CnidarianFishingRod";
public static SummonTag summonTag = new()
{
FlatTagDamage = 2
};
public override void SetStaticDefaults()
{
summonTag.TagItem = Type;
CalamityBuffSets.SummonTagDebuff.Add(BuffType<CnidarianSummonTagBuff>(), summonTag);
}
public override void SetDefaults()
{
Item.width = 30;
@@ -1672,3 +1672,8 @@ SeaKingsAssurance: {
DisplayName: Sea King's Assurance
Description: If you're seeing this, something assuredly went horribly wrong
}
CnidarianSummonTagBuff: {
DisplayName: Cnidarian Summon Tag Buff
Description: you are not seeing this.
}
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using CalamityMod.Buffs.Summon.Whips;
using CalamityMod.DataStructures;
using CalamityMod.Graphics.Primitives;
using CalamityMod.Particles;
@@ -211,6 +212,7 @@ namespace CalamityMod.Projectiles.Summon
{
SoundEngine.PlaySound(SlapSound with { Volume = SlapSound.Volume * centrifugalForce + 0.8f }, target.position);
Owner.MinionAttackTargetNPC = target.whoAmI;
target.AddBuff(BuffType<CnidarianSummonTagBuff>(), 240);
}
}