Merge branch '1.4.4' into held-proj-pierce-exempt

This commit is contained in:
CongratsIsTrash committed 2026-04-02 16:00:42 -04:00
commit b7c54dad6d
176 files changed
+2267 -1323

No files matched your search

+4 -2
View File
@@ -156,11 +156,13 @@ namespace CalamityMod.Buffs
}
}
if (type == BuffID.Frozen)
{
npc.Calamity().frozen = true;
}
if (type == BuffID.Webbed)
{
npc.Calamity().webbed = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
if (type == BuffID.Electrified)
{
+15 -4
View File
@@ -1,4 +1,5 @@
using CalamityMod.DataStructures;
using CalamityMod.Projectiles.Summon;
using CalamityMod.Systems.Collections;
using Terraria;
using Terraria.ModLoader;
@@ -17,8 +18,17 @@ namespace CalamityMod.Buffs.DamageOverTime
public static float ViridVanguardPoisonMultiplier => 2;
public static void SagePoisonPower(NPC npc, int buffType, ref int buffIndex, ref int damage)
{
// The base DoT is multiplied by the amount of Viral Sprouts you have when applied
// See SageNeedle.cs for details
int viralCount = 0;
int viridCount = 0;
foreach (var item in Main.ActiveProjectiles)
{
if (item.type == ModContent.ProjectileType<SageSpirit>())
viralCount++;
if (item.type == ModContent.ProjectileType<ViridVanguardBlade>())
viridCount++;
}
if ((viralCount + viridCount) <= 0)
return;
//Reduce power of weakness/resistances but leave sickness debuff boosters at full power
//We first need to apply Irradiated as that isn't included in SicknessDebuffMultiplier due to needing to dynamically update if Irradiated is applied
@@ -39,8 +49,9 @@ namespace CalamityMod.Buffs.DamageOverTime
multiplier *= NewResistanceEffectiveness;
//Apply the DOT
int baseSagePoisonDoTValue = (int)multiplier.ApplyTo(npc.Calamity().sagePoisonDamage);
npc.Calamity().ApplyDPSDebuff(baseSagePoisonDoTValue, baseSagePoisonDoTValue / 5, ref npc.lifeRegen, ref damage);
float SagePoisonRegen = (viralCount + ViridVanguardPoisonMultiplier * viridCount) * debuffData.EnemyLostRegen;
int totalDoT = (int)multiplier.ApplyTo(SagePoisonRegen);
npc.Calamity().ApplyDPSDebuff(totalDoT, totalDoT/(2*(viridCount+viralCount)), ref npc.lifeRegen, ref damage);
}
public override void SetStaticDefaults()
{
@@ -41,9 +41,6 @@ namespace CalamityMod.Buffs.DamageOverTime
cgn.trueVulnerabilityHex = true;
if (cgn.VulnerabilityHexFireDrawer != null)
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + npc.buffTime[buffIndex];
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && cgn.debuffResistanceTimer <= 0)
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
internal static void DrawEffects(NPC npc, ref Color drawColor)
-2
View File
@@ -34,8 +34,6 @@ namespace CalamityMod.Buffs.DamageOverTime
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().vaporfied = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin +npc.buffTime[buffIndex];
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
-4
View File
@@ -46,10 +46,6 @@ namespace CalamityMod.Buffs.DamageOverTime
// Set the remaining time of the fire drawer to be exactly right.
if (cgn.VulnerabilityHexFireDrawer != null)
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + npc.buffTime[buffIndex];
// Apply immunity timer.
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && cgn.debuffResistanceTimer <= 0)
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + +npc.buffTime[buffIndex];
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
{
-2
View File
@@ -26,8 +26,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().eutrophication = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
-2
View File
@@ -26,8 +26,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().galvanicCorrosion = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
public override void Update(Player player, ref int buffIndex)
-28
View File
@@ -1,28 +0,0 @@
using CalamityMod.NPCs;
using CalamityMod.Systems.Collections;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class GlacialState : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().glacialState = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

-2
View File
@@ -17,8 +17,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().temporalSadness = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
}
}
-2
View File
@@ -19,8 +19,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().timeDistortion = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
}
}
+48 -3
View File
@@ -951,8 +951,9 @@ namespace CalamityMod.CalPlayer
public bool v8Engine = false;
public bool v8000Engine = false;
public bool v8EngineFXPlayed = false;
public bool procDodgeEffects = true;
public bool procDodgeEffects = false;
public bool nanotech = false;
public int nanotechHitCooldown = 0;
public bool deadshotBrooch = false;
public bool shadowMinions = false;
public bool holyMinions = false;
@@ -973,6 +974,9 @@ namespace CalamityMod.CalPlayer
public bool community = false;
public bool shatteredCommunity = false;
public bool fleshTotem = false;
public bool fleshTotemMinion = false;
public bool fleshTotemVisual = false;
public int fleshTotemManaStorage = 0;
public bool bloodPact = false;
public bool bloodflareCore = false;
public int bloodflareCoreRemainingHealOverTime = 0;
@@ -1094,7 +1098,9 @@ namespace CalamityMod.CalPlayer
public bool eclipseMirror = false;
public bool featherCrown = false;
public bool moonCrown = false;
public int rogueCrownCooldown = 0;
public bool mageCrownVisibility = false;
public int mageCrownTimer = 0;
public int mageCrownCount = 0;
public bool dragonScales = false;
public bool gloveOfPrecision = false;
public bool gloveOfRecklessness = false;
@@ -2407,6 +2413,7 @@ namespace CalamityMod.CalPlayer
v8Engine = false;
v8000Engine = false;
nanotech = false;
nanotechHitCooldown = 0;
deadshotBrooch = false;
tesla = false;
teslaVisuals = true;
@@ -2442,6 +2449,8 @@ namespace CalamityMod.CalPlayer
stressPills = false;
laudanum = false;
fleshTotem = false;
fleshTotemVisual = false;
fleshTotemMinion = false;
bloodPact = false;
bloodflareCore = false;
chaliceOfTheBloodGod = false;
@@ -2627,6 +2636,7 @@ namespace CalamityMod.CalPlayer
eclipseMirror = false;
featherCrown = false;
moonCrown = false;
mageCrownVisibility = false;
dragonScales = false;
gloveOfPrecision = false;
gloveOfRecklessness = false;
@@ -3121,7 +3131,7 @@ namespace CalamityMod.CalPlayer
andromedaCripple = 0;
theBeeCooldown = 0;
scuttlerCooldown = 0;
rogueCrownCooldown = 0;
mageCrownTimer = 0;
wingProjectileCooldown = 0;
hallowedRuneCooldown = 0;
sulphurBubbleCooldown = 0;
@@ -4844,6 +4854,29 @@ namespace CalamityMod.CalPlayer
}
#endregion
#region PreItemChecks
public override bool PreItemCheck()
{
//For use when the player runs out of mana. Currently only used for Feather and Moonstone Crown
if (Player.HeldItem.mana > 0 && Player.controlUseItem && Player.itemAnimation == 0)
{
if (!Player.CheckMana(Player.HeldItem, -1, false, true))
{
if (moonCrown || featherCrown)
{
if (mageCrownCount > 0)
{
mageCrownCount = 0;
mageCrownTimer = 300;
}
if (mageCrownCount < 0) mageCrownCount = 0;
}
}
}
return true;
}
#endregion
#region PostUpdateEquips
public override void PostUpdateEquips()
{
@@ -6294,6 +6327,18 @@ namespace CalamityMod.CalPlayer
life.noGravity = true;
}
}
if (modPlayer.fleshTotem)
{
if (Main.myPlayer == Player.whoAmI)
{
fleshTotemManaStorage += manaConsumed;
if (fleshTotemManaStorage >= FleshTotem.manaStorageMax)
{
fleshTotemManaStorage = FleshTotem.manaStorageMax;
}
}
}
}
#endregion
+29 -8
View File
@@ -41,6 +41,7 @@ using CalamityMod.NPCs.Providence;
using CalamityMod.NPCs.SupremeCalamitas;
using CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
@@ -790,10 +791,6 @@ namespace CalamityMod.CalPlayer
// The amount of damage that will be dealt is yet to be determined.
//
// Can't have any cooldowns here because dodges grrrrr....
if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && TotalEnergyShielding <= 0)
modifiers.FinalDamage *= 0.5f;
if (tarragonCloak && tarraMelee && !Player.HasCooldown(Cooldowns.TarragonCloak.ID))
modifiers.FinalDamage *= (1f - TarragonHeadMelee.CloakContactDamageReduction);
@@ -1083,10 +1080,9 @@ namespace CalamityMod.CalPlayer
if (!hasIFrames && !Player.creativeGodMode)
nextHitDealsDefenseDamage |= npc.Calamity().canBreakPlayerDefense;
// ModifyHit (Flesh Totem effect happens here) -> Hurt (includes dodges) -> OnHit
// ModifyHit -> Hurt (includes dodges) -> OnHit
// As such, to avoid cooldowns proccing from dodge hits, do it here
if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && hurtInfo.Damage > 0)
Player.AddCooldown(Cooldowns.FleshTotem.ID, CalamityUtils.SecondsToFrames(20));
if (NPC.AnyNPCs(ModContent.NPCType<THELORDE>()))
Player.AddBuff(ModContent.BuffType<NOU>(), 15, true);
@@ -2326,11 +2322,36 @@ namespace CalamityMod.CalPlayer
if (duration > 120)
duration = 120;
npc.AddBuff(ModContent.BuffType<GlacialState>(), (int)duration, false);
npc.AddBuff(BuffID.Frozen, (int)duration, false);
}
}
}
if (fleshTotem && hurtInfo.Damage > 0)
{
SoundStyle Counter = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_Shield_Down");
if (fleshTotemManaStorage >= 100 && fleshTotemVisual)
SoundEngine.PlaySound(Counter with { Volume = 0.75f}, Player.Center);
int lostSoulAmount = fleshTotemManaStorage / 25;
if (Player.ownedProjectileCounts[ModContent.ProjectileType<FleshTotemMinion>()] != 0)
{
for (int i = 0; i < Main.maxProjectiles; i++)
{
Projectile proj = Main.projectile[i];
if (proj.active && proj.owner == Player.whoAmI && proj.type == ModContent.ProjectileType<FleshTotemMinion>())
{
for (int k = 0; k < lostSoulAmount; k++)
{
Projectile.NewProjectile(Player.GetSource_Accessory_OnHurt(FindAccessory<FleshTotem>(), hurtInfo.DamageSource), proj.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.4f, 0.55f), ModContent.ProjectileType<FleshTotemSoul>(), FleshTotem.lostSoulDamage, 0f, Main.myPlayer, 0f, 0f, 3f);
}
break;
}
}
}
fleshTotemManaStorage = 0;
}
// By setting brainOfConfusionItem, these accessories have this code already,
// but doing it again allows for increased duration + The Amalgam's other buffs,
// and also doesn't have random chance (why does Brain of Confusion not guarantee confusion on hit)
+43 -7
View File
@@ -305,7 +305,7 @@ namespace CalamityMod.CalPlayer
}
// First Frame dash effects
bool dashStart = (Player.dashDelay == -1 && ((!HasCustomDash && IsFirstDashFrame) || (HasCustomDash && UsedDash.DashTimeAdjustedForStartup == 1)));
bool dashStart = (Player.Calamity().DashID == DefaultDash.ID && Player.timeSinceLastDashStarted == 1 && Player.dashDelay != 0 ) || (Player.dashDelay == -1 && ((!HasCustomDash && IsFirstDashFrame) || (HasCustomDash && UsedDash.DashTimeAdjustedForStartup == 1)));
int dir = MathF.Sign(Player.velocity.X);
if (dashStart)
@@ -553,7 +553,7 @@ namespace CalamityMod.CalPlayer
// Spawn sand veil when dashing if it does not exist and you do not have the cooldown
if (!(CalamityUtils.AnyProjectiles(ModContent.ProjectileType<SandCloakVeil>()) || Player.HasCooldown(Cooldowns.SandCloak.ID)))
{
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), 13, 2.5f, Player.whoAmI);
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), 10, 2.5f, Player.whoAmI);
SoundEngine.PlaySound(SoundID.Item45, Player.Center);
}
}
@@ -1853,7 +1853,7 @@ namespace CalamityMod.CalPlayer
{
if (numOfEnergy < energyCap)
{
int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(8);
int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(12);
Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType<AmuletEnergy>(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy);
if (numOfEnergy + 1 == energyCap && Player.Calamity().sSpiritAmuletVisual)
{
@@ -2030,6 +2030,42 @@ namespace CalamityMod.CalPlayer
if (Player.velocity.Length() < 6)
hookPullVisuals = 0;
}
if (featherCrown)
{
int MaxSigils = 4; //Starts at 0, so cap is 5
if (mageCrownTimer == 0)
{
if (mageCrownCount <= MaxSigils && Main.myPlayer == Player.whoAmI)
{
mageCrownCount += 1;
float start = 360f / mageCrownCount;
Projectile.NewProjectile(Player.GetSource_Accessory(FindAccessory<FeatherCrown>()), new Vector2((int)(Player.Center.X + (Math.Sin(0 * start) * 300)), (int)(Player.Center.Y + (Math.Cos(0 * start) * 300))), Vector2.Zero, ModContent.ProjectileType<SpectralFeather>(), 0, 0, Player.whoAmI, 0, mageCrownCount);
}
mageCrownTimer = 120;
}
else if (!Player.dead)
{
mageCrownTimer--;
}
}
if (moonCrown)
{
int MaxSigils = 9; //Starts at 0, so cap is 10
if (mageCrownTimer == 0)
{
if (mageCrownCount <= MaxSigils && Main.myPlayer == Player.whoAmI)
{
mageCrownCount += 1;
float start = 360f / mageCrownCount;
Projectile.NewProjectile(Player.GetSource_Accessory(FindAccessory<MoonstoneCrown>()), new Vector2((int)(Player.Center.X + (Math.Sin(0 * start) * 300)), (int)(Player.Center.Y + (Math.Cos(0 * start) * 300))), Vector2.Zero, ModContent.ProjectileType<MoonSigil>(), 0, 0, Player.whoAmI, 0, mageCrownCount);
}
mageCrownTimer = 120;
}
else if (!Player.dead)
{
mageCrownTimer--;
}
}
if (unstableGraniteCore)
{
@@ -2218,8 +2254,8 @@ namespace CalamityMod.CalPlayer
silvaMageCooldown--;
if (scuttlerCooldown > 0)
scuttlerCooldown--;
if (rogueCrownCooldown > 0)
rogueCrownCooldown--;
if (nanotechHitCooldown > 0)
nanotechHitCooldown--;
if (spectralVeilImmunity > 0)
spectralVeilImmunity--;
if (jetPackDash > 0)
@@ -2767,10 +2803,10 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[BuffID.Chilled] = true;
}
// Cosmic Discharge Cosmic Freeze buff, gives surrounding enemies the Glacial State debuff
// Cosmic Discharge Cosmic Freeze buff, gives surrounding enemies the Frozen debuff
if (cFreeze)
{
int buffType = ModContent.BuffType<GlacialState>();
int buffType = BuffID.Frozen;
float freezeDist = 200f;
if (Player.whoAmI == Main.myPlayer)
{
+19 -45
View File
@@ -315,10 +315,6 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffID.Venom, 60);
break;
case ProjectileID.BoneArrow:
target.AddBuff(BuffType<Crumbling>(), 300);
break;
case ProjectileID.NorthPoleWeapon:
target.AddBuff(BuffID.Frostburn, 300);
break;
@@ -761,7 +757,7 @@ namespace CalamityMod.CalPlayer
if (hideOfDeus && hideOfDeusTimer == 0)
{
hideOfDeusTimer = 10;
int bulwarkStarDamage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(320);
int bulwarkStarDamage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(HideofAstrumDeus.StarDamage);
for (int n = 0; n < 3; n++)
CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileType<AstralStar>(), bulwarkStarDamage, 5f, Player.whoAmI);
@@ -1057,10 +1053,9 @@ namespace CalamityMod.CalPlayer
break;
}
}
if (modProj.stealthStrike && rogueCrownCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
if (modProj.stealthStrike && nanotechHitCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
{
bool spawnedFeathers = false;
bool spawnedFlares = false;
if (nanotech)
{
for (int i = 0; i < 3; i++)
@@ -1071,41 +1066,7 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<NanoFlare>(), damage, 3f, proj.owner);
}
}
else if (moonCrown)
{
int lunarFlareDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(MoonstoneCrown.BaseDamage);
float lunarFlareKB = 3f;
for (int i = 0; i < 3; i++)
{
Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50));
Vector2 velocity = (position - source) / 10f;
int flare = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileID.LunarFlare, lunarFlareDamage, lunarFlareKB, proj.owner);
if (flare.WithinBounds(Main.maxProjectiles))
Main.projectile[flare].DamageType = DamageClass.Generic;
}
}
else if (featherCrown)
{
for (int i = 0; i < 3; i++)
{
Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50));
float speedX = (position.X - source.X) / 30f;
float speedY = (position.Y - source.Y) * 8;
Vector2 velocity = new Vector2(speedX, speedY);
int featherDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(25);
int feather = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<StickyFeather>(), featherDamage, 3f, proj.owner);
if (feather.WithinBounds(Main.maxProjectiles))
{
Main.projectile[feather].DamageType = DamageClass.Generic;
Main.projectile[feather].extraUpdates += 3;
}
}
spawnedFeathers = true;
}
rogueCrownCooldown = spawnedFeathers ? 15 : 60;
nanotechHitCooldown = spawnedFlares ? 15 : 60;
}
if (titanHeartSet && modProj.stealthStrike && titanCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
@@ -1220,12 +1181,25 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<AstralInfectionDebuff>(), TitanHeartMask.OnHitDebuffDuration);
}
}
if (magic)
{
if (moonCrown && mageCrownCount == 10)
{
target.AddBuff(BuffType<Nightwither>(), 360);
}
if(featherCrown && mageCrownCount == 5)
{
target.AddBuff(BuffType<StaticDischarge>(), 120);
}
}
if (summon && !whip)
{
if (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs)
if (profanedCrystal && (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs))
{
target.AddBuff(BuffType<HolyFlames>(), 600);
}
else if (pSoulArtifact)
target.AddBuff(BuffType<HolyFlames>(), 300);
target.AddBuff(BuffType<HolyFlames>(), 300);
if (divineBless)
target.AddBuff(BuffType<BanishingFire>(), AngelicAlliance.BanishingFireDuration);
+4
View File
@@ -46,6 +46,10 @@ namespace CalamityMod
[DefaultValue(false)]
public bool Photosensitivity { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool BoCSpriteChange { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool EnableVanillaTextureEdits { get; set; }
-17
View File
@@ -1,17 +0,0 @@
using Microsoft.Xna.Framework;
using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
public class FleshTotem : CooldownHandler
{
public static new string ID => "FleshTotem";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/FleshTotem";
public override Color OutlineColor => new Color(157, 248, 234);
public override Color CooldownStartColor => new Color(111, 169, 241);
public override Color CooldownEndColor => new Color(111, 169, 241);
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

+7
View File
@@ -83,6 +83,13 @@ namespace CalamityMod.Items.Accessories
AddIngredient<AstralBar>(10).
AddTile(TileID.TinkerersWorkbench).
Register();
CreateRecipe().
AddIngredient(ItemID.BeeCloak).
AddIngredient(ItemID.CrossNecklace).
AddIngredient(ItemID.PanicNecklace).
AddIngredient<AstralBar>(10).
AddTile(TileID.TinkerersWorkbench).
Register();
}
}
}
+12 -2
View File
@@ -7,7 +7,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Face)]
public class FeatherCrown : ModItem, ILocalizedModType
public class FeatherCrown : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
@@ -28,12 +28,22 @@ namespace CalamityMod.Items.Accessories
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
}
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player)
{
return incomingItem.type != ModContent.ItemType<MoonstoneCrown>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rogueVelocity += 0.15f;
modPlayer.featherCrown = true;
modPlayer.mageCrownVisibility = !hideVisual;
player.GetDamage<MagicDamageClass>() += (0.02f * modPlayer.mageCrownCount); //2% per feather, up to 10%
player.manaCost -= (0.01f * modPlayer.mageCrownCount); //1% per feather, up to 5%
if (modPlayer.mageCrownCount >= 5) //At 5 feathers, grant 5% crit. Static Discharge infliction is handed in CalPlayerOnHit
{
player.GetCritChance<MagicDamageClass>() += 5;
}
}
public override void AddRecipes()
+22
View File
@@ -1,4 +1,6 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -8,6 +10,10 @@ namespace CalamityMod.Items.Accessories
public class FleshTotem : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int manaStorageMax = 600;
public const int lostSoulDamage = 200;
public override void SetDefaults()
{
Item.width = 26;
@@ -21,6 +27,22 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.fleshTotem = true;
modPlayer.fleshTotemMinion = true;
modPlayer.fleshTotemVisual = !hideVisual;
player.statManaMax2 += 30;
player.GetCritChance<MagicDamageClass>() += 5;
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
if (player.ownedProjectileCounts[ModContent.ProjectileType<FleshTotemMinion>()] < 1)
{
int damage = (int)player.GetTotalDamage<MagicDamageClass>().ApplyTo(lostSoulDamage);
int effigy = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<FleshTotemMinion>(), damage, 2f, Main.myPlayer);
if (Main.projectile.IndexInRange(effigy))
Main.projectile[effigy].originalDamage = lostSoulDamage;
}
}
}
}
}
+17 -5
View File
@@ -7,15 +7,12 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Face)]
public class MoonstoneCrown : ModItem, ILocalizedModType
public class MoonstoneCrown : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
public new string LocalizationCategory => "Items.Accessories";
// Base damage of lunar flares on stealth strikes. Increased by rogue damage stats, but not stealth damage.
internal static int BaseDamage = 75;
public override void SetStaticDefaults()
{
if (!Main.dedServ)
{
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
@@ -31,12 +28,27 @@ namespace CalamityMod.Items.Accessories
Item.rare = ItemRarityID.Purple;
Item.accessory = true;
}
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player)
{
return incomingItem.type != ModContent.ItemType<FeatherCrown>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rogueVelocity += 0.15f;
modPlayer.moonCrown = true;
modPlayer.mageCrownVisibility = !hideVisual;
player.statManaMax2 += 70;
player.GetDamage<MagicDamageClass>() += (0.02f * modPlayer.mageCrownCount); //2% per moon sigil, up to 20%
player.manaCost -= (0.01f * modPlayer.mageCrownCount); //1% per moon sigil, up to 10%
if (modPlayer.mageCrownCount >= 5) //At 5 sigils, grant a mana regen bonus
{
player.manaRegenBonus += 10;
}
if (modPlayer.mageCrownCount >= 10) //At 10 sigils, grant 10% crit. Nightwither infliction is handed in CalPlayerOnHit
{
player.GetCritChance<MagicDamageClass>() += 10;
}
}
public override void AddRecipes()
-1
View File
@@ -35,7 +35,6 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<RogueEmblem>().
AddIngredient<MoonstoneCrown>().
AddIngredient<ElectriciansGlove>().
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
+10 -4
View File
@@ -10,6 +10,8 @@ namespace CalamityMod.Items.Accessories
public class VoidofCalamity : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int BrimstoneFlamesDmg => CalamityUtils.ScaleWithDifficulty(15);
public override void SetDefaults()
{
Item.width = 20;
@@ -19,6 +21,7 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
Item.expert = true;
}
int cooldown = 0;
public override void UpdateAccessory(Player player, bool hideVisual)
{
@@ -28,14 +31,17 @@ namespace CalamityMod.Items.Accessories
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
if (player.immune)
if (player.HasIFrames())
{
if (player.miscCounter % 10 == 0)
if (cooldown <= 0)
{
int damage = (int)player.GetBestClassDamage().ApplyTo(30);
CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<StandingFire>(), damage, 5f, player.whoAmI);
cooldown = 20;
int damage = (int)player.GetBestClassDamage().ApplyTo(BrimstoneFlamesDmg);
for (var i = 0; i < 2; i++)
CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 5.5f, ModContent.ProjectileType<StandingFire>(), damage, 5f, player.whoAmI);
}
}
cooldown--;
}
}
}
+3 -3
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
{
public new string LocalizationCategory => "Items.Accessories";
internal const float MaxBonus = 0.3f;
internal const float MaxDistance = 700f;
internal const float MaxDistance = 720f;
public override void SetStaticDefaults()
{
@@ -110,8 +110,8 @@ namespace CalamityMod.Items.Accessories
NPC closestTarget = player.Center.ClosestNPCAt(MaxDistance * 7); // extra range is to account for bonus range from massive targets
if (closestTarget != null)
{
float generousHitboxWidth = Math.Max(closestTarget.Hitbox.Width / 2f, closestTarget.Hitbox.Height / 2f) + 100; // Adds some room so max bonus isnt when you're ON the hitbox
bonus = Utils.Remap(Utils.Distance(player.Center, closestTarget.Center), MaxDistance + generousHitboxWidth, generousHitboxWidth, 0, MaxBonus, true);
Vector2 pointToCheck = Vector2.Clamp(player.Center, closestTarget.TopLeft, closestTarget.BottomRight);
bonus = Utils.Remap(Utils.Distance(player.Center, pointToCheck), MaxDistance, 80, 0, MaxBonus, true);
}
else
bonus = 0;
+1 -1
View File
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Armor.Auric
//Alternatively, their ModifyTooltips could simply return early if the item ID doesn't match the helmet type.
if (Main.LocalPlayer.Calamity().auricSet)
{
Main.LocalPlayer.armor[0].ModItem.ModifyTooltips(tooltips);
Main.LocalPlayer.armor[0].ModItem?.ModifyTooltips(tooltips);
}
}
+1 -1
View File
@@ -89,7 +89,7 @@ namespace CalamityMod.Items.Armor.Auric
//Alternatively, their ModifyTooltips could simply return early if the item ID doesn't match the helmet type.
if (Main.LocalPlayer.Calamity().auricSet)
{
Main.LocalPlayer.armor[0].ModItem.ModifyTooltips(tooltips);
Main.LocalPlayer.armor[0].ModItem?.ModifyTooltips(tooltips);
}
if (!toggleEnabled)
+12 -1
View File
@@ -615,6 +615,17 @@ namespace CalamityMod.Items
}
}
//Mana Potion interactions
if (item.healMana > 0)
{
//If mana potion used, kill all active Crown projectiles
if ((modPlayer.moonCrown || modPlayer.featherCrown) && modPlayer.mageCrownCount > 0)
{
modPlayer.mageCrownTimer = 300;
modPlayer.mageCrownCount = 0;
}
}
// Staff/Axe of Regrowth growing Calamity grass
if (item.type == ItemID.StaffofRegrowth || item.type == ItemID.AcornAxe)
{
@@ -1461,7 +1472,7 @@ namespace CalamityMod.Items
return false;
}
#endregion
#endregion
#region On Create
private static int cachedForgeID = -1;
+14
View File
@@ -163,6 +163,20 @@ namespace CalamityMod.Items
}
}
//Replace Crit Chance with Crit Damage on applicable tooltips
if (CalamityItemSets.ShowScalingCritDamageTooltip[item.type])
{
float cdmg = 2f + Main.LocalPlayer.Calamity().critDamage + Main.LocalPlayer.GetTotalCritChance(item.DamageType) * 0.02f;
tooltips.FirstOrDefault(x => x.Name == "CritChance")!.Text = CalamityUtils.GetText("Common.CritDamageTootip").Format(cdmg.ToPercent());
}
//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])));
}
// Everything below this line can only apply to modded items. If the item is vanilla, stop here for efficiency.
if (item.type < ItemID.Count)
return;
+328 -331
View File
@@ -30,369 +30,366 @@ namespace CalamityMod.Items
IItemTweak[] trueMelee = Do(TrueMelee);
IItemTweak[] trueMeleeNoSpeed = Do(TrueMeleeNoSpeed);
IItemTweak[] nonConsumableBossSummon = Do(MaxStack(1), NotConsumable);
IItemTweak[] phaseblade = Do(UseTurn, DamageExact(36));
IItemTweak[] phasesaber = Do(DamageExact(132));
IItemTweak[] phaseblade = Do(UseTurn, DamageExact(36)); // VANILLA: 26 DMG
IItemTweak[] phasesaber = Do(DamageExact(132)); // VANILLA: 48 DMG
// SORTING NOTES:
// 1. Sort tweaks by categories first, then sort by the internal name in alphabetical order. Navigate through categories and names using the search function.
// 2. Higher categories hold priority over lower ones (ie. Balancing with price tweaks belong in balancing, rather than price)
// 3. Items with different display names as opposed to internal ones should have comments for display names for ease of access.
// 3. All balancing tweaks should have comments with the vanilla stats for convenience and reference.
// 4. Items whose internal names are vastly different from their actual names should have comments for ease of access.
currentTweaks = new SortedDictionary<int, IItemTweak[]>
{
#region CATEGORY 1: Weapon Balancing
{ ItemID.AdamantiteGlaive, Do(TrueMelee, DamageExact(69), UseExact(7), ShootSpeedExact(18f)) },
{ ItemID.AdamantiteRepeater, Do(UseExact(14)) },
{ ItemID.AdamantiteSword, Do(UseTurn, DamageExact(75), UseExact(7)) },
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) },
{ ItemID.AmethystStaff, Do(ManaExact(2)) },
{ ItemID.Anchor, Do(DamageExact(107), UseExact(30)) },
{ ItemID.AntlionClaw, Do(UseExact(10)) }, // Mandible Blade
{ ItemID.AquaScepter, Do(DamageRatio(0.9f)) }, // Uses ratios due to remix seed
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) },
{ ItemID.BatScepter, Do(DamageExact(50)) },
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(131), UseAnimationExact(40), KnockbackExact(8)) },
{ ItemID.BeeGun, Do(DamageExact(11), ManaExact(4)) },
{ ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) },
{ ItemID.Beenade, Do(DamageExact(11), UseTimeExact(22), ShootSpeedExact(10f)) },
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(38)) },
{ ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120)) },
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) },
{ ItemID.BloodyMachete, Do(DamageExact(24)) },
{ ItemID.Blowgun, Do(DamageExact(40), ShootSpeedExact(15f)) },
{ ItemID.AdamantiteGlaive, Do(TrueMelee, DamageExact(69), UseExact(7), ShootSpeedExact(18f)) }, // VANILLA: 49 DMG, 25 UT, 5 VEL
{ ItemID.AdamantiteRepeater, Do(UseExact(14)) }, // VANILLA: 18 UT
{ ItemID.AdamantiteSword, Do(UseTurn, DamageExact(75), UseExact(7)) }, // VANILLA: 61 DMG, 21 UT
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) }, // VANILLA: 28 UT/UA, 0 RUD
{ ItemID.AmethystStaff, Do(ManaExact(2)) }, // VANILLA: 5 MANA
{ ItemID.Anchor, Do(DamageExact(107), UseExact(30)) }, // VANILLA: 70 DMG, 20 UT
{ ItemID.AntlionClaw, Do(UseExact(10)) }, // Mandible Blade. VANILLA: 18 UT
{ ItemID.AquaScepter, Do(DamageRatio(0.9f)) }, // VANILLA: 27 DMG. Uses ratios due to remix seed
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) }, // VANILLA: 45 DMG, 11 UT
{ ItemID.BatScepter, Do(DamageExact(50)) }, // VANILLA: 45 DMG
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(131), UseAnimationExact(40), KnockbackExact(8)) }, // VANILLA: 52 DMG, 20 UT, 6.5 KB
{ ItemID.BeeGun, Do(DamageExact(11), ManaExact(4)) }, // VANILLA: 9 DMG, 5 MANA
{ ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) }, // VANILLA: 30 DMG
{ ItemID.Beenade, Do(DamageExact(11), UseTimeExact(22), ShootSpeedExact(10f)) }, // VANILLA: 12 DMG, 15 UT, 6 VEL
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(38)) }, // VANILLA: 23 DMG, 23 UT
{ ItemID.Bladetongue, Do(UseTurn, DamageExact(120), UseExact(22)) }, // VANILLA: 55 DMG, 28 UT
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) }, // VANILLA: 58 DMG, 9 MANA
{ ItemID.BloodyMachete, Do(DamageExact(24)) }, // VANILLA: 20 DMG
{ ItemID.Blowgun, Do(DamageExact(40), ShootSpeedExact(15f)) }, // VANILLA: 27 DMG, 13 VEL
{ ItemID.BluePhaseblade, phaseblade },
{ ItemID.BluePhasesaber, phasesaber },
{ ItemID.BoneSword, Do(UseTurn, DamageExact(25)) },
{ ItemID.BookofSkulls, Do(DamageExact(27), ManaExact(13), ShootSpeedExact(5.5f)) },
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom
{ ItemID.Boomstick, Do(DamageExact(11)) },
{ ItemID.BreakerBlade, Do(UseTurn, DamageExact(140)) },
{ ItemID.CandyCornRifle, Do(DamageExact(66)) },
{ ItemID.Cascade, Do(DamageExact(31)) },
{ ItemID.ChainGuillotines, Do(DamageExact(100)) },
{ ItemID.ChainGun, Do(DamageExact(35)) },
{ ItemID.ChainKnife, Do(DamageRatio(1.34f)) }, // Uses ratios due to remix seed
{ ItemID.ChlorophyteClaymore, Do(UseMeleeSpeed, DamageExact(180), UseExact(45), ShootSpeedExact(22f)) },
{ ItemID.ChlorophytePartisan, Do(UseMeleeSpeed, DamageExact(95)) },
{ ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(92), UseExact(10)) },
{ ItemID.ChristmasTreeSword, Do(UseTurn, UseMeleeSpeed, DamageExact(80), UseExact(30)) },
{ ItemID.ClingerStaff, Do(DamageExact(63)) },
{ ItemID.ClockworkAssaultRifle, Do(DamageExact(21)) },
{ ItemID.CobaltNaginata, Do(TrueMelee, DamageExact(55), UseExact(9), ShootSpeedExact(12f)) },
{ ItemID.CobaltRepeater, Do(UseExact(18)) },
{ ItemID.CobaltSword, Do(DamageExact(60), UseExact(9)) },
{ ItemID.Code2, Do(DamageExact(43)) },
{ ItemID.CoinGun, Do(UseExact(12)) },
{ ItemID.CorruptYoyo, Do(DamageExact(20)) }, // Malaise
{ ItemID.CrimsonYoyo, Do(DamageExact(20)) }, // Artery
{ ItemID.CrystalBullet, Do(DamageExact(6)) },
{ ItemID.CrystalDart, Do(DamageExact(20)) },
{ ItemID.CrystalStorm, Do(DamageExact(40)) },
{ ItemID.CrystalVileShard, Do(DamageExact(35)) },
{ ItemID.CursedArrow, Do(DamageExact(14)) },
{ ItemID.CursedDart, Do(DamageExact(25)) },
{ ItemID.Cutlass, Do(UseRatio(0.9f), DamageExact(90)) },
{ ItemID.DaedalusStormbow, Do(DamageExact(30)) },
{ ItemID.DaoofPow, Do(DamageExact(85)) }, // Displays as 170 damage
{ ItemID.DarkLance, Do(TrueMelee, DamageExact(40)) },
{ ItemID.DartRifle, Do(DamageExact(58)) },
{ ItemID.DayBreak, Do(DamageExact(125), UseExact(22)) },
{ ItemID.DD2BetsyBow, Do(DamageExact(42)) }, // Aerial Bane's ridiculous multiplier is removed, so this compensates for that
{ ItemID.DD2SquireBetsySword, Do(UseMeleeSpeed, DamageExact(150)) }, // Flying Dragon
{ ItemID.DeadlySphereStaff, Do(DamageExact(50)) },
{ ItemID.DeathSickle, Do(UseMeleeSpeed, DamageExact(65), ShootSpeedExact(15f)) },
{ ItemID.DemonBow, Do(DamageExact(12)) },
{ ItemID.DemonScythe, Do(DamageExact(28)) },
{ ItemID.DyeTradersScimitar, Do(UseTurn, DamageExact(24)) }, // Exotic Scimitar
{ ItemID.ElfMelter, Do(ShootSpeedDelta(+5f)) },
{ ItemID.EmeraldStaff, Do(DamageExact(27)) },
{ ItemID.EmpressBlade, Do(DamageExact(68)) }, // Terraprisma
{ ItemID.EnchantedBoomerang, Do(DamageExact(24)) },
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) },
{ ItemID.EndlessMusketPouch, Do(DamageExact(8)) },
{ ItemID.Excalibur, Do(TrueMelee, DamageExact(170)) },
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow
{ ItemID.FalconBlade, Do(UseTurn, UseExact(13)) },
{ ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration
{ ItemID.Flamarang, Do(DamageExact(37)) },
{ ItemID.Flamelash, Do(DamageExact(36), ManaExact(18)) },
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) },
{ ItemID.FlowerofFire, Do(ManaExact(7), DamageRatio(0.78f)) }, // Uses ratios due to remix seed
{ ItemID.FlowerofFrost, Do(ManaExact(7), UseExact(22), DamageExact(70), ShootSpeedExact(14)) },
{ ItemID.FlyingKnife, Do(DamageExact(53)) },
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(88)) },
{ ItemID.Gatligator, Do(UseExact(6)) },
{ ItemID.GoldShortsword, Do(TrueMelee, DamageExact(17)) },
{ ItemID.GolemFist, Do(DamageExact(150)) },
{ ItemID.Gradient, Do(DamageExact(39)) },
{ ItemID.BoneSword, Do(UseTurn, DamageExact(25)) }, // VANILLA: 19 DMG
{ ItemID.BookofSkulls, Do(DamageExact(27), ManaExact(13), ShootSpeedExact(5.5f)) }, // VANILLA: 29 DMG, 18 MANA, 3.5 VEL
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom. VANILLA: 20 MANA
{ ItemID.Boomstick, Do(DamageExact(11)) }, // VANILLA: 14 DMG
{ ItemID.BreakerBlade, Do(UseTurn, DamageExact(140)) }, // VANILLA: 70 DMG
{ ItemID.CandyCornRifle, Do(DamageExact(66)) }, // VANILLA: 44 DMG
{ ItemID.Cascade, Do(DamageExact(31)) }, // VANILLA: 27 DMG
{ ItemID.ChainGuillotines, Do(DamageExact(100)) }, // VANILLA: 59 DMG
{ ItemID.ChainGun, Do(DamageExact(35)) }, // VANILLA: 31 DMG
{ ItemID.ChainKnife, Do(DamageRatio(1.34f)) }, // VANILLA: 12 DMG. Uses ratios due to remix seed
{ ItemID.ChlorophyteClaymore, Do(UseMeleeSpeed, DamageExact(180), UseExact(45), ShootSpeedExact(22f)) }, // VANILLA: 95 DMG, 26 UT, 8 VEL
{ ItemID.ChlorophytePartisan, Do(UseMeleeSpeed, DamageExact(95)) }, // VANILLA: 49 DMG
{ ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(92), UseExact(10)) }, // VANILLA: 57 DMG, 16 UT
{ ItemID.ChristmasTreeSword, Do(UseTurn, UseMeleeSpeed, DamageExact(80), UseExact(30)) }, // VANILLA: 86 DMG, 23 UT
{ ItemID.ClockworkAssaultRifle, Do(DamageExact(21)) }, // VANILLA: 17 DMG
{ ItemID.CobaltNaginata, Do(TrueMelee, DamageExact(55), UseExact(9), ShootSpeedExact(12f)) }, // VANILLA: 44 DMG, 28 UT, 4.3 VEL
{ ItemID.CobaltRepeater, Do(UseExact(18)) }, // VANILLA: 23 UT
{ ItemID.CobaltSword, Do(DamageExact(60), UseExact(9)) }, // VANILLA: 40 DMG, 19 UT
{ ItemID.Code2, Do(DamageExact(43)) }, // VANILLA: 54 DMG
{ ItemID.CoinGun, Do(UseExact(12)) }, // VANILLA: 8 UT
{ ItemID.CorruptYoyo, Do(DamageExact(20)) }, // Malaise. VANILLA: 16 DMG
{ ItemID.CrimsonYoyo, Do(DamageExact(20)) }, // Artery. VANILLA: 17 DMG
{ ItemID.CrystalBullet, Do(DamageExact(6)) }, // VANILLA: 9 DMG
{ ItemID.CrystalDart, Do(DamageExact(20)) }, // VANILLA: 14 DMG
{ ItemID.CrystalStorm, Do(DamageExact(40)) }, // VANILLA: 32 DMG
{ ItemID.CrystalVileShard, Do(DamageExact(35)) }, // VANILLA: 25 DMG
{ ItemID.CursedArrow, Do(DamageExact(14)) }, // VANILLA: 17 DMG
{ ItemID.CursedDart, Do(DamageExact(25)) }, // VANILLA: 9 DMG
{ ItemID.Cutlass, Do(DamageExact(90), UseExact(14)) }, // VANILLA: 53 DMG, 16 UT
{ ItemID.DaedalusStormbow, Do(DamageExact(30)) }, // VANILLA: 38 DMG
{ ItemID.DaoofPow, Do(DamageExact(85)) }, // Displays as 170 damage. VANILLA: 50 DMG (displays as 100)
{ ItemID.DarkLance, Do(TrueMelee, DamageExact(40)) }, // VANILLA: 34 DMG
{ ItemID.DartRifle, Do(DamageExact(58)) }, // VANILLA: 52 DMG
{ ItemID.DayBreak, Do(DamageExact(125), UseExact(22)) }, // VANILLA: 150 DMG, 16 UT
{ ItemID.DD2BetsyBow, Do(DamageExact(42)) }, // VANILLA: 39 DMG. Compensation for removing aerial multiplier
{ ItemID.DD2SquireBetsySword, Do(UseMeleeSpeed, DamageExact(150)) }, // Flying Dragon. VANILLA: 180 DMG
{ ItemID.DeadlySphereStaff, Do(DamageExact(50)) }, // VANILLA: 40 DMG
{ ItemID.DeathSickle, Do(UseMeleeSpeed, DamageExact(65), ShootSpeedExact(15f)) }, // VANILLA: 57 DMG, 9 VEL
{ ItemID.DemonBow, Do(DamageExact(12)) }, // VANILLA: 14 DMG
{ ItemID.DemonScythe, Do(DamageExact(28)) }, // VANILLA: 35 DMG
{ ItemID.DyeTradersScimitar, Do(UseTurn, DamageExact(24)) }, // Exotic Scimitar. VANILLA: 20 DMG
{ ItemID.ElfMelter, Do(ShootSpeedDelta(+5f)) }, // VANILLA: 8.5 VEL
{ ItemID.EmeraldStaff, Do(DamageExact(27)) }, // VANILLA: 19 DMG
{ ItemID.EmpressBlade, Do(DamageExact(68)) }, // Terraprisma. VANILLA: 90 DMG
{ ItemID.EnchantedBoomerang, Do(DamageExact(24)) }, // VANILLA: 17 DMG
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) }, // VANILLA: 23 DMG, 9.5 VEL
{ ItemID.EndlessMusketPouch, Do(DamageExact(8)) }, // VANILLA: 7 DMG. Gives it the same damage as Tungsten Bullet
{ ItemID.Excalibur, Do(TrueMelee, DamageExact(170)) }, // VANILLA: 72 DMG
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow. VANILLA: 50 DMG
{ ItemID.FalconBlade, Do(UseTurn, UseExact(13)) }, // VANILLA: 20 UT
{ ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration. VANILLA: 25 DMG, 30 UT
{ ItemID.Flamarang, Do(DamageExact(37)) }, // VANILLA: 49 DMG
{ ItemID.Flamelash, Do(DamageExact(36), ManaExact(18)) }, // VANILLA: 32 DMG, 21 MANA
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) }, // VANILLA: 35 DMG, 7 VEL
{ ItemID.FlowerofFire, Do(DamageRatio(0.78f), ManaExact(7)) }, // VANILLA: 48 DMG, 12 MANA. Uses ratios due to remix seed
{ ItemID.FlowerofFrost, Do(DamageExact(70), UseExact(22), ManaExact(7), ShootSpeedExact(14)) }, // VANILLA: 60 DMG, 12 UT, 11 MANA, 9 VEL
{ ItemID.FlyingKnife, Do(DamageExact(53)) }, // VANILLA: 40 DMG
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(88)) }, // VANILLA: 49 DMG
{ ItemID.Gatligator, Do(UseExact(6)) }, // VANILLA: 7 UT
{ ItemID.GoldShortsword, Do(TrueMelee, DamageExact(17)) }, // VANILLA: 12 DMG
{ ItemID.GolemFist, Do(DamageExact(150)) }, // VANILLA: 90 DMG
{ ItemID.Gradient, Do(DamageExact(39)) }, // VANILLA: 49 DMG
{ ItemID.GreenPhaseblade, phaseblade },
{ ItemID.GreenPhasesaber, phasesaber },
{ ItemID.GrenadeLauncher, Do(DamageExact(105)) },
{ ItemID.Gungnir, Do(TrueMelee, DamageExact(130), ShootSpeedExact(7f)) },
{ ItemID.HallowedRepeater, Do(UseExact(12)) },
{ ItemID.Handgun, Do(UseExact(20)) },
{ ItemID.HighVelocityBullet, Do(DamageExact(13)) },
{ ItemID.HiveFive, Do(DamageExact(27)) },
{ ItemID.HornetStaff, Do(DamageExact(18)) },
{ ItemID.GrenadeLauncher, Do(DamageExact(105)) }, // VANILLA: 60 DMG
{ ItemID.Gungnir, Do(TrueMelee, DamageExact(130), ShootSpeedExact(7f)) }, // VANILLA: 61 DMG, 5.6 VEL
{ ItemID.HallowedRepeater, Do(UseExact(12)) }, // VANILLA: 17 UT
{ ItemID.Handgun, Do(UseExact(20)) }, // VANILLA: 15 UT
{ ItemID.HighVelocityBullet, Do(DamageExact(13)) }, // VANILLA: 11 DMG
{ ItemID.HiveFive, Do(DamageExact(27)) }, // VANILLA: 24 DMG
{ ItemID.HornetStaff, Do(DamageExact(18)) }, // VANILLA: 12 DMG
{ ItemID.IceBlade, Do(UseMeleeSpeed) },
{ ItemID.IceBoomerang, Do(UseExact(25), ShootSpeedExact(9)) },
{ ItemID.IceRod, Do(UseExact(6), ShootSpeedExact(20)) },
{ ItemID.IceSickle, Do(UseMeleeSpeed, DamageExact(75), ShootSpeedExact(20f)) },
{ ItemID.IchorArrow, Do(DamageExact(13)) },
{ ItemID.IchorBullet, Do(DamageExact(11)) },
{ ItemID.ImpStaff, Do(DamageExact(25)) },
{ ItemID.InfernoFork, Do(DamageExact(83), ShootSpeedExact(11)) },
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) },
{ ItemID.IronShortsword, Do(TrueMelee, DamageExact(10)) },
{ ItemID.IceBoomerang, Do(ShootSpeedExact(9), UseExact(25)) }, // VANILLA: 20 UT, 11.5 VEL
{ ItemID.IceRod, Do(ShootSpeedExact(20), UseExact(6)) }, // VANILLA: 9 UT, 12 VEL
{ ItemID.IceSickle, Do(UseMeleeSpeed, DamageExact(75), ShootSpeedExact(20f)) }, // VANILLA: 50 DMG, 12 VEL
{ ItemID.IchorArrow, Do(DamageExact(13)) }, // VANILLA: 16 DMG
{ ItemID.IchorBullet, Do(DamageExact(11)) }, // VANILLA: 13 DMG
{ ItemID.ImpStaff, Do(DamageExact(25)) }, // VANILLA: 17 DMG
{ ItemID.InfernoFork, Do(DamageExact(83), ShootSpeedExact(11)) }, // VANILLA: 70 DMG, 8 VEL
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) }, // VANILLA: 100 DMG, 20 UT
{ ItemID.IronShortsword, Do(TrueMelee, DamageExact(10)) }, // VANILLA: 8 DMG
{ ItemID.Keybrand, Do(UseTurn) },
{ ItemID.KOCannon, Do(DamageRatio(2.65f)) }, // Uses ratios due to remix seed
{ ItemID.Kraken, Do(DamageExact(65)) },
{ ItemID.LaserMachinegun, Do(DamageExact(49)) },
{ ItemID.LaserRifle, Do(DamageExact(46), UseExact(10), ManaExact(4)) },
{ ItemID.LastPrism, Do(DamageExact(57), ManaExact(10)) },
{ ItemID.LeadShortsword, Do(TrueMelee, DamageExact(11)) },
{ ItemID.LeafBlower, Do(DamageExact(61)) },
{ ItemID.LightDisc, Do(DamageExact(80), ShootSpeedExact(18)) },
{ ItemID.LunarFlareBook, Do(DamageExact(110)) },
{ ItemID.MagicalHarp, Do(DamageExact(50), ShootSpeedExact(12f)) },
{ ItemID.MagicMissile, Do(DamageExact(23), ManaExact(10), UseAnimationExact(20), UseTimeExact(10)) },
{ ItemID.Marrow, Do(DamageExact(60)) },
{ ItemID.MedusaHead, Do(ManaExact(6), DamageExact(75)) },
{ ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)) },
{ ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) },
{ ItemID.MiniNukeI, Do(DamageExact(90)) },
{ ItemID.KOCannon, Do(DamageRatio(2.65f)) }, // VANILLA: 40 DMG. Uses ratios due to remix seed
{ ItemID.Kraken, Do(DamageExact(65)) }, // VANILLA: 95 DMG
{ ItemID.LaserMachinegun, Do(DamageExact(49)) }, // VANILLA: 60 DMG
{ ItemID.LaserRifle, Do(DamageExact(46), UseExact(10), ManaExact(4)) }, // VANILLA: 29 DMG, 12 UT, 8 MANA
{ ItemID.LastPrism, Do(DamageExact(57), ManaExact(10)) }, // VANILLA: 100 DMG, 12 MANA
{ ItemID.LeadShortsword, Do(TrueMelee, DamageExact(11)) }, // VANILLA: 9 DMG
{ ItemID.LeafBlower, Do(DamageExact(61)) }, // VANILLA: 48 DMG
{ ItemID.LightDisc, Do(DamageExact(80), ShootSpeedExact(18)) }, // VANILLA: 60 DMG, 16 VEL
{ ItemID.LunarFlareBook, Do(DamageExact(110)) }, // VANILLA: 100 DMG
{ ItemID.MagicalHarp, Do(DamageExact(50), ShootSpeedExact(12f)) }, // VANILLA: 42 DMG, 4.5 VEL
{ ItemID.MagicMissile, Do(DamageExact(23), UseAnimationExact(20), UseTimeExact(10), ManaExact(10)) }, // VANILLA: 35 DMG, 22 UT/UA, 14 MANA
{ ItemID.Marrow, Do(DamageExact(60)) }, // VANILLA: 53 DMG
{ ItemID.MedusaHead, Do(DamageExact(75), ManaExact(6)) }, // VANILLA: 40 DMG, 15 MANA
{ ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)) }, // VANILLA: 200 DMG
{ ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) }, // VANILLA: 50 DMG, 9 MANA, 10 VEL
{ ItemID.MiniNukeI, Do(DamageExact(90)) }, // VANILLA: 75 DMG
{ ItemID.MiniNukeII, Do(DamageExact(90)) },
{ ItemID.Minishark, Do(DamageExact(4)) },
{ ItemID.MoltenFury, Do(UseExact(28)) },
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod
{ ItemID.MonkStaffT2, Do(TrueMelee, DamageExact(90)) }, // Ghastly Glaive
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
{ ItemID.MoonlordBullet, Do(DamageExact(17)) }, // Luminite Bullet
{ ItemID.MoonlordTurretStaff, Do(DamageExact(50)) }, // Lunar Portal Staff
{ ItemID.Muramasa, Do(CritDelta(+10)) },
{ ItemID.MushroomSpear, Do(TrueMelee, UseRatio(0.8f), DamageExact(100)) },
{ ItemID.Musket, Do(DamageExact(22)) },
{ ItemID.MythrilHalberd, Do(TrueMelee, DamageExact(65), UseExact(8), ShootSpeedExact(15f)) },
{ ItemID.MythrilRepeater, Do(UseExact(16)) },
{ ItemID.MythrilSword, Do(UseTurn, DamageExact(70), UseExact(8)) },
{ ItemID.NailGun, Do(DamageExact(77)) },
{ ItemID.NettleBurst, Do(ManaExact(10), DamageExact(65)) },
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) },
{ ItemID.Minishark, Do(DamageExact(4)) }, // VANILLA: 6 DMG
{ ItemID.MoltenFury, Do(UseExact(28)) }, // VANILLA: 22 UT
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod. VANILLA: 50 DMG
{ ItemID.MonkStaffT2, Do(TrueMelee, DamageExact(90)) }, // Ghastly Glaive. VANILLA: 45 DMG
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury. VANILLA: 140 DMG
{ ItemID.MoonlordBullet, Do(DamageExact(17)) }, // Luminite Bullet. VANILLA: 20 DMG
{ ItemID.MoonlordTurretStaff, Do(DamageExact(50)) }, // Lunar Portal Staff. VANILLA: 100 DMG
{ ItemID.Muramasa, Do(CritDelta(+10)) }, // VANILLA: 4% CRIT
{ ItemID.MushroomSpear, Do(TrueMelee, DamageExact(100), UseExact(32)) }, // VANILLA: 60 DMG, 40 UT
{ ItemID.Musket, Do(DamageExact(22)) }, // VANILLA: 31 DMG
{ ItemID.MythrilHalberd, Do(TrueMelee, DamageExact(65), UseExact(8), ShootSpeedExact(15f)) }, // VANILLA: 45 DMG, 26 UT, 4.5 VEL
{ ItemID.MythrilRepeater, Do(UseExact(16)) }, // VANILLA: 20 UT
{ ItemID.MythrilSword, Do(UseTurn, DamageExact(70), UseExact(8)) }, // VANILLA: 50 DMG, 20 UT
{ ItemID.NailGun, Do(DamageExact(77)) }, // VANILLA: 85 DMG
{ ItemID.NettleBurst, Do(DamageExact(65), ManaExact(10)) }, // VANILLA: 35 DMG, 12 MANA
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) }, // VANILLA: 40 DMG
{ ItemID.NorthPole, Do(UseMeleeSpeed) },
{ ItemID.OrangePhaseblade, phaseblade },
{ ItemID.OrangePhasesaber, phasesaber },
{ ItemID.OrichalcumHalberd, Do(TrueMelee, DamageExact(128), ShootSpeedExact(6f)) },
{ ItemID.OrichalcumRepeater, Do(DamageExact(48)) },
{ ItemID.OrichalcumSword, Do(UseTurn, DamageExact(175)) },
{ ItemID.PaladinsHammer, Do(DamageExact(95), ShootSpeedExact(28)) },
{ ItemID.PalladiumPike, Do(TrueMelee, DamageExact(120), ShootSpeedExact(5.4f)) },
{ ItemID.PalladiumRepeater, Do(DamageExact(45)) },
{ ItemID.PalladiumSword, Do(DamageExact(150)) },
{ ItemID.PearlwoodBow, Do(DamageExact(32)) },
{ ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) },
{ ItemID.PewMaticHorn, Do(DamageExact(25), ShootSpeedExact(15)) },
{ ItemID.PhoenixBlaster, Do(UseExact(20)) },
{ ItemID.PlatinumShortsword, Do(TrueMelee, DamageExact(18)) },
{ ItemID.PoisonStaff, Do(DamageExact(57)) },
{ ItemID.PossessedHatchet, Do(DamageExact(135)) },
{ ItemID.PrincessWeapon, Do(DamageExact(80)) }, // Resonance Scepter
{ ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageExact(200)) },
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) },
{ ItemID.OrichalcumHalberd, Do(TrueMelee, DamageExact(128), ShootSpeedExact(6f)) }, // VANILLA: 46 DMG, 4.5 VEL
{ ItemID.OrichalcumRepeater, Do(DamageExact(48)) }, // VANILLA: 40 DMG
{ ItemID.OrichalcumSword, Do(UseTurn, DamageExact(175)) }, // VANILLA: 59 DMG
{ ItemID.PaladinsHammer, Do(DamageExact(95), ShootSpeedExact(28)) }, // VANILLA: 90 DMG, 14 VEL
{ ItemID.PalladiumPike, Do(TrueMelee, DamageExact(120), ShootSpeedExact(5.4f)) }, // VANILLA: 44 DMG, 4.4 VEL
{ ItemID.PalladiumRepeater, Do(DamageExact(45)) }, // VANILLA: 37 DMG
{ ItemID.PalladiumSword, Do(DamageExact(150)) }, // VANILLA: 49 DMG
{ ItemID.PearlwoodBow, Do(DamageExact(32)) }, // VANILLA: 12 DMG
{ ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) }, // VANILLA: 30 DMG
{ ItemID.PewMaticHorn, Do(DamageExact(25), ShootSpeedExact(15)) }, // VANILLA: 20 DMG, 14 VEL
{ ItemID.PhoenixBlaster, Do(UseExact(20)) }, // VANILLA: 14 UT
{ ItemID.PlatinumShortsword, Do(TrueMelee, DamageExact(18)) }, // VANILLA: 13 DMG
{ ItemID.PoisonStaff, Do(DamageExact(57)) }, // VANILLA: 43 DMG
{ ItemID.PossessedHatchet, Do(DamageExact(135)) }, // VANILLA: 80 DMG
{ ItemID.PrincessWeapon, Do(DamageExact(80)) }, // Resonance Scepter. VANILLA: 70 DMG
{ ItemID.PsychoKnife, Do(UseTurn, DamageExact(200), UseExact(11)) }, // VANILLA: 85 DMG, 8 UT
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) }, // VANILLA: 8 KB
{ ItemID.PurplePhaseblade, phaseblade },
{ ItemID.PurplePhasesaber, phasesaber },
{ ItemID.PygmyStaff, Do(DamageExact(63)) },
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) },
{ ItemID.RainbowRod, Do(DamageExact(40), ManaExact(13), KnockbackExact(8f)) },
{ ItemID.Rally, Do(DamageExact(18)) },
{ ItemID.RavenStaff, Do(DamageExact(36)) },
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) },
{ ItemID.Razorpine, Do(DamageExact(40)) },
{ ItemID.PygmyStaff, Do(DamageExact(63)) }, // VANILLA: 40 DMG
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) }, // VANILLA: 45 DMG, 20 MANA
{ ItemID.RainbowRod, Do(DamageExact(40), KnockbackExact(8f), ManaExact(13)) }, // VANILLA: 50 DMG, 6 KB, 21 MANA
{ ItemID.Rally, Do(DamageExact(18)) }, // VANILLA: 14 DMG
{ ItemID.RavenStaff, Do(DamageExact(36)) }, // VANILLA: 55 DMG
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) }, // VANILLA: 85 DMG
{ ItemID.Razorpine, Do(DamageExact(40)) }, // VANILLA: 48 DMG
{ ItemID.RedPhaseblade, phaseblade },
{ ItemID.RedPhasesaber, phasesaber },
{ ItemID.RedRyder, Do(DamageExact(24)) },
{ ItemID.RedsYoyo, Do(DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
{ ItemID.RocketLauncher, Do(DamageExact(60), ShootSpeedExact(9)) },
{ ItemID.Sandgun, Do(UseExact(20)) },
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
{ ItemID.ScourgeoftheCorruptor, Do(DamageExact(63)) },
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageExact(45), ShootSpeedExact(16)) },
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) },
{ ItemID.ShadowFlameBow, Do(DamageExact(55)) },
{ ItemID.ShadowFlameHexDoll, Do(DamageExact(40), ShootSpeedExact(30)) },
{ ItemID.ShadowFlameKnife, Do(DamageExact(50)) },
{ ItemID.SharpTears, Do(DamageExact(49)) }, // Blood Thorn
{ ItemID.Shotgun, Do(DamageExact(36)) },
{ ItemID.Shroomerang, Do(ShootSpeedExact(11)) },
{ ItemID.SilverBullet, Do(DamageExact(8)) },
{ ItemID.SilverShortsword, Do(TrueMelee, DamageExact(14)) },
{ ItemID.SkyFracture, Do(DamageExact(46)) },
{ ItemID.SlapHand, Do(UseTurn, DamageExact(120)) },
{ ItemID.Smolstar, Do(DamageExact(9)) }, // Blade Staff
{ ItemID.SniperRifle, Do(DamageExact(200), UseExact(40)) },
{ ItemID.SoulDrain, Do(DamageExact(38)) }, // Life Drain
{ ItemID.SpaceGun, Do(DamageExact(23)) },
{ ItemID.Spear, Do(TrueMelee, DamageExact(14)) },
{ ItemID.SpectreStaff, Do(DamageExact(72)) },
{ ItemID.SpiritFlame, Do(UseExact(20), ManaExact(11), ShootSpeedExact(2f)) },
{ ItemID.StaffofEarth, Do(DamageExact(150)) },
{ ItemID.StarCannon, Do(UseExact(18)) },
{ ItemID.StardustDragonStaff, Do(DamageExact(20)) },
{ ItemID.StormTigerStaff, Do(DamageExact(49)) }, // Desert Tiger Staff
{ ItemID.StylistKilLaKillScissorsIWish, Do(UseTurn, DamageExact(21)) }, // Stylish Scissors
{ ItemID.Stynger, Do(DamageExact(75)) },
{ ItemID.SuperStarCannon, Do(DamageExact(55)) },
{ ItemID.Swordfish, Do(TrueMelee, DamageExact(24)) },
{ ItemID.TacticalShotgun, Do(DamageExact(34)) },
{ ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, UseRatio(0.8f), DamageExact(70)) }, // Classy Cane
{ ItemID.TendonBow, Do(DamageExact(17)) },
{ ItemID.TerraBlade, Do(DamageExact(95)) },
{ ItemID.Terragrim, Do(TrueMeleeNoSpeed, DamageExact(13)) },
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
// Terrarian is extremely overpowered and requires a heavy nerf.
{ ItemID.Terrarian, Do(DamageExact(90)) },
{ ItemID.TheEyeOfCthulhu, Do(DamageExact(80)) },
{ ItemID.TheMeatball, Do(DamageExact(24)) },
{ ItemID.TheRottedFork, Do(TrueMelee, DamageExact(20)) },
{ ItemID.TheUndertaker, Do(DamageExact(15)) },
{ ItemID.RedRyder, Do(DamageExact(24)) }, // VANILLA: 20 DMG
{ ItemID.RedsYoyo, Do(DamageExact(48)) }, // VANILLA: 70 DMG. Has the same stats as Valkyrie Yoyo
{ ItemID.RocketLauncher, Do(DamageExact(60), ShootSpeedExact(9)) }, // VANILLA: 55 DMG, 5 VEL
{ ItemID.Sandgun, Do(UseExact(20)) }, // VANILLA: 16 UT
{ ItemID.SapphireStaff, Do(DamageExact(25)) }, // VANILLA: 18 DMG
{ ItemID.ScourgeoftheCorruptor, Do(DamageExact(63)) }, // VANILLA: 70 DMG
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageExact(45), ShootSpeedExact(16)) }, // VANILLA: 50 DMG, 12 VEL
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) }, // VANILLA: 80 DMG
{ ItemID.ShadowFlameBow, Do(DamageExact(55)) }, // VANILLA: 47 DMG
{ ItemID.ShadowFlameHexDoll, Do(DamageExact(40), ShootSpeedExact(30)) }, // VANILLA: 32 DMG, 9 VEL
{ ItemID.ShadowFlameKnife, Do(DamageExact(50)) }, // VANILLA: 38 DMG
{ ItemID.SharpTears, Do(DamageExact(49)) }, // Blood Thorn. VANILLA: 34 DMG
{ ItemID.Shotgun, Do(DamageExact(36)) }, // VANILLA: 24 DMG
{ ItemID.SilverBullet, Do(DamageExact(8)) }, // VANILLA: 9 DMG
{ ItemID.SilverShortsword, Do(TrueMelee, DamageExact(14)) }, // VANILLA: 9 DMG
{ ItemID.SkyFracture, Do(DamageExact(46)) }, // VANILLA: 38 DMG
{ ItemID.SlapHand, Do(UseTurn, DamageExact(120)) }, // VANILLA: 55 DMG
{ ItemID.Smolstar, Do(DamageExact(9)) }, // Blade Staff. VANILLA: 6 DMG
{ ItemID.SniperRifle, Do(DamageExact(200), UseExact(40)) }, // VANILLA: 185 DMG, 36 UT
{ ItemID.SoulDrain, Do(DamageExact(38)) }, // Life Drain. VANILLA: 35 DMG
{ ItemID.SpaceGun, Do(DamageExact(23)) }, // VANILLA: 17 DMG
{ ItemID.Spear, Do(TrueMelee, DamageExact(14)) }, // VANILLA: 8 DMG
{ ItemID.SpectreStaff, Do(DamageExact(72)) }, // VANILLA: 65 DMG
{ ItemID.SpiritFlame, Do(UseExact(20), ManaExact(11), ShootSpeedExact(2f)) }, // VANILLA: 22 UT, 14 MANA, 3 VEL
{ ItemID.StaffofEarth, Do(DamageExact(150)) }, // VANILLA: 125 DMG
{ ItemID.StarCannon, Do(UseExact(18)) }, // VANILLA: 12 UT
{ ItemID.StardustDragonStaff, Do(DamageExact(20)) }, // VANILLA: 40 DMG
{ ItemID.StormTigerStaff, Do(DamageExact(49)) }, // Desert Tiger Staff. VANILLA: 41 DMG
{ ItemID.StylistKilLaKillScissorsIWish, Do(UseTurn, DamageExact(21)) }, // Stylish Scissors. VANILLA: 14 DMG
{ ItemID.Stynger, Do(DamageExact(75)) }, // VANILLA: 45 DMG
{ ItemID.SuperStarCannon, Do(DamageExact(55)) }, // VANILLA: 60 DMG
{ ItemID.Swordfish, Do(TrueMelee, DamageExact(24)) }, // VANILLA: 19 DMG
{ ItemID.TacticalShotgun, Do(DamageExact(34)) }, // VANILLA: 29 DMG
{ ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, DamageExact(70), UseExact(12)) }, // Classy Cane. VANILLA: 16 DMG, 15 UT
{ ItemID.TendonBow, Do(DamageExact(17)) }, // VANILLA: 19 DMG
{ ItemID.TerraBlade, Do(DamageExact(95)) }, // VANILLA: 85 DMG
{ ItemID.Terragrim, Do(TrueMeleeNoSpeed, DamageExact(13)) }, // VANILLA: 17 DMG
{ ItemID.Terrarian, Do(DamageExact(90)) }, // VANILLA: 190 DMG. Required due to fixing iframes so yoyo and shots can hit simultaneously
{ ItemID.TheEyeOfCthulhu, Do(DamageExact(80)) }, // VANILLA: 115 DMG
{ ItemID.TheMeatball, Do(DamageExact(24)) }, // Displays as 48 damage. VANILLA: 17 DMG (displays as 34)
{ ItemID.TheRottedFork, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 17 DMG
{ ItemID.TheUndertaker, Do(DamageExact(15)) }, // VANILLA: 19 DMG
{ ItemID.ThunderSpear, Do(UseMeleeSpeed) }, // Storm Spear
{ ItemID.ThunderStaff, Do(DamageExact(18)) }, //Thunder Zapper
{ ItemID.TitaniumRepeater, Do(DamageExact(52)) },
{ ItemID.TitaniumSword, Do(UseTurn, DamageExact(192)) },
{ ItemID.TitaniumTrident, Do(TrueMelee, DamageExact(144), ShootSpeedExact(6.5f)) },
{ ItemID.TopazStaff, Do(ManaExact(2)) },
{ ItemID.ToxicFlask, Do(DamageExact(62), UseExact(33), ManaExact(20)) },
{ ItemID.Toxikarp, Do(UseExact(9)) },
{ ItemID.Trident, Do(TrueMelee, DamageExact(20)) },
{ ItemID.Trimarang, Do(DamageExact(24)) },
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(112)) },
{ ItemID.TrueNightsEdge, Do(DamageExact(105)) },
{ ItemID.Tsunami, Do(DamageExact(45)) },
{ ItemID.TungstenBullet, Do(DamageExact(8)) },
{ ItemID.TungstenShortsword, Do(TrueMelee, DamageExact(15)) },
{ ItemID.UnholyArrow, Do(DamageExact(11)) },
{ ItemID.UnholyTrident, Do(ManaRatio(0.78f), DamageRatio(0.91f)) }, // Uses ratios due to remix seed
{ ItemID.Uzi, Do(UseExact(8)) },
{ ItemID.VampireKnives, Do(DamageExact(38)) },
{ ItemID.ValkyrieYoyo, Do(DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
{ ItemID.VenomStaff, Do(UseExact(27)) },
{ ItemID.WaspGun, Do(DamageExact(44)) },
{ ItemID.WaterBolt, Do(DamageExact(23)) },
{ ItemID.ThunderStaff, Do(DamageExact(18)) }, // Thunder Zapper. VANILLA: 20 DMG
{ ItemID.TitaniumRepeater, Do(DamageExact(52)) }, // VANILLA: 43 DMG
{ ItemID.TitaniumSword, Do(UseTurn, DamageExact(192)) }, // VANILLA: 61 DMG
{ ItemID.TitaniumTrident, Do(TrueMelee, DamageExact(144), ShootSpeedExact(6.5f)) }, // VANILLA: 48 DMG, 5 VEL
{ ItemID.TopazStaff, Do(ManaExact(2)) }, // VANILLA: 5 MANA
{ ItemID.ToxicFlask, Do(DamageExact(62), UseExact(33), ManaExact(20)) }, // VANILLA: 52 DMG, 45 UT, 30 MANA
{ ItemID.Toxikarp, Do(UseExact(9)) }, // VANILLA: 10 UT
{ ItemID.Trident, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 14 DMG
{ ItemID.Trimarang, Do(DamageExact(24)) }, // VANILLA: 21 DMG
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(112)) }, // VANILLA: 72 DMG
{ ItemID.TrueNightsEdge, Do(DamageExact(105)) }, // VANILLA: 70 DMG
{ ItemID.Tsunami, Do(DamageExact(45)) }, // VANILLA: 53 DMG
{ ItemID.TungstenBullet, Do(DamageExact(8)) }, // VANILLA: 9 DMG
{ ItemID.TungstenShortsword, Do(TrueMelee, DamageExact(15)) }, // VANILLA: 10 DMG
{ ItemID.UnholyArrow, Do(DamageExact(11)) }, // VANILLA: 12 DMG
{ ItemID.UnholyTrident, Do(DamageRatio(0.91f), ManaRatio(0.78f)) }, // VANILLA: 88 DMG, 19 MANA. Uses ratios due to remix seed
{ ItemID.Uzi, Do(UseExact(8)) }, // VANILLA: 9 UT
{ ItemID.ValkyrieYoyo, Do(DamageExact(48)) }, // VANILLA: 70 DMG. Has the same stats as Red's Throw
{ ItemID.VenomStaff, Do(UseExact(27)) }, // VANILLA: 30 UT
{ ItemID.WaspGun, Do(DamageExact(44)) }, // VANILLA: 31 DMG
{ ItemID.WaterBolt, Do(DamageExact(23)) }, // VANILLA: 19 DMG
{ ItemID.WhitePhaseblade, phaseblade },
{ ItemID.WhitePhasesaber, phasesaber },
{ ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) },
{ ItemID.Yelets, Do(DamageExact(53)) },
{ ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) }, // VANILLA: 10 DMG
{ ItemID.Yelets, Do(DamageExact(53)) }, // VANILLA: 60 DMG
{ ItemID.YellowPhaseblade, phaseblade },
{ ItemID.YellowPhasesaber, phasesaber },
{ ItemID.Zenith, Do(DamageExact(210)) },
{ ItemID.ZombieArm, Do(UseTurn, KnockbackExact(12f)) },
{ ItemID.Zenith, Do(DamageExact(210)) }, // VANILLA: 190 DMG
{ ItemID.ZombieArm, Do(UseTurn, KnockbackExact(12f)) }, // VANILLA: 5.5 KB
#endregion
#region CATEGORY 2: Defense Balancing
{ ItemID.LavaSkull, Do(DefenseExact(1)) }, // Magma Skull
{ ItemID.MoltenCharm, Do(DefenseExact(1)) }, //Magma Charm
{ ItemID.MoltenSkullRose, Do(DefenseExact(3)) },
{ ItemID.ObsidianSkullRose, Do(DefenseExact(1)) },
{ ItemID.SquireAltHead, Do(DefenseDelta(-2)) }, // Valhalla Knight set
{ ItemID.SquireAltPants, Do(DefenseDelta(-3)) },
{ ItemID.SquireAltShirt, Do(DefenseDelta(-3)) },
{ ItemID.SquireGreatHelm, Do(DefenseDelta(-1)) },
{ ItemID.SquireGreaves, Do(DefenseDelta(-2)) },
{ ItemID.SquirePlating, Do(DefenseDelta(-4)) },
{ ItemID.LavaSkull, Do(DefenseExact(1)) }, // Magma Skull. VANILLA: 0 DEF
{ ItemID.MoltenCharm, Do(DefenseExact(1)) }, // VANILLA: 0 DEF
{ ItemID.MoltenSkullRose, Do(DefenseExact(3)) }, // VANILLA: 0 DEF
{ ItemID.ObsidianSkullRose, Do(DefenseExact(1)) }, // VANILLA: 0 DEF
// Valhalla Knight armor
{ ItemID.SquireAltHead, Do(DefenseDelta(-2)) }, // VANILLA: 20 DEF
{ ItemID.SquireAltPants, Do(DefenseDelta(-3)) }, // VANILLA: 24 DEF
{ ItemID.SquireAltShirt, Do(DefenseDelta(-3)) }, // VANILLA: 24 DEF
{ ItemID.SquireGreatHelm, Do(DefenseDelta(-1)) }, // VANILLA: 13 DEF
{ ItemID.SquireGreaves, Do(DefenseDelta(-2)) }, // VANILLA: 18 DEF
{ ItemID.SquirePlating, Do(DefenseDelta(-4)) }, // VANILLA: 27 DEF
#endregion
#region CATEGORY 3: Tool Balancing
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, TileBoostExact(+1), DamageExact(32)) },
{ ItemID.AdamantitePickaxe, Do(TileBoostExact(+1)) },
{ ItemID.AdamantiteWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.BloodLustCluster, Do(AxePower(100), UseTimeExact(13)) },
{ ItemID.BonePickaxe, Do(UseTimeExact(6)) },
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11)) },
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, DamageExact(100), UseTimeExact(3), TileBoostExact(+0)) },
{ ItemID.CactusPickaxe, Do(UseTimeExact(9)) },
{ ItemID.CnadyCanePickaxe, Do(UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, AxePower(120), UseTimeExact(3), DamageExact(112)) },
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, TileBoostExact(+2), DamageExact(43)) },
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), TileBoostExact(+2)) },
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, UseTimeExact(5)) },
{ ItemID.ChlorophytePickaxe, Do(TileBoostExact(+2)) },
{ ItemID.ChlorophyteWarhammer, Do(UseTimeExact(8), TileBoostExact(+2)) },
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, UseTimeExact(4), DamageExact(51)) },
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5), DamageExact(21)) },
{ ItemID.CobaltPickaxe, Do(PickPower(130), UseTimeExact(9)) },
{ ItemID.CobaltWaraxe, Do(AxePower(125), UseTimeExact(12)) },
{ ItemID.CopperAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.CopperHammer, Do(UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.CopperPickaxe, Do(UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.DeathbringerPickaxe, Do(UseTimeExact(10)) },
{ ItemID.Drax, Do(TrueMeleeNoSpeed, TileBoostExact(+1), DamageExact(80)) },
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9)) },
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13)) },
{ ItemID.GoldAxe, Do(AxePower(80), UseTimeExact(14)) },
{ ItemID.GoldHammer, Do(HammerPower(60), UseTimeExact(9)) },
{ ItemID.GoldPickaxe, Do(UseTimeExact(9)) },
{ ItemID.Hammush, Do(UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.IronAxe, Do(AxePower(60), UseTimeExact(15)) },
{ ItemID.IronHammer, Do(HammerPower(45), UseTimeExact(11)) },
{ ItemID.IronPickaxe, Do(UseTimeExact(8)) },
{ ItemID.LaserDrill, Do(PickPower(220), AxePower(120), UseTimeExact(4), DamageExact(54)) },
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15)) },
{ ItemID.LeadHammer, Do(HammerPower(45), UseTimeExact(11)) },
{ ItemID.LeadPickaxe, Do(PickPower(40), UseTimeExact(8)) },
{ ItemID.LucyTheAxe, Do(UseExact(13), TileBoostExact(+1)) },
{ ItemID.LunarHamaxeNebula, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.LunarHamaxeSolar, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.LunarHamaxeStardust, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.LunarHamaxeVortex, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.MeteorHamaxe, Do(HammerPower(70)) },
{ ItemID.MoltenHamaxe, Do(HammerPower(75), AxePower(125)) },
{ ItemID.MoltenPickaxe, Do(UseTimeExact(10)) },
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), DamageExact(63)) },
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4), DamageExact(26)) },
{ ItemID.MythrilPickaxe, Do(PickPower(160), UseTimeExact(8)) },
{ ItemID.MythrilWaraxe, Do(AxePower(140), UseTimeExact(11)) },
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.NightmarePickaxe, Do(PickPower(66), UseTimeExact(9)) },
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), DamageExact(63)) },
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4), DamageExact(26)) },
{ ItemID.OrichalcumPickaxe, Do(PickPower(160), UseTimeExact(8)) },
{ ItemID.OrichalcumWaraxe, Do(AxePower(140), UseTimeExact(11)) },
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), DamageExact(51)) },
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, UseTimeExact(5), DamageExact(21)) },
{ ItemID.PalladiumPickaxe, Do(UseTimeExact(9)) },
{ ItemID.PalladiumWaraxe, Do(AxePower(125)) },
{ ItemID.PalmWoodHammer, Do(HammerPower(25), UseTimeExact(11)) },
{ ItemID.PearlwoodHammer, Do(HammerPower(25), UseTimeExact(4), UseAnimationExact(20), DamageExact(36)) },
{ ItemID.PickaxeAxe, Do(TileBoostExact(+1)) },
{ ItemID.PlatinumAxe, Do(AxePower(80), UseTimeExact(14)) },
{ ItemID.PlatinumHammer, Do(HammerPower(60), UseTimeExact(9)) },
{ ItemID.PlatinumPickaxe, Do(PickPower(55), UseTimeExact(9)) },
{ ItemID.Pwnhammer, Do(UseTimeExact(11), TileBoostExact(+1)) },
{ ItemID.RichMahoganyHammer, Do(HammerPower(25), UseTimeExact(10)) },
{ ItemID.Rockfish, Do(HammerPower(50), UseTimeExact(10)) },
{ ItemID.SawtoothShark, Do(TrueMeleeNoSpeed, AxePower(45)) },
{ ItemID.ShadewoodHammer, Do(HammerPower(25), UseTimeExact(9)) },
{ ItemID.SilverAxe, Do(AxePower(70), UseTimeExact(14)) },
{ ItemID.SilverHammer, Do(HammerPower(55), UseTimeExact(10)) },
{ ItemID.SilverPickaxe, Do(PickPower(50)) },
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.SpectreHamaxe, Do(AxePower(170), TileBoostExact(+4)) },
{ ItemID.SpectrePickaxe, Do(TileBoostExact(+4)) },
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.TheBreaker, Do(HammerPower(70), UseTimeExact(13)) },
{ ItemID.TinAxe, Do(AxePower(50), UseTimeExact(16)) },
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12)) },
{ ItemID.TinPickaxe, Do(UseTimeExact(10)) },
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
{ ItemID.TitaniumWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.TungstenAxe, Do(AxePower(70), UseTimeExact(14)) },
{ ItemID.TungstenHammer, Do(HammerPower(55), UseTimeExact(10)) },
{ ItemID.TungstenPickaxe, Do(UseTimeExact(11)) },
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.WarAxeoftheNight, Do(AxePower(100), UseTimeExact(13)) },
{ ItemID.WoodenHammer, Do(UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth. VANILLA: 150% AXE
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, DamageExact(75), AxePower(90), TileBoostExact(+0)) }, // VANILLA: 33 DMG, 100 AXE, -1 TILE
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, DamageExact(32), TileBoostExact(+0)) }, // VANILLA: 20 DMG, -1 TILE
{ ItemID.AdamantitePickaxe, Do(TileBoostExact(+1)) }, // VANILLA: 0 TILE
{ ItemID.AdamantiteWaraxe, Do(UseTimeExact(10), AxePower(160), TileBoostExact(+1)) }, // VANILLA: 8 SPD, 100 AXE, 0 TILE
{ ItemID.BloodLustCluster, Do(UseTimeExact(13), AxePower(100)) }, // VANILLA: 15 SPD, 75 AXE
{ ItemID.BonePickaxe, Do(UseTimeExact(6)) }, // VANILLA: 11 SPD
{ ItemID.BorealWoodHammer, Do(UseTimeExact(11), HammerPower(25)) }, // VANILLA: 23 SPD, 35 HAM
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, DamageExact(100), UseTimeExact(3), TileBoostExact(+0)) }, // VANILLA: 4 SPD, -1 TILE
{ ItemID.CactusPickaxe, Do(UseTimeExact(9)) }, // VANILLA: 16 SPD
{ ItemID.CnadyCanePickaxe, Do(UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe. VANILLA: 16 SPD
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, DamageExact(112), UseTimeExact(3), AxePower(120), TileBoostExact(+1)) }, // VANILLA: 50 DMG, 4 SPD, 115 AXE, 0 TILE
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, DamageExact(43), TileBoostExact(+1)) }, // VANILLA: 35 DMG, 0 TILE
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), TileBoostExact(+2)) }, // VANILLA: 115 AXE, +1 TILE
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, DamageExact(53), UseTimeExact(5), TileBoostExact(+1)) }, // VANILLA: 45 DMG, 4 SPD, 0 TILE
{ ItemID.ChlorophytePickaxe, Do(TileBoostExact(+2)) }, // VANILLA: +1 TILE
{ ItemID.ChlorophyteWarhammer, Do(UseTimeExact(8), TileBoostExact(+2)) }, // VANILLA: 14 SPD, +1 TILE
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, DamageExact(51), UseTimeExact(4)) }, // VANILLA: 23 DMG, 7 SPD
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, DamageExact(21), UseTimeExact(5), PickPower(130)) }, // VANILLA: 10 DMG, 7 SPD, 110 PICK
{ ItemID.CobaltPickaxe, Do(UseTimeExact(9), PickPower(130)) }, // VANILLA: 13 SPD, 110 PICK
{ ItemID.CobaltWaraxe, Do(UseTimeExact(12), AxePower(125)) }, // VANILLA: 13 SPD, 70 AXE
{ ItemID.CopperAxe, Do(UseTimeExact(16), AxePower(50), TileBoostExact(+0)) }, // VANILLA: 21 SPD, 35 AXE, -1 TILE
{ ItemID.CopperHammer, Do(UseTimeExact(12), TileBoostExact(+0)) }, // VANILLA: 23 SPD, -1 TILE
{ ItemID.CopperPickaxe, Do(UseTimeExact(10), TileBoostExact(+0)) }, // VANILLA: 15 SPD, -1 TILE
{ ItemID.DeathbringerPickaxe, Do(UseTimeExact(10)) }, // VANILLA: 14 SPD
{ ItemID.Drax, Do(TrueMeleeNoSpeed, DamageExact(80), TileBoostExact(+0)) }, // VANILLA: 35 DMG, -1 TILE
{ ItemID.EbonwoodHammer, Do(UseTimeExact(9), HammerPower(25)) }, // VANILLA: 20 SPD, 40 HAM
{ ItemID.FleshGrinder, Do(UseTimeExact(13), HammerPower(70)) }, // VANILLA: 19 SPD, 55 HAM
{ ItemID.GoldAxe, Do(UseTimeExact(14), AxePower(80)) }, // VANILLA: 18 SPD, 55 AXE
{ ItemID.GoldHammer, Do(UseTimeExact(9), HammerPower(60)) }, // VANILLA: 23 SPD, 55 HAM
{ ItemID.GoldPickaxe, Do(UseTimeExact(9)) }, // VANILLA: 17 SPD
{ ItemID.Hammush, Do(UseTimeExact(10), TileBoostExact(+1)) }, // VANILLA: 14 SPD, 0 TILE
{ ItemID.IronAxe, Do(UseTimeExact(15), AxePower(60)) }, // VANILLA: 19 SPD, 45 AXE
{ ItemID.IronHammer, Do(UseTimeExact(11), HammerPower(45)) }, // VANILLA: 20 SPD, 40 HAM
{ ItemID.IronPickaxe, Do(UseTimeExact(8)) }, // VANILLA: 13 SPD
{ ItemID.LaserDrill, Do(DamageExact(54), UseTimeExact(4), PickPower(220)) }, // VANILLA: 35 DMG, 6 SPD, 230 PICK
{ ItemID.LeadAxe, Do(UseTimeExact(15), AxePower(60)) }, // VANILLA: 19 SPD, 50 AXE
{ ItemID.LeadHammer, Do(UseTimeExact(11), HammerPower(45)) }, // VANILLA: 19 SPD, 43 HAM
{ ItemID.LeadPickaxe, Do(UseTimeExact(8), PickPower(40)) }, // VANILLA: 12 SPD, 43 PICK
{ ItemID.LucyTheAxe, Do(UseExact(13), TileBoostExact(+1)) }, // VANILLA: 15 SPD/UT, 0 TILE
{ ItemID.LunarHamaxeNebula, Do(UseTimeExact(5), AxePower(175)) }, // VANILLA: 7 SPD, 150 AXE
{ ItemID.LunarHamaxeSolar, Do(UseTimeExact(5), AxePower(175)) },
{ ItemID.LunarHamaxeStardust, Do(UseTimeExact(5), AxePower(175)) },
{ ItemID.LunarHamaxeVortex, Do(UseTimeExact(5), AxePower(175)) },
{ ItemID.MeteorHamaxe, Do(HammerPower(70)) }, // VANILLA: 60 HAM
{ ItemID.MoltenHamaxe, Do(AxePower(125), HammerPower(75)) }, // VANILLA: 150 AXE, 70 HAM
{ ItemID.MoltenPickaxe, Do(UseTimeExact(10)) }, // VANILLA: 18 SPD
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, DamageExact(63), UseTimeExact(4), AxePower(80)) }, // VANILLA: 29 DMG, 6 SPD, 85 AXE
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, DamageExact(26), UseTimeExact(4), PickPower(160)) }, // VANILLA: 15 DMG, 6 SPD, 150 PICK
{ ItemID.MythrilPickaxe, Do(UseTimeExact(8), PickPower(160)) }, // VANILLA: 10 SPD, 150 PICK
{ ItemID.MythrilWaraxe, Do(UseTimeExact(11), AxePower(140)) }, // VANILLA: 10 SPD, 85 AXE
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, DamageExact(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.NightmarePickaxe, Do(UseTimeExact(9), PickPower(66)) }, // VANILLA: 15 SPD, 65 PICK
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, DamageExact(63), UseTimeExact(4), AxePower(80)) }, // VANILLA: 31 DMG, 5 SPD, 90 AXE
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, DamageExact(26), UseTimeExact(4), PickPower(160)) }, // VANILLA: 17 DMG, 5 SPD, 165 PICK
{ ItemID.OrichalcumPickaxe, Do(UseTimeExact(8), PickPower(160)) }, // VANILLA: 9 SPD, 165 PICK
{ ItemID.OrichalcumWaraxe, Do(UseTimeExact(11), AxePower(140)) }, // VANILLA: 9 SPD, 90 AXE
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, DamageExact(51), UseTimeExact(4), AxePower(70)) }, // VANILLA: 26 DMG, 7 SPD, 75 AXE
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, DamageExact(21), UseTimeExact(5)) }, // VANILLA: 12 DMG, 7 SPD
{ ItemID.PalladiumPickaxe, Do(UseTimeExact(9)) }, // VANILLA: 12 SPD
{ ItemID.PalladiumWaraxe, Do(AxePower(125)) }, // VANILLA: 75 AXE
{ ItemID.PalmWoodHammer, Do(UseTimeExact(11), HammerPower(25)) }, // VANILLA: 23 SPD, 35 HAM
{ ItemID.PearlwoodHammer, Do(DamageExact(36), UseTimeExact(4), UseAnimationExact(20), HammerPower(25)) }, // VANILLA: 10 DMG, 19 SPD/UT, 55 HAM
{ ItemID.PickaxeAxe, Do(TileBoostExact(+1)) }, // VANILLA: 0 TILE
{ ItemID.PlatinumAxe, Do(UseTimeExact(14), AxePower(80)) }, // VANILLA: 17 SPD, 60 AXE
{ ItemID.PlatinumHammer, Do(UseTimeExact(9), HammerPower(60)) }, // VANILLA: 21 SPD, 59 HAM
{ ItemID.PlatinumPickaxe, Do(UseTimeExact(9), PickPower(55)) }, // VANILLA: 15 SPD, 59 PICK
{ ItemID.Pwnhammer, Do(UseTimeExact(11), TileBoostExact(+1)) }, // VANILLA: 14 SPD, 0 TILE
{ ItemID.RichMahoganyHammer, Do(UseTimeExact(10), HammerPower(25)) }, // VANILLA: 23 SPD, 35 HAM
{ ItemID.Rockfish, Do(UseTimeExact(10), HammerPower(50)) }, // VANILLA: 14 SPD, 70 HAM
{ ItemID.SawtoothShark, Do(TrueMeleeNoSpeed, AxePower(45)) }, // VANILLA: 70 AXE
{ ItemID.ShadewoodHammer, Do(UseTimeExact(9), HammerPower(25)) }, // VANILLA: 20 SPD, 40 HAM
{ ItemID.SilverAxe, Do(UseTimeExact(14), AxePower(70)) }, // VANILLA: 18 SPD, 50 AXE
{ ItemID.SilverHammer, Do(UseTimeExact(10), HammerPower(55)) }, // VANILLA: 19 SPD, 45 HAM
{ ItemID.SilverPickaxe, Do(PickPower(50)) }, // VANILLA: 45 PICK
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, DamageExact(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.SpectreHamaxe, Do(AxePower(170), TileBoostExact(+4)) }, // VANILLA: 150 AXE, +3 TILE
{ ItemID.SpectrePickaxe, Do(TileBoostExact(+4)) }, // VANILLA: +3 TILE
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, DamageExact(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.TheBreaker, Do(UseTimeExact(13), HammerPower(70)) }, // VANILLA: 19 SPD, 55 HAM
{ ItemID.TinAxe, Do(UseTimeExact(16), AxePower(50)) }, // VANILLA: 20 SPD, 40 AXE
{ ItemID.TinHammer, Do(UseTimeExact(12), HammerPower(35)) }, // VANILLA: 21 SPD, 38 HAM
{ ItemID.TinPickaxe, Do(UseTimeExact(10)) }, // VANILLA: 14 SPD
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, DamageExact(75), AxePower(90), TileBoostExact(+0)) }, // VANILLA: 34 DMG, 105 AXE, -1 TILE
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, DamageExact(32), PickPower(180), TileBoostExact(+0)) }, // VANILLA: 27 DMG, 190 PICK, -1 TILE
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) }, // VANILLA: 7 SPD, 190 PICK, 0 TILE
{ ItemID.TitaniumWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) }, // VANILLA: 7 SPD, 105 AXE, 0 TILE
{ ItemID.TungstenAxe, Do(UseTimeExact(14), AxePower(70)) }, // VANILLA: 18 SPD, 55 AXE
{ ItemID.TungstenHammer, Do(UseTimeExact(10), HammerPower(55)) }, // VANILLA: 25 SPD, 50 HAM
{ ItemID.TungstenPickaxe, Do(UseTimeExact(11)) }, // VANILLA: 19 SPD
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, DamageExact(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.WarAxeoftheNight, Do(UseTimeExact(13), AxePower(100)) }, // VANILLA: 15 SPD, 75 AXE
{ ItemID.WoodenHammer, Do(UseTimeExact(11), TileBoostExact(+0)) }, // VANILLA: 25 SPD, -1 TILE
#endregion
#region CATEGORY 4: True Melee support
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 134;
Item.height = 44;
Item.damage = 504;
Item.damage = 600;
Item.knockBack = 5.5f;
Item.useAnimation = Item.useTime = 24;
Item.shootSpeed = 12f;
+2 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 28;
Item.height = 30;
Item.damage = 8;
Item.damage = 9;
Item.DamageType = DamageClass.Magic;
Item.mana = 7;
Item.useTime = 26;
@@ -38,6 +38,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<CoralSpoutHoldout>();
Item.shootSpeed = 16f;
Item.ArmorPenetration = 5;
}
public override void HoldItem(Player player)
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.Frostburn2, 300);
target.AddBuff(ModContent.BuffType<GlacialState>(), 60);
target.AddBuff(BuffID.Frozen, 60);
var source = player.GetSource_ItemUse(Item);
int p = Projectile.NewProjectile(source, target.Center, Vector2.Zero, ModContent.ProjectileType<DarkIceZero>(), Item.damage, 12f, player.whoAmI);
Main.projectile[p].Kill();
+2 -10
View File
@@ -1,11 +1,9 @@
using CalamityMod.Projectiles.BaseProjectiles;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Projectiles.Melee.Spears;
using CalamityMod.Systems.Collections;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using System.Collections.Generic;
using System.Linq;
namespace CalamityMod.Items.Weapons.Melee
{
@@ -18,15 +16,9 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
CalamityItemSets.ShowScalingCritDamageTooltip[Type] = true;
}
public override bool SizeModifiers => false;
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
float cdmg = 2f + Main.LocalPlayer.Calamity().critDamage + Main.LocalPlayer.GetTotalCritChance(TrueMeleeNoSpeedDamageClass.Instance) * 0.02f;
tooltips.FirstOrDefault(x => x.Name == "CritChance")!.Text = CalamityUtils.GetText("Common.CritDamageTootip").Format(cdmg.ToPercent());
}
public override void SetDefaults()
{
Item.width = 66;
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 30;
Item.height = 26;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 115;
Item.damage = 222;
Item.knockBack = 7f;
Item.useTime = 20;
Item.useAnimation = 20;
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
public const int TrueMeleeHitHeal = 4;
public const int TrueMeleeGlacialStateTime = 30;
public const int TrueMeleeFrozenTime = 30;
public const float SmallSlashDamageFactor = 0.4f;
+1 -2
View File
@@ -27,8 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.UseSound = SoundID.Item14;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<PrismMine>();
Item.shootSpeed = 20f;
Item.useAmmo = AmmoID.Bullet;
Item.shootSpeed = 28f;
}
public override Vector2? HoldoutOffset() => new Vector2(-40f, -16f);
+7 -1
View File
@@ -3,6 +3,7 @@ using CalamityMod.Items.Weapons.Magic;
using CalamityMod.NPCs.DevourerofGods;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Rarities;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
@@ -16,6 +17,11 @@ namespace CalamityMod.Items.Weapons.Ranged
public class ThreadOfEradication : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetStaticDefaults()
{
CalamityItemSets.ShowScalingCritDamageTooltip[Type] = true;
}
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
tooltips.FindAndReplaceAll("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
@@ -24,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 40;
Item.height = 82;
Item.damage = 2570;
Item.damage = 1500;
Item.DamageType = DamageClass.Ranged;
Item.useTime = Item.useAnimation = 45;
Item.useStyle = ItemUseStyleID.Shoot;
-1
View File
@@ -70,7 +70,6 @@ namespace CalamityMod.Items.Weapons.Ranged
AddIngredient(ItemID.Flamethrower).
AddIngredient<Meowthrower>().
AddIngredient<LivingShard>(12).
AddIngredient<EssenceofSunlight>(5).
AddTile(TileID.MythrilAnvil).
Register();
}
+5 -5
View File
@@ -17,19 +17,19 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.width = 74;
Item.height = 68;
Item.damage = 166;
Item.damage = 204;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useTime = 6;
Item.useAnimation = 24;
Item.reuseDelay = 11;
Item.useTime = 5;
Item.useAnimation = 20;
Item.reuseDelay = 15;
Item.useLimitPerAnimation = 4;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 7.5f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<GhoulishGougerBoomerang>();
Item.shootSpeed = 16f;
Item.shootSpeed = 17f;
Item.DamageType = RogueDamageClass.Instance;
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon
Item.knockBack = 4f;
Item.mana = 10;
Item.damage = 28;
Item.damage = 46;
Item.useAnimation = Item.useTime = 36;
Item.buffType = ModContent.BuffType<AncientMineralSharkBuff>();
Item.shoot = ModContent.ProjectileType<ApexShark>();
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Summon
Item.UseSound = SoundID.Item42;
Item.DamageType = DamageClass.Summon;
Item.mana = 10;
Item.damage = 85;
Item.damage = 93;
Item.knockBack = 3f;
Item.autoReuse = true;
Item.useAnimation = Item.useTime = 24;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 50;
Item.height = 50;
Item.damage = 56;
Item.damage = 25;
Item.mana = 10;
Item.DamageType = DamageClass.Summon;
Item.sentry = true;
@@ -93,11 +93,6 @@ namespace CalamityMod.Items.Weapons.Summon
return false;
}
public override bool AltFunctionUse(Player player) => true;
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
tooltips.Insert(tooltips.FindIndex(0, (x) => x.Name == "Knockback")+1,new(Mod,"Minions",CalamityUtils.GetText("Common.MinionSlotCost").Format(4)));
}
}
#endregion
@@ -1,7 +1,7 @@
// Broken Biome Blade
DefaultAttunement: {
Name: Pure Clarity
Function: Fires a weak sword beam that crushes enemy defenses
Function: Fires a weak sword beam
}
HotAttunement: {
@@ -28,7 +28,7 @@ TrueDefaultAttunement: {
Name: Pure Clarity
Function:
'''
Fires a weak sword beam that crushes enemy defenses
Fires a weak sword beam
Landing three true melee hits charges a powerful lunge, unleashed when you stop swinging the sword
Enemies struck by the lunge are marked with a sigil that sword beams will home in on
'''
@@ -124,7 +124,7 @@ ShockwaveAttunement: {
'''
Charge an earth-shattering lunge, release to unleash a devastating blow
Homing sword beams are emitted as the sword charges up
Striking an enemy with the lunge creates a shockwave and marks them with an armor crunching sigil that attracts sword beam homing
Striking an enemy with the lunge creates a shockwave and marks them with a sigil that attracts sword beam homing
Striking the earth with the lunge will cause several blasts of dust to erupt around you
'''
PassiveDesc: Periodically emit large shock waves while attacking
@@ -53,7 +53,7 @@ CalamitasClone: {
CeaselessVoid: {
EntryName: Ceaseless Void
SpawnInfo: Use a [i:CalamityMod/RuneofKos] in the dungeon.
SpawnInfo: Use a [i:CalamityMod/MarkofProvidence] in the dungeon.
DespawnMessage: "[c/4B0082:The ancient spatial rift slips away to places unknown.]"
}
@@ -180,7 +180,7 @@ Ravager: {
Signus: {
EntryName: Signus
SpawnInfo: Use a [i:CalamityMod/RuneofKos] in the underworld.
SpawnInfo: Use a [i:CalamityMod/MarkofProvidence] in the underworld.
DespawnMessage: "[c/BA55D3:Signus inexplicably ceases to be where he once was.]"
}
@@ -192,7 +192,7 @@ SlimeGod: {
StormWeaver: {
EntryName: Storm Weaver
SpawnInfo: Use a [i:CalamityMod/RuneofKos] high in the sky or in space.
SpawnInfo: Use a [i:CalamityMod/MarkofProvidence] high in the sky or in space.
DespawnMessage: "[c/EE82EE:Storm Weaver hides itself within the fierce anvilhead clouds.]"
}
@@ -1068,7 +1068,7 @@ Bane: {
Description: An ancient curse envelops you
ItemTooltipEnemy:
'''
Typeless - 45 DPS
Typeless - 20 DPS
Does not scale with debuff multipliers
Scales based on your critical strike chance
'''
@@ -1126,12 +1126,6 @@ GalvanicCorrosion: {
ItemTooltipEnemy: Slows enemies
}
GlacialState: {
DisplayName: Glacial State
Description: Cannot move
ItemTooltipEnemy: Freezes enemies
}
IcarusFolly: {
DisplayName: Icarus' Folly
Description:
@@ -1209,7 +1203,7 @@ WitherDebuff: {
Withered...
Defense decreased by {0}
'''
ItemTooltipPlayer: Decreases defense
ItemTooltipEnemy: Decreases defense
}
// Summons
@@ -12,6 +12,7 @@ ArmorSetBonusKey: Press {0}
DoubleTapDown: Double tap {0}
// Miscellaneous stats/info
MinionSlotCost: Uses {0} minion slots
MinionSlotCostSingle: Uses {0} minion slot
AggroBoost: Enemies are more likely to target you
AggroReduction: Enemies are less likely to target you
KnockbackImmunity: Grants immunity to knockback
@@ -208,6 +208,15 @@ CalamityClientConfig: {
'''
}
BoCSpriteChange: {
Label: "[i:BrainOfConfusion] Remove Potentially Disturbing Imagery"
Tooltip:
'''
Replaces some boss sprites to remove potentially upsetting imagery that could trigger phobias.
Highly recommended if you are uncomfortable with body horror or have trypophobia.
'''
}
RageMeterPosX: {
Label: "[i:LaserRuler] Rage Meter X Position"
Tooltip:
@@ -189,7 +189,7 @@ AquaticHeart: {
Wow, you can swim now!
Being underwater increases max speed and acceleration by {0}%
Greatly reduces breath loss and reduces the darkness intensity in the abyss
Attackers are inflicted with [cbuff:CalamityMod/GlacialState]
Attackers are inflicted with [cbuff:Frozen]
Gain a fragile ice barrier that grants {1}% damage reduction for one hit
The ice shield regenerates after {2} seconds
'''
@@ -756,8 +756,16 @@ FeatherCrown: {
DisplayName: Feather Crown
Tooltip:
'''
15% increased rogue projectile velocity
Stealth strikes cause feathers to fall from the sky on enemy hits
Summons a [c/81B7F7:Skyline Feather] every 2 seconds, up to a maximum of 5
Each [c/81B7F7:Skyline Feather] increases magic damage by 2% and decreases mana cost by 1%
With 5 feathers, increases magic critical strike chance by 5% and all magic attacks inflict [cbuff:CalamityMod/StaticDischarge]
Running out of mana or drinking a mana potion sheds all feathers
Upon shedding a feather, no new feathers can be gained for 5 seconds
'''
HoldShiftTooltip:
'''
[c/81B7F7:Young mages would don feathers and gaze into the starlit night, as if welcoming the breath of the heavens.]
[c/81B7F7:To commune with mana was to commune with the world, and further, its draconic masters.]
'''
}
@@ -783,8 +791,12 @@ FleshTotem: {
DisplayName: Flesh Totem
Tooltip:
'''
Halves enemy contact damage
When you take contact damage this effect has a 20 second cooldown
5% increased magic critical strike chance
+30 max mana
Summons an effigy above your head that stores mana as you use it, up to 600 mana
The effigy occasionally pulses, restoring 20 mana
Pulses appear more frequently the more mana is stored
Upon being struck, the effigy unleashes all stored up mana as vengeful souls that chase your enemies
'''
}
@@ -1118,9 +1130,18 @@ MoonstoneCrown: {
DisplayName: Moonstone Crown
Tooltip:
'''
15% increased rogue projectile velocity
Stealth strikes release lunar flares on enemy hits
Rogue projectiles summon homing moon sigils as they travel
+70 max mana
Summons a [c/27F5E0:Lunar Sigil] every 2 seconds, up to a maximum of 10
Each [c/27F5E0:Lunar Sigil] increases magic damage by 2% and reduces mana cost by 1%
With 5 sigils, increases mana regeneration by +5 MP/s
With 10 sigils, increases magic critical strike chance by 10% and all magic attacks inflict [cbuff:CalamityMod/Nightwither]
Running out of mana or using a mana potion shatters all sigils
Upon shattering a sigil, no new sigils can appear for 5 seconds
'''
HoldShiftTooltip:
'''
[c/27F5E0:Countless tears were shed over Chrysadia's marring: when its eventide clouds gave way not to beloved stars,]
[c/27F5E0:or to dear patrons, but to a ravenous void and its unyielding dread.]
'''
}
@@ -1153,7 +1174,7 @@ NecklaceofVexation: {
'''
Up to 30% increased damage the lower your life is
Current boost: [DAMAGE]%
All attacks inflict acid venom
All attacks inflict [cbuff:Venom]
Revenge
'''
}
@@ -1660,7 +1681,7 @@ SpringStool: {
DisplayName: Spring Stool
Tooltip:
'''
Hold Up to reach higher
Hold {$Key.UP} to reach higher
Press [KEY] to jump super high
Super jumps can only be performed once every {0} seconds and after landing
+{1}% critical strike chance when striking enemies below you
@@ -2070,7 +2091,7 @@ VoidofCalamity: {
Tooltip:
'''
12% increased damage
Brimstone fire rains down after getting hit
Calamitous flames rain down while invincible
'''
}
@@ -48,7 +48,13 @@ CinderArrow: {
DryadsTear: {
DisplayName: Dryad's Tear
Tooltip: Splits into homing shards on impact which ignore 10 points of enemy defense
Tooltip:
'''
An extremely powerful magic bullet blessed with nature's essence that becomes unstable when multiple are nearby
Carries a teardrop along with it which on impact will detach and crash down upon the hit enemy and burst
All bullet and teardrop hits have 18 armor penetration
[c/40E091:'Focus. Breathe. Just one more shot, and the violence will fade away...']
'''
}
ElysianArrow: {
@@ -110,7 +116,7 @@ HyperiusBullet: {
Damage that would be dealt from the bullets is instead stored on the target
As more damage is stored, it will begin to overflow, slowly releasing and damaging the enemy
Attacks from sources other than Hyperius Bullets will release some of the charge
Releasing charge in this way is 20% more efficent
Releasing charge in this way is 20% more efficient
'''
}
@@ -202,6 +202,7 @@ CoralSpout: {
'''
Casts a shotgun-like blast of coral shards
Keep the attack button held down to narrow the spread
Coral shards ignore 5 points of enemy defense
Fully charging the attack releases a single, bigger chunk of coral that sticks to enemies
Grabbing the chunk of coral after it falls from the enemy replenishes 150 mana
The mana-charged coral also provides the [cbuffplr:CalamityMod/CoralSymbiosis] buff
@@ -878,7 +878,7 @@ MonolithSword: {
MonstrousKnives: {
DisplayName: Monstrous Knives
Tooltip: Throws a spread of short-range knives that have a chance to heal the user
Tooltip: Throws a spread of short-range knives that heal the user
}
Mourningstar: {
@@ -288,3 +288,7 @@ WyvernFeatherPurple.DisplayName: Feather
WyvernProjectile.DisplayName: Wyvern
YharimsCrystalBeam.DisplayName: Yharim's Beam
YharimsCrystalPrism.DisplayName: Yermes Christal
FleshTotemMinion.DisplayName: Flesh Totem Minion
FleshTotemSoul.DisplayName: Flesh Totem Soul
SpectralFeather.DisplayName: Spectral Feather
MoonSigil.DisplayName: Moon Sigil
@@ -67,7 +67,6 @@ DrizzlefishFire.DisplayName: Drizzlefish Flames
DrizzlefishFireball.DisplayName: Drizzlefish Fireball
DrizzlefishFireSplit.DisplayName: Drizzlefish Flames
DryadsTearMain.DisplayName: Dryad's Tear
DryadsTearSplit.DisplayName: Dryad's Tear
ElysianArrowProj.DisplayName: Elysian Arrow
ElysianArrowRain.DisplayName: Elysian Light
EmesisGore.DisplayName: Rotten Gore
@@ -176,7 +176,6 @@ MetalShard.DisplayName: Metal Shard
MeteorFistProj.DisplayName: Meteor Fist Gud For A Lot Of Shtuff
MeteorFistMeteorite.DisplayName: Meteorite REALLY Gud For A Lot Of Shtuff
MoltenAmputatorProj.DisplayName: Molten Amputator
MoonSigil.DisplayName: Moon Sigil
MycorootProj.DisplayName: Mycoroot
MythrilKnifeProjectile.DisplayName: Mythril Knife
@@ -136,7 +136,7 @@ SlimeStream.DisplayName: Slime Stream
SlurperBobber.DisplayName: Slurper Bobber
SpiritOriginBullseye.DisplayName: Spirit Origin Bullseye
SpringStoolFX.DisplayName: Spring Stool
StandingFire.DisplayName: Flame
StandingFire.DisplayName: Calamitous Flame
StarStruckWaterBottle.DisplayName: Bottle
StepStoolBonusFX.DisplayName: Step Stool Bonus
StickyFeatherAero.DisplayName: Feather
@@ -142,11 +142,7 @@ EditedTooltip: {
/*
OOA armors
*/
ApprenticeHat: Increases your max number of sentries by 1, 10% reduced mana cost
ApprenticeRobe: 15% increased summon damage and magic damage
ApprenticeTrousers: 10% increased summon damage, 15% increased magic critical strike chance, 20% increased movement speed
SquireGreatHelm: Increases your max number of sentries by 1 and grants +2 HP/s life regen
SquireGreaves: 10% increased summon damage, 15% increased melee critical strike chance and movement speed
MonkBrows: Increases your max number of sentries by 1 and increases rogue velocity by 20%
MonkShirt: 20% increased summon and rogue damage
MonkPants: 15% increased rogue critical strike chance and 20% increased movement speed
@@ -41,6 +41,7 @@ Slimed.ItemTooltipEnemy: Enhances Heat debuff damage
Wet.ItemTooltipEnemy: Enhances Electric debuff damage
Confused.ItemTooltipEnemy: Reverses movement
Webbed.ItemTooltipEnemy: Slows enemies
Frozen.ItemTooltipEnemy: Freezes enemies
Electrified: {
ItemTooltipPlayer: Electric - 4 DPS. Deals 5x damage to moving players
+2 -8
View File
@@ -14,7 +14,6 @@ using Terraria;
using Terraria.Audio;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.GameContent.ItemDropRules;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Utilities;
@@ -520,13 +519,8 @@ namespace CalamityMod.NPCs.AcidRain
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
// If post-Polter, the drop rates are 10%. Otherwise they're 100%.
// This is accomplished by adding rules if the CONDITION "Post-Polter" fails.
LeadingConditionRule postPolter = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedPolterghast);
postPolter.Add(ModContent.ItemType<NuclearFuelRod>(), 10, hideLootReport: !DownedBossSystem.downedPolterghast);
postPolter.Add(ModContent.ItemType<SpentFuelContainer>(), 10, hideLootReport: !DownedBossSystem.downedPolterghast);
postPolter.AddFail(ModContent.ItemType<NuclearFuelRod>(), hideLootReport: DownedBossSystem.downedPolterghast);
postPolter.AddFail(ModContent.ItemType<SpentFuelContainer>(), hideLootReport: DownedBossSystem.downedPolterghast);
npcLoot.Add(ModContent.ItemType<NuclearFuelRod>());
npcLoot.Add(ModContent.ItemType<SpentFuelContainer>());
npcLoot.Add(ModContent.ItemType<CragmawMireTrophy>(), 10);
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<CragmawMireRelic>());
-10
View File
@@ -155,16 +155,6 @@ namespace CalamityMod.NPCs.AquaticScourge
enrageScale += 2f;
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = getFuckedAI;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Fire teeth
if (calamityGlobalNPC.newAI[0] == 1f && (!phase3 || phase4))
{
@@ -151,16 +151,6 @@ namespace CalamityMod.NPCs.AquaticScourge
enrageScale += 2f;
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = getFuckedAI;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Kill body and tail
bool shouldDespawn = true;
for (int i = 0; i < Main.maxNPCs; i++)
-10
View File
@@ -291,16 +291,6 @@ namespace CalamityMod.NPCs.AquaticScourge
}
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = doSpiral || getFuckedAI;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Spawn segments
if (calamityGlobalNPC.newAI[2] == 0f && NPC.ai[0] == 0f)
{
-10
View File
@@ -150,16 +150,6 @@ namespace CalamityMod.NPCs.AquaticScourge
enrageScale += 2f;
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = getFuckedAI;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Kill body and tail
bool shouldDespawn = true;
for (int i = 0; i < Main.maxNPCs; i++)
+1 -1
View File
@@ -137,7 +137,7 @@ namespace CalamityMod.NPCs.AstrumAureus
float lifeRatio = NPC.life / (float)NPC.lifeMax;
// Phase 2 check
bool phase2 = lifeRatio <= 0.5f || Main.IsItDay();
bool phase2 = lifeRatio <= 0.5f;
// Charge towards the target and explode after some time
int inertia = 30;
+11 -10
View File
@@ -341,7 +341,7 @@ namespace CalamityMod.NPCs.AstrumDeus
}
}
SoundEngine.PlaySound(AstrumDeusHead.SplitSound, player.Center);
SoundEngine.PlaySound(SplitSound, player.Center);
}
return;
}
@@ -401,10 +401,18 @@ namespace CalamityMod.NPCs.AstrumDeus
for (int segments = 0; segments < maxLength; segments++)
{
int lol;
// Spawn offsets prevent the body segments from spawning bunched on top of each other, which is exploitable
if (segments >= 0 && segments < maxLength - 1)
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, bodyType, NPC.whoAmI);
{
Vector2 bodySpawnOffset = NPC.velocity.SafeNormalize(Vector2.UnitY) * NPC.height * (segments + 1) / 2;
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)(NPC.Center.X - bodySpawnOffset.X), (int)(NPC.Center.Y - bodySpawnOffset.Y), bodyType, NPC.whoAmI);
}
else
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, tailType, NPC.whoAmI);
{
Vector2 tailSpawnOffset = NPC.velocity.SafeNormalize(Vector2.UnitY) * NPC.height * maxLength / 2;
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)(NPC.Center.X - tailSpawnOffset.X), (int)(NPC.Center.Y - tailSpawnOffset.Y), tailType, NPC.whoAmI);
}
if (segments % 2 == 0)
Main.npc[lol].localAI[3] = 1f;
@@ -761,13 +769,6 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.rotation = (float)Math.Atan2(NPC.velocity.Y, NPC.velocity.X) + MathHelper.PiOver2;
// Play spawn sound on Deus on the first frame because otherwise the sound wouldn't play properly in multiplayer
if (calamityGlobalNPC.newAI[1] == 0f && !doubleWormPhase)
{
SoundEngine.PlaySound(SpawnSound, NPC.Center);
calamityGlobalNPC.newAI[1] = 1f;
}
// 5 seconds of resistance in phase 2, 10 seconds in phase 1, to prevent spawn killing
if (calamityGlobalNPC.newAI[1] < resistanceTime && ((NPC.position - NPC.oldPosition).Length() > 2f || calamityGlobalNPC.newAI[1] > 1f))
calamityGlobalNPC.newAI[1] += 1f;
-10
View File
@@ -139,16 +139,6 @@ namespace CalamityMod.NPCs.Bumblebirb
bool revenge = CalamityWorld.revenge || BossRushEvent.BossRushActive;
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = NPC.ai[0] == 3f || NPC.ai[0] == 3.1f || NPC.ai[0] == 3.2f;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// If target is outside the jungle for more than 5 seconds, enrage
if (!player.ZoneJungle && !BossRushEvent.BossRushActive)
{
+14 -29
View File
@@ -252,15 +252,10 @@ namespace CalamityMod.NPCs
/// <summary> If set to true, allows for manually disabling this NPC's Boss Health Bar, even if they are still active. </summary>
public bool ShouldCloseHPBar = false;
/// <summary> Constant representing the cooldown, in frames, before a boss can be affected by a slowing debuff. </summary>
public const int slowingDebuffResistanceMin = 1800;
/// <summary> Tracks the current slowing debuff cooldown for this NPC. </summary>
public int debuffResistanceTimer = 0;
#region Debuffs
public bool vaporfied = false;
public bool timeDistortion = false;
public bool glacialState = false;
public bool frozen = false;
public bool galvanicCorrosion = false;
public bool temporalSadness = false;
public bool eutrophication = false;
@@ -387,7 +382,6 @@ namespace CalamityMod.NPCs
public int ladHearts = 0;
public bool relicOfResilienceWeakness = false;
public bool sagePoison = false;
public int sagePoisonDamage = 0;
public bool vulnerabilityHex = false;
public bool trueVulnerabilityHex = false;
public bool banishingFire = false;
@@ -550,11 +544,9 @@ namespace CalamityMod.NPCs
myClone.CanHaveBossHealthBar = CanHaveBossHealthBar;
myClone.ShouldCloseHPBar = ShouldCloseHPBar;
myClone.debuffResistanceTimer = debuffResistanceTimer;
myClone.vaporfied = vaporfied;
myClone.timeDistortion = timeDistortion;
myClone.glacialState = glacialState;
myClone.frozen = frozen;
myClone.galvanicCorrosion = galvanicCorrosion;
myClone.temporalSadness = temporalSadness;
myClone.eutrophication = eutrophication;
@@ -636,7 +628,6 @@ namespace CalamityMod.NPCs
myClone.ladHearts = ladHearts;
myClone.relicOfResilienceWeakness = relicOfResilienceWeakness;
myClone.sagePoison = sagePoison;
myClone.sagePoisonDamage = sagePoisonDamage;
myClone.vulnerabilityHex = vulnerabilityHex;
myClone.trueVulnerabilityHex = trueVulnerabilityHex;
myClone.banishingFire = banishingFire;
@@ -751,12 +742,9 @@ namespace CalamityMod.NPCs
//Debuff Bool clearing.
// Doze 2jun2025 - Moved here from PostAI so drawing can read the bools.
if (debuffResistanceTimer > 0)
debuffResistanceTimer--;
timeDistortion = false;
galvanicCorrosion = false;
glacialState = false;
frozen = false;
temporalSadness = false;
eutrophication = false;
webbed = false;
@@ -1217,7 +1205,6 @@ namespace CalamityMod.NPCs
if (npc.type == NPCID.WallofFleshEye)
npc.netAlways = true;
sagePoisonDamage = 0;
if (npc.type == NPCID.Golem && (CalamityWorld.revenge || BossRushEvent.BossRushActive))
npc.noGravity = true;
@@ -1301,7 +1288,10 @@ namespace CalamityMod.NPCs
npc.lifeMax *= 4;
break;
case NPCID.BrainofCthulhu:
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.75);
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.95);
break;
case NPCID.Creeper:
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.1);
break;
case NPCID.QueenBee:
npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.8);
@@ -3324,10 +3314,6 @@ namespace CalamityMod.NPCs
laserBurnDamage = 0;
}
// Queen Bee is completely immune to having her movement impaired if not in a high difficulty mode.
if (npc.type == NPCID.QueenBee && !CalamityWorld.revenge && !BossRushEvent.BossRushActive)
return;
// Pearl Aura shard spawning
// Slowing is handled in the general slowing code below
if (pearlAura)
@@ -3369,8 +3355,8 @@ namespace CalamityMod.NPCs
}
impalePacketTimer++;
// Apply slowing debuff effects
if (debuffResistanceTimer <= 0 || (debuffResistanceTimer > slowingDebuffResistanceMin))
// Apply slowing debuff effects, will not apply to bosses
if (!(CalamityNPCSets.ImmuneToSlowsAndOtherSpecialEffects[npc.type] || npc.boss))
{
// Slowing debuffs which set a velocity hard cap take priority first.
if (vulnerabilityHex)
@@ -3389,7 +3375,7 @@ namespace CalamityMod.NPCs
if (webbed)
velocitySlownessFactor += 0.15f;
if (glacialState)
if (frozen)
{
float baseSlownessFactor = 0.1f;
if (VulnerableToCold.HasValue)
@@ -3568,8 +3554,6 @@ namespace CalamityMod.NPCs
target.AddBuff(BuffType<ArmorCrunch>(), 480);
break;
case NPCID.GolemHead:
case NPCID.GolemHeadFree:
case NPCID.GolemFistRight:
case NPCID.GolemFistLeft:
if (CalamityWorld.revenge)
@@ -4881,7 +4865,7 @@ namespace CalamityMod.NPCs
// Calamity debuff coloring effects
// These are in order of precedence because they override each other.
if (glacialState)
if (frozen)
drawColor = Color.Cyan;
else if (auricRebuke)
@@ -4986,7 +4970,6 @@ namespace CalamityMod.NPCs
("CalamityMod/Buffs/StatDebuffs/Crumbling", NPC => NPC.Calamity().crumble),
("CalamityMod/Buffs/StatDebuffs/Eutrophication", NPC => NPC.Calamity().eutrophication),
("CalamityMod/Buffs/StatDebuffs/GalvanicCorrosion", NPC => NPC.Calamity().galvanicCorrosion),
("CalamityMod/Buffs/StatDebuffs/GlacialState", NPC => NPC.Calamity().glacialState),
("CalamityMod/Buffs/StatDebuffs/Irradiated", NPC => NPC.Calamity().irradiated),
("CalamityMod/Buffs/StatDebuffs/MarkedforDeath", NPC => NPC.Calamity().markedForDeath),
("CalamityMod/Buffs/StatDebuffs/PearlAura", NPC => NPC.Calamity().pearlAura),
@@ -5077,6 +5060,8 @@ namespace CalamityMod.NPCs
currentDebuffs.Add(TextureAssets.Buff[BuffID.Confused].Value);
if (npc.ichor)
currentDebuffs.Add(TextureAssets.Buff[BuffID.Ichor].Value);
if (frozen)
currentDebuffs.Add(TextureAssets.Buff[BuffID.Frozen].Value);
if (webbed)
currentDebuffs.Add(TextureAssets.Buff[BuffID.Webbed].Value);
if (npc.midas)
@@ -5487,7 +5472,7 @@ namespace CalamityMod.NPCs
if (target.damage > 0 && !target.boss && !target.friendly && !target.dontTakeDamage && target.type != NPCID.Creeper && target.type != NPCType<RavagerClawLeft>() &&
target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != NPCType<RavagerClawRight>() &&
target.type != NPCType<ReaperShark>() && target.type != NPCType<Mauler>() && target.type != NPCType<EidolonWyrmHead>() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight &&
target.type != NPCType<PrimordialWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[target.type] && !AcidRainEvent.AllMinibosses.Contains(target.type))
target.type != NPCType<PrimordialWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityNPCSets.ImmuneToSlowsAndOtherSpecialEffects[target.type] && !AcidRainEvent.AllMinibosses.Contains(target.type))
{
return true;
}
-10
View File
@@ -218,16 +218,6 @@ namespace CalamityMod.NPCs.Leviathan
NPC.dontTakeDamage = spawnAnimation;
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = NPC.ai[0] == 2f;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Despawn
if (!player.active || player.dead || Vector2.Distance(player.Center, npcCenter) > 5600f)
{
+3
View File
@@ -64,6 +64,9 @@ namespace CalamityMod.NPCs.Leviathan
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
int associatedNPCType = ModContent.NPCType<Anahita>();
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Ocean,
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.height = 40;
NPC.defense = 6;
NPC.LifeMaxNERB(130, 170, 7000);
NPC.LifeMaxNERB(120, 150, 7000);
if (Main.zenithWorld)
NPC.lifeMax *= 4;
+2 -2
View File
@@ -230,7 +230,7 @@ namespace CalamityMod.NPCs.Perforator
if (!TailSpawned)
{
int Previous = NPC.whoAmI;
int maxLength = death ? 27 : revenge ? 24 : expertMode ? 21 : 15;
int maxLength = death ? 27 : expertMode ? 21 : 15;
for (int segments = 0; segments < maxLength; segments++)
{
int lol;
@@ -509,7 +509,7 @@ namespace CalamityMod.NPCs.Perforator
}
}
if (NPC.Distance(player.Center) > 1280f)
if (NPC.Distance(player.Center) > 1120f)
NPC.velocity += (player.Center - NPC.Center).SafeNormalize(Vector2.UnitY) * turnSpeed;
NPC.rotation = (float)Math.Atan2((double)NPC.velocity.Y, (double)NPC.velocity.X) + MathHelper.PiOver2;
+3 -3
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.height = 68;
NPC.defense = 2;
NPC.LifeMaxNERB(130, 170, 7000);
NPC.LifeMaxNERB(120, 150, 7000);
if (Main.zenithWorld)
NPC.lifeMax *= 4;
@@ -422,7 +422,7 @@ namespace CalamityMod.NPCs.Perforator
}
}
if (NPC.Distance(player.Center) > 1280f)
if (NPC.Distance(player.Center) > 1120f)
NPC.velocity += (player.Center - NPC.Center).SafeNormalize(Vector2.UnitY) * turnSpeed;
NPC.rotation = (float)Math.Atan2(NPC.velocity.Y, NPC.velocity.X) + MathHelper.PiOver2;
@@ -465,7 +465,7 @@ namespace CalamityMod.NPCs.Perforator
public static int GetMediumPerforatorSegmentsCount()
{
return Main.getGoodWorld ? 20 : (CalamityWorld.death || BossRushEvent.BossRushActive) ? 14 : CalamityWorld.revenge ? 13 : Main.expertMode ? 12 : 10;
return Main.getGoodWorld ? 20 : (CalamityWorld.death || BossRushEvent.BossRushActive) ? 14 : Main.expertMode ? 12 : 10;
}
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
+2 -2
View File
@@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Perforator
if (!TailSpawned)
{
int Previous = NPC.whoAmI;
int maxLength = death ? 9 : revenge ? 8 : expertMode ? 7 : 5;
int maxLength = death ? 9 : expertMode ? 7 : 5;
for (int segments = 0; segments < maxLength; segments++)
{
int lol;
@@ -413,7 +413,7 @@ namespace CalamityMod.NPCs.Perforator
}
}
if (NPC.Distance(player.Center) > 1280f)
if (NPC.Distance(player.Center) > 1120f)
NPC.velocity += (player.Center - NPC.Center).SafeNormalize(Vector2.UnitY) * turnSpeed;
NPC.rotation = (float)Math.Atan2((double)NPC.velocity.Y, (double)NPC.velocity.X) + MathHelper.PiOver2;
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.height = 50;
NPC.defense = 10;
NPC.LifeMaxNERB(130, 170, 7000);
NPC.LifeMaxNERB(120, 150, 7000);
if (Main.zenithWorld)
NPC.lifeMax *= 4;
@@ -180,16 +180,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
nukeBarrageChallengeAmt *= 1.5f;
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = NPC.ai[0] == 0f || NPC.ai[0] == 4f;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Light
Lighting.AddLight((int)(NPC.Center.X / 16f), (int)(NPC.Center.Y / 16f), 0.3f, 0.7f, 0f);
-10
View File
@@ -341,16 +341,6 @@ namespace CalamityMod.NPCs.PrimordialWyrm
iceMistDuration *= 0.5f;
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = AIState == (float)Phase.FinalPhase || AIState == (float)Phase.ShadowFireballSpin;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Adjust opacity
bool invisiblePartOfChargePhase = calamityGlobalNPC.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC.newAI[2] <= chargePhaseGateValue + 1f && (AIState == (float)Phase.ChargeOne || AIState == (float)Phase.ChargeTwo || AIState == (float)Phase.FastCharge);
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC.newAI[2] <= lightningChargePhaseGateValue + 1f && AIState == (float)Phase.LightningCharge;
+4
View File
@@ -19,6 +19,7 @@ namespace CalamityMod.NPCs.Signus
public override void SetStaticDefaults()
{
NPCID.Sets.TrailingMode[Type] = 1;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
@@ -42,6 +43,9 @@ namespace CalamityMod.NPCs.Signus
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
int associatedNPCType = ModContent.NPCType<Signus>();
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
{
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheUnderworld,
@@ -569,7 +569,9 @@ public class BrainOfCthulhuAI : VanillaAIOverride
if (d > 592900) //770^2
distanceScaleFactor = 1 / (1 + (((float)Math.Sqrt(d) - 770) / 32f));
float spawnCounter = Time - Math.Abs(SpawnTime);
// Time spent in the spawn animation is shortened when summoned via item
float spawnAnimTimeReduction = (SummonedViaItem || BossRushEvent.BossRushActive) ? 120 : 0;
float spawnCounter = Time - Math.Abs(SpawnTime) + spawnAnimTimeReduction;
if (spawnCounter < 180)
{
@@ -686,7 +688,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride
AttackCounter++;
if (SummonedViaItem || BossRushEvent.BossRushActive)
SpawnDelay = 2;
SpawnDelay = 1;
else
SpawnDelay = AttackCounter switch
{
@@ -3096,7 +3098,7 @@ public class BrainOfCthulhuAI : VanillaAIOverride
return false;
}
public static int GetBrainOfCthuluCreepersCountRevDeath() => CalamityWorld.death ? 30 : 21;
public static int GetBrainOfCthuluCreepersCountRevDeath() => CalamityWorld.death ? 27 : 18;
public static List<int> GetAllValidTargets(Vector2 brainPosition)
{
@@ -177,7 +177,8 @@ public class CreeperAI : VanillaAIOverride
if (bocAI.SpawnTime != 0 && Time >= 0) //Brain has appeared
{
float brainTime = bossCounter - Math.Abs(bocAI.SpawnTime);
float spawnAnimTimeReduction = (SummonedViaItem || BossRushEvent.BossRushActive) ? 120 : 0;
float brainTime = bossCounter - Math.Abs(bocAI.SpawnTime) + spawnAnimTimeReduction;
if (brainTime < 180)
{
@@ -166,7 +166,7 @@ public class FalseBrain : ModNPC, ILocalizedModType
float endLerp = AttackTime / 60f;
float startLerp = SpawnTime / 60f;
if (BrainOfCthulhuSystem.IsBrainOfCthulhuTextureVanilla)
if (BrainOfCthulhuSystem.IsBrainOfCthulhuTextureVanilla && !CalamityClientConfig.Instance.BoCSpriteChange)
{
tex = TextureAssets.Npc[Type].Value;
frame = tex.Frame(7, 4, Variant, (int)NPC.frameCounter);
@@ -24,9 +24,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
// Variables
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
bool phase2 = lifeRatio < (death ? 0.6f : 0.7f);
bool phase3 = lifeRatio < (death ? 0.3f : 0.4f);
bool phase4 = lifeRatio < (death ? 0.1f : 0.2f);
bool phase2 = lifeRatio < 0.7f;
bool phase3 = lifeRatio < 0.4f;
bool phase4 = lifeRatio < 0.2f;
bool phase2AI = NPC.ai[0] > 4f;
bool phase3AI = NPC.ai[0] > 9f;
bool charging = NPC.ai[3] < 10f;
@@ -243,7 +243,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
int whoAmI = NPC.whoAmI;
float ai0Holdover = NPC.ai[0];
float newAI1Holdover = calamityGlobalNPC.newAI[1];
int slowingDebuffResistTimer = calamityGlobalNPC.debuffResistanceTimer;
// Actually transform the body segment into a head segment.
NPC.SetDefaultsKeepPlayerInteraction(NPC.type);
@@ -253,7 +252,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
// Heads spawned mid fight by splitting do not get reset spawn invincibility.
CalamityGlobalNPC newCGN = NPC.Calamity();
newCGN.newAI[1] = newAI1Holdover;
newCGN.debuffResistanceTimer = slowingDebuffResistTimer;
CalamityUtils.CalamityTargeting(NPC, CalamityTargetingParameters.BossDefaults);
@@ -268,14 +266,12 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
float segmentLifeRatio = MathHelper.Lerp(0.5f, 1f, NPC.life / (float)NPC.lifeMax);
int whoAmI = NPC.whoAmI;
float ai1Holdover = NPC.ai[1];
int slowingDebuffResistTimer = calamityGlobalNPC.debuffResistanceTimer;
// Actually transform the body segment into a tail segment.
NPC.SetDefaultsKeepPlayerInteraction(NPC.type);
NPC.life = (int)(NPC.lifeMax * segmentLifeRatio);
NPC.whoAmI = whoAmI;
NPC.ai[1] = ai1Holdover;
NPC.Calamity().debuffResistanceTimer = slowingDebuffResistTimer;
CalamityUtils.CalamityTargeting(NPC, CalamityTargetingParameters.BossDefaults);
@@ -744,8 +744,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
// Expert attack or not.
bool expertAttack = calamityGlobalNPC.newAI[2] == 0f;
int numLanceWalls = expertAttack ? 6 : 4;
float lanceWallSpawnGateValue = expertAttack ? (death ? 42f : 36f) : 54f;
int numLanceWalls = (death && !expertAttack) ? 9 : 6;
float lanceWallSpawnGateValue = expertAttack ? 50f : (death ? 32f : 45f);
if (dayTimeEnrage)
lanceWallSpawnGateValue -= expertAttack ? 4f : 6f;
@@ -760,73 +760,26 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
{
SoundEngine.PlaySound(SoundID.Item162, NPC.Center);
float totalProjectiles = death ? 18f : 15f;
float lanceSpacing = death ? 150f : 175f;
float totalProjectiles = death ? 19f : 15f;
float lanceSpacing = death ? (expertAttack ? 150f : 200f) : 175f;
float lanceWallSize = totalProjectiles * lanceSpacing;
Vector2 lanceSpawnOffset = targetData9.Center;
if (NPC.Distance(lanceSpawnOffset) <= 3200f)
{
Vector2 lanceWallStartingPosition = Vector2.Zero;
Vector2 lanceWallDirection = Vector2.UnitY;
float lanceWallConvergence = 0.4f;
float lanceWallSizeMult = 1.4f;
totalProjectiles += 5f;
lanceSpacing += 50f;
lanceWallSize *= (death ? 0.7f : 0.5f);
float direction = 1f;
int randomLanceWallType;
do randomLanceWallType = Main.rand.Next(numLanceWalls);
while (randomLanceWallType == calamityGlobalNPC.newAI[3]);
// This is set so that Empress doesn't use the same wall type twice in a row.
calamityGlobalNPC.newAI[3] = randomLanceWallType;
lanceWallSize *= (death && expertAttack) ? 0.7f : 0.5f;
// Used to give the lance walls a random rotation.
calamityGlobalNPC.newAI[3] = Main.rand.NextFloat(MathHelper.TwoPi);
// Keeps track of the total number of lance walls used.
calamityGlobalNPC.newAI[1] += 1f;
// Sync the Calamity AI variables.
NPC.SyncExtraAI();
switch (randomLanceWallType)
{
case 0:
lanceSpawnOffset += new Vector2((0f - lanceWallSize) / 2f, 0f) * direction;
lanceWallStartingPosition = new Vector2(0f, lanceWallSize);
lanceWallDirection = Vector2.UnitX;
break;
case 1:
lanceSpawnOffset += new Vector2(lanceWallSize / 2f, lanceSpacing / 2f) * direction;
lanceWallStartingPosition = new Vector2(0f, lanceWallSize);
lanceWallDirection = -Vector2.UnitX;
break;
case 2:
lanceSpawnOffset += new Vector2(0f - lanceWallSize, 0f - lanceWallSize) * lanceWallConvergence * direction;
lanceWallStartingPosition = new Vector2(lanceWallSize * lanceWallSizeMult, 0f);
lanceWallDirection = new Vector2(1f, 1f);
break;
case 3:
lanceSpawnOffset += new Vector2(lanceWallSize * lanceWallConvergence + lanceSpacing / 2f, (0f - lanceWallSize) * lanceWallConvergence) * direction;
lanceWallStartingPosition = new Vector2((0f - lanceWallSize) * lanceWallSizeMult, 0f);
lanceWallDirection = new Vector2(-1f, 1f);
break;
case 4:
lanceSpawnOffset += new Vector2(0f - lanceWallSize, lanceWallSize) * lanceWallConvergence * direction;
lanceWallStartingPosition = new Vector2(lanceWallSize * lanceWallSizeMult, 0f);
lanceWallDirection = lanceSpawnOffset.DirectionTo(targetData9.Center);
break;
case 5:
lanceSpawnOffset += new Vector2(lanceWallSize * lanceWallConvergence + lanceSpacing / 2f, lanceWallSize * lanceWallConvergence) * direction;
lanceWallStartingPosition = new Vector2((0f - lanceWallSize) * lanceWallSizeMult, 0f);
lanceWallDirection = lanceSpawnOffset.DirectionTo(targetData9.Center);
break;
}
lanceSpawnOffset += -Vector2.UnitX.RotatedBy(calamityGlobalNPC.newAI[3]) * (lanceWallSize / 2f);
Vector2 lanceWallStartingPosition = Vector2.UnitY.RotatedBy(calamityGlobalNPC.newAI[3]) * lanceWallSize;
Vector2 lanceWallDirection = calamityGlobalNPC.newAI[3].ToRotationVector2();
int projectileType = ProjectileID.FairyQueenLance;
int projectileDamage = lanceDamage;
@@ -846,16 +799,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
Projectile.NewProjectile(NPC.GetSource_FromAI(), spawnLocation, Vector2.Zero, projectileType, projectileDamage, 0f, Main.myPlayer, v2.ToRotation(), i);
}
}
// Chance to stop using the lance walls and switch to a different attack after 3 lance walls are used.
if (Main.netMode != NetmodeID.MultiplayerClient)
{
if (Main.rand.NextBool(5 - ((int)calamityGlobalNPC.newAI[1] - 2)) && calamityGlobalNPC.newAI[1] >= 2f)
{
NPC.ai[1] = lanceWallPhaseTime;
NPC.netUpdate = true;
}
}
}
NPC.ai[1] += 1f;
@@ -930,9 +873,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, rainbowStreakVelocity, projectileType, projectileDamage, 0f, Main.myPlayer, NPC.target, ai3);
if (Main.getGoodWorld)
Main.projectile[proj].extraUpdates += 1;
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, rainbowStreakVelocity, projectileType, projectileDamage, 0f, Main.myPlayer, NPC.target, ai3);
}
// Spawn extra homing Rainbow Streaks per player.
@@ -1166,12 +1107,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + projRandomOffset, vector, projectileType, projectileDamage, 0f, Main.myPlayer, NPC.target, streakHomeTime);
if (phase3)
{
int proj2 = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + projRandomOffset, -vector, projectileType, projectileDamage, 0f, Main.myPlayer, NPC.target, 1f - streakHomeTime);
if (Main.getGoodWorld)
{
Main.projectile[proj2].extraUpdates += 1;
Main.projectile[proj2].netUpdate = true;
}
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + projRandomOffset, -vector, projectileType, projectileDamage, 0f, Main.myPlayer, NPC.target, 1f - streakHomeTime);
}
}
@@ -136,16 +136,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if (Main.player[NPC.target].dead)
NPC.ai[0] = 7f;
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = NPC.ai[0] == 0f;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
// Always start in enemy spawning phase
if (calamityGlobalNPC.newAI[3] == 0f)
{
@@ -326,38 +326,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
// Spawn crown gore
if (NPC.ai[1] == teleportTime)
{
Gore.NewGore(NPC.GetSource_FromAI(), NPC.Center + new Vector2(-40f, -NPC.height / 2), NPC.velocity, GoreID.QueenSlimeCrown);
// Spawn spread of projectiles in Master Mode
if (death)
{
int numGelProjectiles = 12;
if (Main.getGoodWorld)
numGelProjectiles = 15;
float gelVelocity = death ? 20f : 16f;
int type = ProjectileID.QueenSlimeGelAttack;
if (Main.netMode != NetmodeID.MultiplayerClient)
{
for (int j = 0; j < numGelProjectiles; j++)
{
Vector2 spinningpoint = new Vector2(gelVelocity, 0f);
if (Main.getGoodWorld)
spinningpoint *= Main.rand.NextFloat() + 0.5f;
spinningpoint = spinningpoint.RotatedBy((float)(-j) * MathHelper.TwoPi / (float)numGelProjectiles, Vector2.Zero);
int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, spinningpoint, type, LargeGelDamage, 0f, Main.myPlayer, 0f, -2f);
Main.projectile[proj].timeLeft = 900;
}
}
SoundEngine.PlaySound(SoundID.Item155, NPC.Center);
}
}
if (NPC.ai[1] >= teleportTime && Main.netMode != NetmodeID.MultiplayerClient)
{
NPC.Bottom = new Vector2(NPC.localAI[1], NPC.localAI[2]);
@@ -459,9 +429,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
NPC.ai[2] += 1f;
}
if (death)
NPC.velocity.X *= (death ? 1.4f : 1.2f);
NPC.noTileCollide = true;
}
else
@@ -527,15 +494,15 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
int type = ProjectileID.QueenSlimeSmash;
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Bottom, Vector2.Zero, type, SlamDamage, 0f, Main.myPlayer);
// Line of explosions in Master Mode
// Line of explosions in Death Mode
if (death)
{
float expandDelay = 0f;
int maxSmashes = death ? 22 : 16;
int maxSmashes = 16;
float maxSmashOffset = maxSmashes * 100f;
Vector2 extraSmashPosition = NPC.Bottom + Vector2.UnitX * maxSmashOffset;
int maxSmashesPerSide = maxSmashes / 2;
float maxExpandDelay = (death ? 10f : 15f) * maxSmashesPerSide;
float maxExpandDelay = 15f * maxSmashesPerSide;
float smashSpawnDistanceOffset = 200f;
for (int i = 0; i < maxSmashes + 1; i++)
{
@@ -550,7 +517,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
// Eruption of crystals in phase 3
if (NPC.ai[0] == 6f && phase3)
{
float projectileVelocity = death ? 18f : 12f;
float projectileVelocity = 12f;
type = ProjectileID.QueenSlimeMinionBlueSpike;
Vector2 destination = (new Vector2(NPC.Center.X, NPC.Center.Y - 100f) - NPC.Center).SafeNormalize(Vector2.UnitY);
destination *= projectileVelocity;
@@ -564,7 +531,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if (phase5)
{
numProj = 15;
numProj = 12;
destination *= 0.65f;
for (int i = 0; i < numProj; i++)
{
@@ -853,7 +820,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
// Spawn small slimes
// Don't spawn any slimes in final phase
if (NPC.life <= 0 || (phase4 && !death))
if (NPC.life <= 0 || (phase4 && !death) || phase5)
return false;
if (Main.netMode == NetmodeID.MultiplayerClient)
@@ -926,7 +893,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
float flyVelocity = death ? 19f : 16f;
float flyAcceleration = death ? 0.15f : 0.12f;
float flyDistanceY = death ? 350f : 450f;
float flyDistanceY = 450f;
Vector2 desiredVelocity = npc.Center;
@@ -1005,7 +972,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
float num20 = obj.Center.Y - center.Y;
float num21 = (float)Math.Sqrt(num19 * num19 + num20 * num20);
int num22 = NPC.CountNPCS(NPCID.QueenSlimeMinionBlue);
if (Main.expertMode && num22 < 5 && Math.Abs(num19) < 500f && Math.Abs(num20) < 550f && Collision.CanHit(NPC.position, NPC.width, NPC.height, Main.player[NPC.target].position, Main.player[NPC.target].width, Main.player[NPC.target].height) && NPC.velocity.Y == 0f)
if (num22 < 5 && Math.Abs(num19) < 500f && Math.Abs(num20) < 550f && Collision.CanHit(NPC.position, NPC.width, NPC.height, Main.player[NPC.target].position, Main.player[NPC.target].width, Main.player[NPC.target].height) && NPC.velocity.Y == 0f)
{
NPC.ai[0] = -40f;
if (NPC.velocity.Y == 0f)
@@ -1026,8 +993,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
vector6 *= 1.5f;
int type = ProjectileID.QueenSlimeMinionBlueSpike;
Projectile.NewProjectile(NPC.GetSource_FromAI(), center, vector6 * (death ? 0.8f : 0.5f), type, SpikeDamage, 0f, Main.myPlayer);
NPC.localAI[0] = 25f;
Projectile.NewProjectile(NPC.GetSource_FromAI(), center, vector6 * (death ? 0.7f : 0.5f), type, SpikeDamage, 0f, Main.myPlayer);
NPC.localAI[0] = death ? 50f : 25f;
if (num22 > 4)
break;
}
@@ -1053,9 +1020,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
num19 *= num21;
num20 *= num21;
NPC.localAI[0] = 50f;
NPC.localAI[0] = death ? 100f : 50f;
int type = ProjectileID.QueenSlimeMinionBlueSpike;
Vector2 spikeVelocity = new Vector2(num19, num20) * (death ? 0.8f : 0.5f);
Vector2 spikeVelocity = new Vector2(num19, num20) * (death ? 0.7f : 0.5f);
Projectile.NewProjectile(NPC.GetSource_FromAI(), center, spikeVelocity, type, SpikeDamage, 0f, Main.myPlayer);
}
}
@@ -1113,7 +1080,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if ((double)NPC.velocity.X > -0.1 && (double)NPC.velocity.X < 0.1)
NPC.velocity.X = 0f;
NPC.ai[0] += (death ? 16f : Main.expertMode ? 10f : 7f);
NPC.ai[0] += death ? 16f : 10f;
float num33 = -1000f;
@@ -1136,14 +1103,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if (num34 == 3)
{
NPC.velocity.Y = -8f;
NPC.velocity.X += (death ? 9 : Main.expertMode ? 6 : 3) * NPC.direction;
NPC.velocity.X += (death ? 9 : 6) * NPC.direction;
NPC.ai[0] = -200f;
NPC.ai[3] = NPC.position.X;
}
else
{
NPC.velocity.Y = -6f;
NPC.velocity.X += (death ? 6 : Main.expertMode ? 4 : 2) * NPC.direction;
NPC.velocity.X += (death ? 6 : 4) * NPC.direction;
NPC.ai[0] = -120f;
if (num34 == 1)
NPC.ai[0] += num33;
@@ -1208,12 +1175,10 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
num24 *= num26;
num25 *= num26;
NPC.localAI[0] = 40f;
if (Main.expertMode)
NPC.localAI[0] = 30f;
NPC.localAI[0] = death ? 60f : 30f;
int type = ProjectileID.QueenSlimeMinionPinkBall;
Vector2 pinkBallVelocity = new Vector2(num24, num25) * (death ? 0.8f : 0.5f);
Vector2 pinkBallVelocity = new Vector2(num24, num25) * (death ? 0.7f : 0.5f);
Projectile.NewProjectile(NPC.GetSource_FromAI(), center2, pinkBallVelocity, type, SmallGelDamage, 0f, Main.myPlayer);
}
}
@@ -1271,7 +1236,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if ((double)NPC.velocity.X > -0.1 && (double)NPC.velocity.X < 0.1)
NPC.velocity.X = 0f;
NPC.ai[0] += (death ? 11f : Main.expertMode ? 7f : 5f);
NPC.ai[0] += death ? 11f : 7f;
float num33 = -500f;
@@ -1294,14 +1259,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
if (num34 == 3)
{
NPC.velocity.Y = -8f;
NPC.velocity.X += (death ? 9 : Main.expertMode ? 6 : 3) * NPC.direction;
NPC.velocity.X += (death ? 9 : 6) * NPC.direction;
NPC.ai[0] = -200f;
NPC.ai[3] = NPC.position.X;
}
else
{
NPC.velocity.Y = -6f;
NPC.velocity.X += (death ? 6 : Main.expertMode ? 4 : 2) * NPC.direction;
NPC.velocity.X += (death ? 6 : 4) * NPC.direction;
NPC.ai[0] = -120f;
if (num34 == 1)
NPC.ai[0] += num33;
@@ -147,16 +147,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
SoundEngine.PlaySound(SoundID.ForceRoar, NPC.Center);
}
// Adjust slowing debuff immunity
bool immuneToSlowingDebuffs = NPC.ai[1] == 5f;
NPC.buffImmune[ModContent.BuffType<GlacialState>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TemporalSadness>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Eutrophication>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<TimeDistortion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<GalvanicCorrosion>()] = immuneToSlowingDebuffs;
NPC.buffImmune[ModContent.BuffType<Vaporfied>()] = immuneToSlowingDebuffs;
NPC.buffImmune[BuffID.Webbed] = immuneToSlowingDebuffs;
bool normalLaserRotation = NPC.localAI[1] % 2f == 0f;
// Float near player
+141
View File
@@ -0,0 +1,141 @@
using System;
using CalamityMod.Systems.Graphic.PixelationSystem;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Particles
{
public class CustomColorChangeSpark : Particle
{
public Color InitialColor;
public Color EndColor;
public bool AffectedByGravity;
public bool FadeIn = false;
public float FadeInScale = 0f;
public bool GlowCenter = false;
public float GlowCenterScale = 1;
public float GlowOpacity = 1;
public string NewTexture;
public float ExtraRotation;
public Vector2 Stretch = new Vector2(0.5f, 1.6f);
public float ShrinkSpeed = 0;
public bool FlipHorizontal = false;
public bool NoShrink = false;
public float Spin = 0;
public float ColorFadeSpeed = 0;
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public bool AltVisual = true;
public override bool UseAdditiveBlend => AltVisual;
public override bool SetLifetime => true;
public override bool UseCustomDraw => true;
public CustomColorChangeSpark(Vector2 relativePosition, Vector2 velocity, string texture, bool affectedByGravity, int lifetime, float scale, Color startColor, Color endColor, Vector2 stretch, bool useAddativeBlend = true, bool glowCenter = false, float extraRotation = 0, bool fadeIn = false, bool affectedByLight = false, float shrinkSpeed = 0, float glowCenterScale = 1, float glowOpacity = 1, bool flipHorizontal = false, bool noShrink = false, float spin = 0, float colorFadeSpeed = 3)
{
Position = relativePosition;
Velocity = velocity;
NewTexture = texture;
ExtraRotation = extraRotation;
AffectedByGravity = affectedByGravity;
AffectedByLight = affectedByLight;
Scale = scale;
Stretch = stretch;
FadeInScale = scale;
Lifetime = lifetime;
Color = InitialColor = startColor;
EndColor = endColor;
ShrinkSpeed = shrinkSpeed;
AltVisual = useAddativeBlend;
GlowCenter = glowCenter;
GlowCenterScale = glowCenterScale;
GlowOpacity = glowOpacity;
FlipHorizontal = flipHorizontal;
NoShrink = noShrink;
FadeIn = fadeIn;
if (FadeIn)
Scale = 0f;
Spin = spin;
ColorFadeSpeed = colorFadeSpeed;
}
public override void Update()
{
if (!FadeIn)
{
if (!NoShrink)
Scale *= 0.95f;
Color = Color.Lerp(InitialColor, EndColor, LifetimeCompletion);
}
else
{
if ((float)Time / (float)Lifetime < 0.5f)
{
Scale = MathHelper.Lerp(Scale, FadeInScale, 0.2f);
}
else
{
Scale = MathHelper.Lerp(Scale, FadeInScale, -0.21f);
}
}
Velocity *= 0.95f;
if (Velocity.Length() < 12f && AffectedByGravity)
{
Velocity.X *= 0.94f;
Velocity.Y += 0.25f;
}
ExtraRotation += Spin;
Rotation = Velocity.ToRotation() + MathHelper.PiOver2 + ExtraRotation;
Stretch.X *= (1 - 0.2f * ShrinkSpeed);
Stretch.Y *= (1 + 0.2f * ShrinkSpeed);
}
public override void CustomDraw(SpriteBatch spriteBatch)
{
Vector2 scale = Stretch * Scale;
Texture2D texture = ModContent.Request<Texture2D>(NewTexture).Value;
float scaleMult = 1;
if (Main.zenithWorld)
{
DateTime day = DateTime.Now;
if (day.DayOfWeek == DayOfWeek.Tuesday)
{
Texture2D joke = ModContent.Request<Texture2D>("CalamityMod/Particles/MammothParticle").Value;
scaleMult = (MathHelper.Lerp(texture.Size().X / joke.Size().X, texture.Size().Y / joke.Size().Y, 0.5f));
texture = joke;
AltVisual = true;
}
}
Color col = Color;
if (AffectedByLight)
{
col = Lighting.GetColor((Position / 16).ToPoint()).MultiplyRGB(Color);
}
if (Pixelate)
{
PixelationManager.AddPixelatedDrawer((_) =>
{
float fadeOut = (1 - (float)Math.Pow(LifetimeCompletion, ColorFadeSpeed));
spriteBatch.Draw(texture, Position - Main.screenPosition, null, col * fadeOut, Rotation, texture.Size() * 0.5f, scale * scaleMult, FlipHorizontal ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0f);
if (GlowCenter)
spriteBatch.Draw(texture, Position - Main.screenPosition, null, Color.Lerp(col, Color.White, 0.8f) * fadeOut * GlowOpacity, Rotation, texture.Size() * 0.5f, scale * 0.8f * GlowCenterScale * scaleMult, FlipHorizontal ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0);
}, Enums.GeneralDrawLayer.AfterProjectiles, UseAdditiveBlend ? BlendState.Additive : null);
}
else
{
float fadeOut = (1 - (float)Math.Pow(LifetimeCompletion, ColorFadeSpeed));
spriteBatch.Draw(texture, Position - Main.screenPosition, null, col * fadeOut, Rotation, texture.Size() * 0.5f, scale * scaleMult, FlipHorizontal ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0f);
if (GlowCenter)
spriteBatch.Draw(texture, Position - Main.screenPosition, null, Color.Lerp(col, Color.White, 0.8f) * fadeOut * GlowOpacity, Rotation, texture.Size() * 0.5f, scale * 0.8f * GlowCenterScale * scaleMult, FlipHorizontal ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 0);
}
}
}
}
+8 -2
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Boss
public const int TotalSinePeriods = 6;
public const int PulseTime = 45;
public const int TotalRitualTime = 420;
public const float MaxUpwardRise = 540f;
public const float MaxUpwardRise = 900f;
public static readonly Point PulseSize = new(300, 300);
public override void SetDefaults()
{
@@ -42,11 +42,17 @@ namespace CalamityMod.Projectiles.Boss
Time++;
if (Time == TotalRitualTime - PulseTime)
{
SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, Projectile.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)MaxUpwardRise, ModContent.NPCType<AstrumDeusHead>(), 1);
int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)(MaxUpwardRise * 3f), ModContent.NPCType<AstrumDeusHead>(), 1);
if (idx != -1)
{
CalamityUtils.BossAwakenMessage(idx);
Main.npc[idx].velocity = Vector2.UnitY * 20f;
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, idx);
}
}
}
}
+98 -116
View File
@@ -4095,20 +4095,6 @@ namespace CalamityMod.Projectiles
}
}
}
else if (modPlayer.moonCrown)
{
if (Main.player[projectile.owner].miscCounter % 120 == 0 && projectile.FinalExtraUpdate())
{
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<MoonSigil>()] < 5)
{
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(42);
int proj = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<MoonSigil>(), damage, 0f, projectile.owner);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].DamageType = DamageClass.Generic;
}
}
}
if (modPlayer.dragonScales)
{
@@ -4318,153 +4304,149 @@ namespace CalamityMod.Projectiles
}
}
if (brimstoneBullets)
if (projectile.Opacity > 0 && projectile.scale > 0.01f) // Only apply bullet visuals if the bullet is visible
{
PointParticle spark = new PointParticle(projectile.Center + projectile.velocity * 3, projectile.velocity, false, 2, 0.9f, Color.Crimson * 0.7f);
GeneralParticleHandler.SpawnParticle(spark);
if (brimstoneBullets)
{
PointParticle spark = new PointParticle(projectile.Center + projectile.velocity * 3, projectile.velocity, false, 2, 0.9f * projectile.scale, Color.Crimson * 0.7f);
GeneralParticleHandler.SpawnParticle(spark);
Dust dust = Dust.NewDustPerfect(projectile.Center - projectile.velocity, Main.rand.NextBool(3) ? 90 : DustType<BrimstoneFlame>(), projectile.velocity * Main.rand.NextFloat(0.05f, 0.9f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.5f, 1f);
}
if (fireBullet)
{
if (projectile.timeLeft > 200)
Dust dust = Dust.NewDustPerfect(projectile.Center - projectile.velocity, Main.rand.NextBool(3) ? 90 : DustType<BrimstoneFlame>(), projectile.velocity * Main.rand.NextFloat(0.05f, 0.9f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.5f, 1f) * projectile.scale;
}
if (fireBullet)
{
float helixOffset = (float)Math.Sin(projectile.timeLeft / 25f * MathHelper.TwoPi) * 8f;
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation);
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation) * projectile.scale;
for (int i = 0; i < 2; ++i)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + spawnOffset, Main.rand.NextBool() ? 174 : 6, projectile.velocity * Main.rand.NextFloat(0.1f, 0.9f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.4f, 0.8f);
dust.scale = Main.rand.NextFloat(0.4f, 0.8f) * projectile.scale;
}
}
}
if (iceBullet)
{
if (projectile.timeLeft > 200)
if (iceBullet)
{
float helixOffset = (float)Math.Sin(projectile.timeLeft / 25f * MathHelper.TwoPi) * -8f;
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation);
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation) * projectile.scale;
for (int i = 0; i < 2; ++i)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + spawnOffset, Main.rand.NextBool() ? 135 : 137, projectile.velocity * Main.rand.NextFloat(0.1f, 0.9f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.4f, 0.8f);
dust.scale = Main.rand.NextFloat(0.4f, 0.8f) * projectile.scale;
}
}
}
if (shockBullet)
{
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (projectile.timeLeft > 200 && targetDist < 1400f)
if (shockBullet)
{
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, -projectile.velocity * 0.05f, false, 2, 1.1f, Color.Turquoise * 0.75f);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool(3))
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (targetDist < 1400f)
{
SparkParticle spark2 = new SparkParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6), -projectile.velocity * Main.rand.NextFloat(0.05f, 0.4f), false, 20, 0.4f, Color.Turquoise * 0.75f);
GeneralParticleHandler.SpawnParticle(spark2);
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, -projectile.velocity * 0.05f, false, 2, 1.1f * projectile.scale, Color.Turquoise * 0.75f);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool(3))
{
SparkParticle spark2 = new SparkParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6) * projectile.scale, -projectile.velocity * Main.rand.NextFloat(0.05f, 0.4f), false, 20, 0.4f * projectile.scale, Color.Turquoise * 0.75f);
GeneralParticleHandler.SpawnParticle(spark2);
}
}
}
}
if ((pearlBullet1 || pearlBullet2 || pearlBullet3))
{
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (projectile.timeLeft > 200 && targetDist < 1400f)
if ((pearlBullet1 || pearlBullet2 || pearlBullet3))
{
Color color = pearlBullet1 ? Color.LightBlue : pearlBullet2 ? Color.LightPink : Color.Khaki;
Particle spark = new GlowSparkParticle(projectile.Center + projectile.velocity * 1.5f, -projectile.velocity * 0.05f, false, 3, 0.0093f, color, new Vector2(0.6f, 1.8f), false, false);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool(5))
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (targetDist < 1400f)
{
PearlParticle pearl1 = new PearlParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6), -projectile.velocity * Main.rand.NextFloat(0.05f, 0.3f), false, Main.rand.Next(15, 20 + 1), Main.rand.NextFloat(0.4f, 0.55f), color, 0.9f, Main.rand.NextFloat(1, -1), true);
GeneralParticleHandler.SpawnParticle(pearl1);
Color color = pearlBullet1 ? Color.LightBlue : pearlBullet2 ? Color.LightPink : Color.Khaki;
Particle spark = new GlowSparkParticle(projectile.Center + projectile.velocity * 1.5f, -projectile.velocity * 0.05f, false, 3, 0.0093f * projectile.scale, color, new Vector2(0.6f, 1.8f), false, false);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool(5))
{
PearlParticle pearl1 = new PearlParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6) * projectile.scale, -projectile.velocity * Main.rand.NextFloat(0.05f, 0.3f), false, Main.rand.Next(15, 20 + 1), Main.rand.NextFloat(0.4f, 0.55f) * projectile.scale, color, 0.9f, Main.rand.NextFloat(1, -1), true);
GeneralParticleHandler.SpawnParticle(pearl1);
}
}
}
}
if (lifeBullet)
{
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (projectile.timeLeft > 200 && targetDist < 1400f)
if (lifeBullet)
{
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, -projectile.velocity * 0.05f, false, 2, 0.85f, Color.White * 0.75f);
GeneralParticleHandler.SpawnParticle(spark);
for (int i = 0; i < 2; ++i)
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (targetDist < 1400f)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + projectile.velocity, DustID.AncientLight, -projectile.velocity * Main.rand.NextFloat(0.1f, 0.9f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.65f, 0.9f);
dust.alpha = 100;
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, -projectile.velocity * 0.05f, false, 2, 0.85f * projectile.scale, Color.White * 0.75f);
GeneralParticleHandler.SpawnParticle(spark);
for (int i = 0; i < 2; ++i)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + projectile.velocity, DustID.AncientLight, -projectile.velocity * Main.rand.NextFloat(0.1f, 0.9f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.65f, 0.9f) * projectile.scale;
dust.alpha = 100;
}
}
}
}
#region betterLifeBullet
if (betterLifeBullet1)
{
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (projectile.timeLeft > 200 && targetDist < 1400f)
#region betterLifeBullet
if (betterLifeBullet1)
{
int randomColor = Main.rand.Next(1, 3 + 1);
Color color = randomColor == 1 ? Color.LightBlue : randomColor == 2 ? Color.LightPink : Color.Khaki;
float helixOffset = (float)Math.Sin(projectile.timeLeft / 25f * MathHelper.TwoPi) * -8f;
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation);
for (int i = 0; i < 3; ++i)
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (targetDist < 1400f)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + spawnOffset, DustID.FireworksRGB, projectile.velocity * Main.rand.NextFloat(0.05f, 0.2f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.35f, 0.45f);
dust.color = color;
}
int randomColor = Main.rand.Next(1, 3 + 1);
Color color = randomColor == 1 ? Color.LightBlue : randomColor == 2 ? Color.LightPink : Color.Khaki;
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, projectile.velocity * 0.05f, false, 2, 0.85f, color);
GeneralParticleHandler.SpawnParticle(spark);
float helixOffset = (float)Math.Sin(projectile.timeLeft / 25f * MathHelper.TwoPi) * -8f;
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation);
if (Main.rand.NextBool(3))
{
SparkParticle spark3 = new SparkParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6), -projectile.velocity * Main.rand.NextFloat(0.05f, 0.3f), false, 20, 0.55f, color * 0.5f);
GeneralParticleHandler.SpawnParticle(spark3);
for (int i = 0; i < 3; ++i)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + spawnOffset, DustID.FireworksRGB, projectile.velocity * Main.rand.NextFloat(0.05f, 0.2f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.35f, 0.45f) * projectile.scale;
dust.color = color;
}
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, projectile.velocity * 0.05f, false, 2, 0.85f * projectile.scale, color);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool(3))
{
SparkParticle spark3 = new SparkParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6) * projectile.scale, -projectile.velocity * Main.rand.NextFloat(0.05f, 0.3f), false, 20, 0.55f * projectile.scale, color * 0.5f);
GeneralParticleHandler.SpawnParticle(spark3);
}
}
}
}
if (betterLifeBullet2)
{
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (projectile.timeLeft > 200 && targetDist < 1400f)
if (betterLifeBullet2)
{
int randomColor = Main.rand.Next(1, 3 + 1);
Color color = randomColor == 1 ? Color.LightBlue : randomColor == 2 ? Color.LightPink : Color.Khaki;
float helixOffset = (float)Math.Sin(projectile.timeLeft / 25f * MathHelper.TwoPi) * 8f;
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation);
for (int i = 0; i < 3; ++i)
float targetDist = Vector2.Distance(player.Center, projectile.Center);
if (targetDist < 1400f)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + spawnOffset, DustID.FireworksRGB, projectile.velocity * Main.rand.NextFloat(0.05f, 0.2f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.35f, 0.45f);
dust.color = color;
}
int randomColor = Main.rand.Next(1, 3 + 1);
Color color = randomColor == 1 ? Color.LightBlue : randomColor == 2 ? Color.LightPink : Color.Khaki;
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, projectile.velocity * 0.05f, false, 2, 0.85f, color);
GeneralParticleHandler.SpawnParticle(spark);
float helixOffset = (float)Math.Sin(projectile.timeLeft / 25f * MathHelper.TwoPi) * 8f;
Vector2 spawnOffset = new Vector2(helixOffset, 10f).RotatedBy(projectile.rotation) * projectile.scale;
if (Main.rand.NextBool(3))
{
SparkParticle spark3 = new SparkParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6), -projectile.velocity * Main.rand.NextFloat(0.05f, 0.3f), false, 20, 0.55f, color * 0.5f);
GeneralParticleHandler.SpawnParticle(spark3);
for (int i = 0; i < 3; ++i)
{
Dust dust = Dust.NewDustPerfect(projectile.Center + spawnOffset, DustID.FireworksRGB, projectile.velocity * Main.rand.NextFloat(0.05f, 0.2f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.35f, 0.45f) * projectile.scale;
dust.color = color;
}
SparkParticle spark = new SparkParticle(projectile.Center + projectile.velocity, projectile.velocity * 0.05f, false, 2, 0.85f * projectile.scale, color);
GeneralParticleHandler.SpawnParticle(spark);
if (Main.rand.NextBool(3))
{
SparkParticle spark3 = new SparkParticle(projectile.Center + Main.rand.NextVector2Circular(6, 6) * projectile.scale, -projectile.velocity * Main.rand.NextFloat(0.05f, 0.3f), false, 20, 0.55f * projectile.scale, color * 0.5f);
GeneralParticleHandler.SpawnParticle(spark3);
}
}
}
#endregion
}
#endregion
}
}
#endregion
@@ -126,6 +126,7 @@ namespace CalamityMod.Projectiles
{ ProjectileID.ButchersChainsaw, Do(TrueMeleeNoSpeed, ArmorPenetrationDelta(+15), LocalIFrames(10), ScaleExact(1.5f)) },
{ ProjectileID.ChlorophyteChainsaw, standardChainsawTweaks },
{ ProjectileID.ChlorophyteDrill, standardDrillTweaks },
{ ProjectileID.ChlorophyteJackhammer, standardDrillTweaks },
{ ProjectileID.ChlorophyteOrb, Do(NoPiercing) },
{ ProjectileID.CobaltChainsaw, standardChainsawTweaks },
{ ProjectileID.CobaltDrill, standardDrillTweaks },
@@ -143,7 +144,7 @@ namespace CalamityMod.Projectiles
{ ProjectileID.DeadlySphere, Do(LocalIFrames(30)) },
{ ProjectileID.EmeraldBolt, Do(NoPiercing) },
{ ProjectileID.EnchantedBoomerang, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) },
{ ProjectileID.ExplosiveBullet, Do(ExtraUpdatesDelta(+2), IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes
{ ProjectileID.ExplosiveBullet, Do(ExtraUpdatesDelta(+2), IDStaticIFrames(5), SingleHitImmunity) }, // Has an exception in Vanilla iframe code, uses 5 iframes
{ ProjectileID.FairyQueenRangedItemShot, Do(PiercingExact(7), ExtraUpdatesExact(1)) }, // Eventide Convert
{ ProjectileID.FlaironBubble, Do(ExtraUpdatesExact(1), TimeLeftExact(150), DefaultIDStaticIFrames) },
{ ProjectileID.Flamarang, Do(ExtraUpdatesExact(2), DefaultIDStaticIFrames) },
@@ -217,7 +218,6 @@ namespace CalamityMod.Projectiles
#endregion
#region CATEGORY 3: True Melee support
{ ProjectileID.ChlorophyteJackhammer, trueMeleeNoSpeed },
{ ProjectileID.CopperShortswordStab, trueMelee },
{ ProjectileID.DarkLance, trueMelee },
{ ProjectileID.GoldShortswordStab, trueMelee },
@@ -460,7 +460,6 @@ namespace CalamityMod.Projectiles
{ ProjectileID.NettleBurstLeft, defaultIFrames },
{ ProjectileID.NettleBurstRight, defaultIFrames },
{ ProjectileID.NightBeam, defaultIFrames },
{ ProjectileID.NorthPoleSnowflake, defaultIFrames },
{ ProjectileID.NorthPoleSpear, defaultIFrames },
{ ProjectileID.NorthPoleWeapon, defaultIFrames },
{ ProjectileID.NurseSyringeHeal, defaultIFrames },
+3 -3
View File
@@ -1,5 +1,6 @@
using System;
using CalamityMod.Dusts;
using CalamityMod.Utilities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
@@ -84,13 +85,12 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
target.MoveNPC(launchVel, launchPower, true, Owner);
if (Projectile.ai[2] == 5)
modifiers.SetCrit();
modifiers.ApplyScalingForcedCrit(Projectile);
float critDamage = Math.Min(Owner.GetTotalCritChance(Projectile.DamageType) * 0.01f, 1f);
float minMult = 0.3f;
int hitsToMinMult = 7;
float damageMult = Utils.Remap(Projectile.numHits, 0, hitsToMinMult, 1, minMult, true);
modifiers.SourceDamage *= (Projectile.ai[2] == 5 ? (1f + critDamage) : 1) * damageMult;
modifiers.SourceDamage *= damageMult;
if (Projectile.numHits == 0)
{
@@ -1,5 +1,6 @@
using System;
using CalamityMod.Particles;
using CalamityMod.Utilities;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
@@ -54,13 +55,13 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
modifiers.SetCrit();
modifiers.ApplyScalingForcedCrit(Projectile);
Player Owner = Main.player[Projectile.owner];
float critDamage = Math.Min(Owner.GetTotalCritChance(Projectile.DamageType) * 0.01f, 1f);
float minMult = 0.25f;
int hitsToMinMult = 7;
float damageMult = Utils.Remap(Projectile.numHits, 0, hitsToMinMult, 1, minMult, true);
modifiers.SourceDamage *= damageMult + critDamage;
modifiers.SourceDamage *= damageMult;
Vector2 launchVel = Projectile.velocity.SafeNormalize(Vector2.UnitX);
float launchPower = 40;
@@ -1,8 +1,9 @@
using CalamityMod.Dusts;
using System;
using CalamityMod.Dusts;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Utilities;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ModLoader;
@@ -78,13 +79,13 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
if (onKill && Projectile.numHits > 0)
Projectile.numHits--;
modifiers.SetCrit();
modifiers.ApplyScalingForcedCrit(Projectile);
Player Owner = Main.player[Projectile.owner];
float critDamage = Math.Min(Owner.GetTotalCritChance(Projectile.DamageType) * 0.01f, 1f);
float minMult = 0.25f;
int hitsToMinMult = 7;
float damageMult = Utils.Remap(Projectile.numHits, 0, hitsToMinMult, 1, minMult, true);
modifiers.SourceDamage *= damageMult + critDamage;
modifiers.SourceDamage *= damageMult;
Vector2 launchVel = Projectile.velocity.SafeNormalize(Vector2.UnitX);
float launchPower = 20;
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Magic
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.Frostburn2, 180);
target.AddBuff(ModContent.BuffType<GlacialState>(), 30);
target.AddBuff(BuffID.Frozen, 30);
}
public override Color? GetAlpha(Color lightColor)
+1 -1
View File
@@ -149,7 +149,7 @@ namespace CalamityMod.Projectiles.Magic
if (Owner.whoAmI == Main.myPlayer)
{
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.MountedCenter + direction * 30f, direction * 35, ModContent.ProjectileType<ManaChargedCoral>(), (int)Projectile.damage * (ShotProjectiles + 1), Projectile.knockBack, Owner.whoAmI);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.MountedCenter + direction * 30f, direction * 35, ModContent.ProjectileType<ManaChargedCoral>(), (int)Projectile.damage * 7, Projectile.knockBack, Owner.whoAmI);
}
Color pulseColor = Main.rand.NextBool() ? Color.Coral : Color.DeepSkyBlue;
+1 -1
View File
@@ -131,7 +131,7 @@ namespace CalamityMod.Projectiles.Magic
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<GlacialState>(), 30);
target.AddBuff(BuffID.Frozen, 30);
target.AddBuff(BuffID.Frostburn2, 180);
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Loaded 100 of 176 files, more files were not shown because too many files have changed in this diff. Show more