Merge branch '1.4.4' into MegalodonLine

This commit is contained in:
sunny-raindrops committed 2025-07-06 11:16:10 -07:00
commit 49e1579a43
658 files changed
+3723 -5757

No files matched your search

+93 -2
View File
@@ -73,6 +73,7 @@ namespace CalamityMod.Backgrounds
// Leaving this here for other programmers, in case I don't get to doing this myself.
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.None, Main.Rasterizer, null, CalamityUtils.BackgroundMatrix);
DrawShoresBG();
DrawBurrowsBG();
Main.spriteBatch.End();
@@ -97,6 +98,7 @@ namespace CalamityMod.Backgrounds
// rendering code if that setting is on.
if (Main.WaveQuality > 0 || !CalamityClientConfig.Instance.SunkenSeaBackgroundDistortion)
{
DrawShoresBG();
DrawBurrowsBG();
}
else
@@ -123,14 +125,103 @@ namespace CalamityMod.Backgrounds
}
public static float Transparency;
public static float TransitionSpeed => 0.02f;
private static void DrawShoresBG()
{
if (Main.LocalPlayer.InModBiome(ModContent.GetInstance<BiomeManagers.TimelessShoresBiome>()))
{
Transparency += 1f;
if (Transparency > 1f)
Transparency = 1f;
}
else
{
// Make transparency immediately go down so it doesnt look weird, since vanilla underground backgrounds dont have the fade-in effect this background has.
Transparency -= 1f;
if (Transparency < 0f)
Transparency = 0f;
}
// Don't bother running any of the background drawing if the transparency is zero (meaning the background isnt actually active).
// Also do not run any of the background drawing if you have the vanilla background config option turned off.
if (Transparency > 0f && Main.BackgroundEnabled)
{
Vector2 vector = Main.screenPosition + new Vector2((Main.screenWidth >> 1), (Main.screenHeight >> 1));
float num = (Main.GameViewMatrix.Zoom.Y - 1f) * 0.5f * 200f;
float Scale = 1.5f;
float playerDrawPosition = ((Main.LocalPlayer.Center.Y / 16f) - 90) * 16f;
for (int Layers = 4; Layers >= 0; Layers--)
{
// Get each background texture.
Texture2D BGTexture = ModContent.Request<Texture2D>("CalamityMod/Backgrounds/SunkenSeaShoresBG" + Layers).Value;
Vector2 vector2 = new Vector2(BGTexture.Width, BGTexture.Height) * 0.5f;
float num2 = (Layers * 2 + 3f);
Vector2 vector3 = new Vector2(1f / num2);
Rectangle rectangle = new Rectangle(0, 0, BGTexture.Width, BGTexture.Height);
Vector2 zero = Vector2.Zero;
switch (Layers)
{
case 0:
{
zero.Y += 200f;
break;
}
case 1:
{
zero.Y += 0f;
break;
}
case 2:
{
zero.Y += 0f;
break;
}
case 3:
{
zero.Y += 0f;
break;
}
case 4:
{
zero.Y += 0f;
break;
}
}
vector2 *= Scale;
zero.Y -= num;
float LoopWidth = Scale * rectangle.Width;
float LoopHeight = Scale * rectangle.Height;
int LoopX = (int)((vector.X * vector3.X - vector2.X + zero.X - (Main.screenWidth >> 1)) / LoopWidth);
int LoopY = (int)((vector.Y * vector3.Y - vector2.Y + zero.Y - (Main.screenWidth >> 1)) / LoopWidth);
for (int i = LoopY - 2; i < LoopY + 4 + (int)(Main.screenWidth / LoopHeight); i++)
{
for (int j = LoopX - 2; j < LoopX + 4 + (int)(Main.screenWidth / LoopWidth); j++)
{
Vector2 drawPosition = (new Vector2(j * Scale * (rectangle.Width / vector3.X), playerDrawPosition) + vector2 - vector) * vector3 + vector - Main.screenPosition - vector2 + zero;
var frame = rectangle;
var color = Color.White * Transparency;
Main.spriteBatch.Draw(BGTexture, drawPosition, frame, color, 0f, Vector2.Zero, Scale, SpriteEffects.None, 0f);
}
}
}
}
}
private static void DrawBurrowsBG()
{
if (Main.LocalPlayer.InModBiome(ModContent.GetInstance<BiomeManagers.GleamingBurrowsBiome>()))
{
Transparency += TransitionSpeed;
Transparency += 1f;
if (Transparency > 1f)
Transparency = 1f;
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

+14 -64
View File
@@ -27,7 +27,6 @@ namespace CalamityMod.Balancing
{
public sealed class BalancingChangesManager : ModSystem
{
internal static List<IBalancingRule[]> UniversalBalancingChanges = null;
internal static List<NPCBalancingChange> NPCSpecificBalancingChanges = null;
// Balancing changes in this method are sorted based on place in progression, NPC name (from A-Z), and strength of resistance in ascending order, in that level of priority.
@@ -46,50 +45,12 @@ namespace CalamityMod.Balancing
bool DragonRageFilter(Projectile p) =>
p.type == ProjectileType<DragonRageStaff>() || p.type == ProjectileType<DragonRageFireball>() || (p.type == ProjectileType<FuckYou>() && p.CountsAsClass<MeleeDamageClass>());
// bool MonkStaffT3Filter(Projectile p) =>
// p.type == ProjectileID.MonkStaffT3_AltShot || (p.type == ProjectileID.Electrosphere && Main.player[p.owner].ActiveItem().type == ItemID.MonkStaffT3);
bool MushroomSpearFilter(Projectile p) =>
p.type == ProjectileID.Mushroom && Main.player[p.owner].ActiveItem().type == ItemID.MushroomSpear;
bool OrichalcumPetalFilter(Projectile p) =>
p.type == ProjectileID.FlowerPetal && Main.player[p.owner].onHitPetal;
bool SpectreMaskSetBonusFilter(Projectile p) =>
p.type == ProjectileID.SpectreWrath && Main.player[p.owner].ghostHurt;
bool AotCThrowCombo(Projectile p) =>
p.type == ProjectileType<ArkoftheCosmosSwungBlade>() && (p.ai[0] == 2 || p.ai[0] == 3);
bool HiveBeeFilter(Projectile p) =>
p.type == ProjectileType<BasicPlagueBee>() && Main.player[p.owner].ActiveItem().type == ItemType<TheHive>();
UniversalBalancingChanges = new List<IBalancingRule[]>()
{
// Nerf Crystal bullet shards by 45%
// Currently crystal bullet projectiles deal 50% of the bullet's damage which is absurd in vanilla, this nerfs them to 27.5%
Do(new ProjectileResistBalancingRule(0.55f, ProjectileID.CrystalShard)),
// Nerf Luminite Arrow trails by 50%.
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.MoonlordArrowTrail)),
// Nerf Seedler seeds by 25%.
Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.SeedlerNut, ProjectileID.SeedlerThorn)),
// Nerf Cursed Dart flames by 50%.
Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.CursedDartFlame)),
// Nerf Mushroom Spear projectiles by 50%.
Do(new ProjectileSpecificRequirementBalancingRule(0.5f, MushroomSpearFilter)),
// Nerf Orichalcum armor set bonus petals by 25%.
Do(new ProjectileSpecificRequirementBalancingRule(0.75f, OrichalcumPetalFilter)),
// Nerf Spectre Mask set bonus projectiles by 50%.
Do(new ProjectileSpecificRequirementBalancingRule(0.5f, SpectreMaskSetBonusFilter)),
};
NPCSpecificBalancingChanges = new List<NPCBalancingChange>();
#region Crabulon
@@ -97,23 +58,23 @@ namespace CalamityMod.Balancing
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<Crabulon>(), ResistTrueMelee(0.8f)));
#endregion
#region Brain of Cthulhu: Creepers
// 50% resist to true melee.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(ResistTrueMelee(0.5f))));
// 50% resist to Demon Scythe.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
#endregion
#region Eater of Worlds
// 50% resist to true melee.
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(ResistTrueMelee(0.5f))));
// 50% resist to Demon Scythe.
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
// 40% resist to Sky Glaze.
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<StickyFeather>()))));
// 25% resist to true melee.
NPCSpecificBalancingChanges.AddRange(Bundle(EaterOfWorldsIDList.List, Do(ResistTrueMelee(0.75f))));
#endregion
#region Brain of Cthulhu: Creepers
// 50% resist to Demon Scythe.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.DemonScythe))));
// 25% resist to true melee.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.Creeper, Do(ResistTrueMelee(0.75f))));
#endregion
#region The Perforators
@@ -202,8 +163,8 @@ namespace CalamityMod.Balancing
// 50% resist to Aegis Blade's explosions because the true melee resist ain't enough.
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<AegisBlast>()))));
// 50% resist to Icicle Arrows.
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<IcicleArrowProj>()))));
// 40% resist to Icicle Arrows.
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.6f, ProjectileType<IcicleArrowProj>()))));
// 35% resist to Flying Dragon.
NPCSpecificBalancingChanges.AddRange(Bundle(RavagerIDList.List, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2SquireSonicBoom))));
@@ -511,23 +472,12 @@ namespace CalamityMod.Balancing
public override void Unload()
{
UniversalBalancingChanges = null;
NPCSpecificBalancingChanges = null;
}
public static void ApplyFromProjectile(NPC npc, ref NPC.HitModifiers modifiers, Projectile proj)
{
// Apply universal balancing rules.
foreach (IBalancingRule[] balancingRules in UniversalBalancingChanges)
{
foreach (IBalancingRule balancingRule in balancingRules)
{
if (balancingRule.AppliesTo(npc, modifiers, proj))
balancingRule.ApplyBalancingChange(npc, ref modifiers);
}
}
// As well as rules specific to NPCs.
// Apply NPC-specific balancing rules.
foreach (NPCBalancingChange balanceChange in NPCSpecificBalancingChanges)
{
if (npc.type != balanceChange.NPCType)
+6 -38
View File
@@ -117,54 +117,22 @@
#endregion
#region Life Steal
// Life steal cap
// Life steal cap (Maximum HP healed per instance of lifesteal)
internal static readonly int LifeStealCap = 100;
// Life steal accessories require a more strict cooldown due to their ease of use and global application
internal static readonly float LifeStealAccessoryCooldownMultiplier = 3f;
// Life steal cooldown multipliers used for armor set bonuses
internal static readonly float LifeStealSetBonusCooldownMultiplier = 2f;
internal static readonly float LifeStealReaverTankCooldownMultiplier = 4f;
// The range was buffed in vanilla from 1200 to 3000 in 1.4.4, and I agree with that decision
internal static readonly float LifeStealRange = 3000f;
// Life steal caps (aka, how much life steal the player is allowed before it goes on cooldown)
internal static readonly float LifeStealCap_Classic = 60f;
internal static readonly float LifeStealCap_Expert = 50f;
internal static readonly float LifeStealCap_Revengeance = 40f;
internal static readonly float LifeStealCap_Death = 30f;
// Master nerfs the life steal cap by 10, resulting in 40 in non-Rev Master, 30 in Rev Master, and 20 in Death Master
internal static readonly float LifeStealCapReduction_Master = 10f;
// Base life steal caps from vanilla (aka, how much life steal the player is allowed before it goes on cooldown)
internal static readonly float LifeStealCap_Classic = 80f;
internal static readonly float LifeStealCap_Expert = 70f;
// The base life steal cooldowns from vanilla
internal static readonly float LifeStealRecoveryRate_Classic = 0.6f;
internal static readonly float LifeStealRecoveryRate_Expert = 0.5f;
// The calculations below show the time (in frames) for 10 life steal cooldown to recover in each difficulty
// Classic: 10 / 0.2 = 50
// Expert: 10 / 0.15 = 66.667
// Revengeance: 10 / 0.125 = 80
// Death: 10 / 0.1 = 100
// Master: 10 / 0.1 = 100
// Revengeance Master: 10 / 0.075 = 133.333
// Death Master: 10 / 0.05 = 200
// Nerfs the life steal recovery rate in Classic from 0.6/s to 0.2/s
// Nerfs the life steal recovery rate in Classic from 0.6 to 0.2 (36 HP/s to 12 HP/s)
internal static readonly float LifeStealRecoveryRateReduction_Classic = 0.4f;
// Nerfs the life steal recovery rate in Expert from 0.5/s to 0.15/s
// Nerfs the life steal recovery rate in Expert from 0.5 to 0.15 (30 HP/s to 9 HP/s)
internal static readonly float LifeStealRecoveryRateReduction_Expert = 0.35f;
// Nerfs the life steal recovery rate in Revengeance from 0.5/s to 0.125/s
internal static readonly float LifeStealRecoveryRateReduction_Revengeance = 0.375f;
// Nerfs the life steal recovery rate in Death from 0.5/s to 0.1/s
internal static readonly float LifeStealRecoveryRateReduction_Death = 0.4f;
// Nerfs the life steal recovery rate in Master by 0.05/s, resulting in 0.1/s in non-Rev Master, 0.075/s in Rev Master, and 0.05/s in Death Master
internal static readonly float LifeStealRecoveryRateReduction_Master = 0.05f;
#endregion
#region Rogue Base Stats
+17 -9
View File
@@ -115,6 +115,19 @@ namespace CalamityMod.Buffs
else if (type == BuffID.Rabies)
{
player.GetDamage<GenericDamageClass>() -= 0.2f;
// Reimplementation of random debuff infliction; now occurs on a consistent timer and with a different debuff list
if (player.buffTime[buffIndex] % 600 == 300)
{
int debuffType = Main.rand.Next(4) switch
{
0 => BuffID.Weak,
1 => BuffID.Bleeding,
2 => BuffID.Darkness,
_ => BuffID.BrokenArmor,
};
player.AddBuff(debuffType, Main.rand.Next(90, 211));
}
}
else if (type == BuffID.Werewolf)
{
@@ -151,15 +164,6 @@ namespace CalamityMod.Buffs
npc.DelBuff(buffIndex);
buffIndex--;
}
else if (type == BuffID.Slow)
{
if (npc.Calamity().slowed < npc.buffTime[buffIndex])
npc.Calamity().slowed = npc.buffTime[buffIndex];
if ((EnemyImmunitiesList.Includes(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().slowed;
npc.DelBuff(buffIndex);
buffIndex--;
}
if (type == BuffID.Electrified)
{
if (npc.Calamity().electrified < npc.buffTime[buffIndex])
@@ -251,6 +255,10 @@ namespace CalamityMod.Buffs
tip = tip.Replace("45", "22.5");
break;
case BuffID.Rabies:
tip = CalamityUtils.GetTextValue("Vanilla.BuffDescription.Rabies");
break;
case BuffID.SugarRush:
tip = tip.Replace("20", "10");
break;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 531 B

After

Width:  |  Height:  |  Size: 573 B

+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Buffs.StatBuffs
{
player.breath = player.breathMax + 3;
}
if (Main.myPlayer == player.whoAmI && player.wet && NPC.downedBoss3)
if (Main.myPlayer == player.whoAmI && player.Calamity().countsAsAnyWet && NPC.downedBoss3)
{
player.AddBuff(ModContent.BuffType<AquaticHeartWaterSpeed>(), 360);
}
-20
View File
@@ -18,11 +18,6 @@ namespace CalamityMod.Buffs.StatDebuffs
BuffID.Sets.LongerExpertDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().gState = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().gState < npc.buffTime[buffIndex])
@@ -32,20 +27,5 @@ namespace CalamityMod.Buffs.StatDebuffs
npc.DelBuff(buffIndex);
buffIndex--;
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
{
Player Player = drawInfo.drawPlayer;
if (Main.rand.NextBool(4))
{
Dust d = Dust.NewDustDirect(Player.Center - 10 * Vector2.One, 20, 20, DustID.IcyMerman);
d.noGravity = Main.rand.NextBool();
d.noLight = false;
d.velocity *= 0.2f;
d.velocity.Y -= Main.rand.NextFloat(0.4f, 0.6f);
d.scale = Main.rand.NextFloat(0.4f, 0.7f);
}
}
}
}
+10 -27
View File
@@ -175,6 +175,8 @@ namespace CalamityMod.CalPlayer
public int momentumCapacitorTime = 0;
/// <summary> A multiplier on the player's movement speed applied while using Momentum Capacitor. </summary>
public float momentumCapacitorBoost = 0f;
public bool countsAsAnyWet => (Player.armor[0].type == ItemID.FishBowl || Player.wetCount > 0 || Player.wet || Player.honeyWet || Player.lavaWet);
#endregion
#region Speedrun Timer
@@ -198,7 +200,6 @@ namespace CalamityMod.CalPlayer
#region External variables -- Not used by Calamity, only via Mod.Call or reflection
public int externalAbyssLight = 0;
public float externalBreathLossMultBoost = 0f;
public float externalBreathTickBoost = 0f;
public float externalFlightTimeMultBoost = 0f;
@@ -277,6 +278,8 @@ namespace CalamityMod.CalPlayer
public int evilSmasherBoost = 0;
/// <summary> Cooldown variable for spawning Plague Tainted SMG's drones from left-click bullets. </summary>
public int plagueTaintedSMGDroneCooldown = 0;
/// <summary> Cooldown variable which prevents using Firestorm Cannon or Spectralstorm Cannon during their overheat periods. </summary>
public int flareGunOverheat = 0;
/// <summary>
/// If true, this player's Brittle Star Staff minions are in their orbiting mode.<br/>
/// While in this mode, they orbit around the player, do not break on hits, and increase defense.
@@ -456,7 +459,7 @@ namespace CalamityMod.CalPlayer
/// This is obtained from a formula derived from the player's current stealth, the weapon's use time, and the player's stealth generation boosts.
/// </summary>
public float stealthDamage = 0f;
/// <summary> An additional damage multiplier applied to rogue stealth strikes. Used by Filthy Glove and its upgrades, and Rotten Dogtooth. </summary>
/// <summary> An additional damage multiplier applied to rogue stealth strikes. Used by Filthy Glove, Rotten Dogtooth and their upgrades. </summary>
public double bonusStealthDamage = 0;
public float rogueVelocity = 1f;
#endregion
@@ -661,8 +664,6 @@ namespace CalamityMod.CalPlayer
#endregion
#region Abyss
/// <summary> The amount of breath lost on each tick while in the Abyss. </summary>
public float abyssBreathLossStat = 0;
/// <summary> The rate at which breath is lost while in the Abyss. </summary>
public float abyssBreathLossRateStat = 0;
/// <summary> The rate at which health is decreased after running out of breath while in the Abyss. </summary>
@@ -719,8 +720,8 @@ namespace CalamityMod.CalPlayer
public bool gladiatorSword = false;
public int gladiatorTimer = 0;
public bool unstableGraniteCore = false;
public bool regenator = false;
public float regenatorDamage = 0;
public bool regenerator = false;
public float regeneratorDamage = 0;
public bool theBee = false;
public bool arcFlashRing = false;
public bool arcFlashRingVisual = false;
@@ -1146,8 +1147,6 @@ namespace CalamityMod.CalPlayer
public int titanCooldown = 0;
public bool umbraphileSet = false;
public bool reaverSpeed = false;
public bool reaverRegen = false;
public int reaverRegenCooldown = 0;
public bool reaverDefense = false;
public bool reaverExplore = false;
public bool fathomSwarmer = false;
@@ -1265,7 +1264,6 @@ namespace CalamityMod.CalPlayer
public bool pFlames = false;
public bool hFlames = false;
public bool hInferno = false;
public bool gState = false;
public bool bBlood = false;
public bool brainRot = false;
public bool heavybleeding = false;
@@ -2004,7 +2002,6 @@ namespace CalamityMod.CalPlayer
Player.statLifeMax2 += 45;
int percentMaxLifeIncrease = 0;
// Blood Pact and Chalice of the Blood God stack their HP bonuses if you want to equip both
if (bloodPact)
percentMaxLifeIncrease += 25;
@@ -2044,7 +2041,6 @@ namespace CalamityMod.CalPlayer
DashID = string.Empty;
externalAbyssLight = 0;
externalBreathLossMultBoost = 0f;
externalBreathTickBoost = 0f;
externalFlightTimeMultBoost = 0f;
externalRageEnabled = externalAdrenalineEnabled = null;
@@ -2175,7 +2171,7 @@ namespace CalamityMod.CalPlayer
trinketOfChi = false;
gladiatorSword = false;
unstableGraniteCore = false;
regenator = false;
regenerator = false;
deepDiver = false;
theBee = false;
arcFlashRing = false;
@@ -2350,7 +2346,6 @@ namespace CalamityMod.CalPlayer
avertorBonus = false;
reaverRegen = false;
reaverSpeed = false;
reaverDefense = false;
reaverExplore = false;
@@ -2483,7 +2478,6 @@ namespace CalamityMod.CalPlayer
pFlames = false;
hFlames = false;
hInferno = false;
gState = false;
bBlood = false;
brainRot = false;
heavybleeding = false;
@@ -2905,7 +2899,6 @@ namespace CalamityMod.CalPlayer
demonSwordKillMode = false;
externalAbyssLight = 0;
externalBreathLossMultBoost = 0f;
externalBreathTickBoost = 0f;
externalFlightTimeMultBoost = 0f;
externalColdImmunity = externalHeatImmunity = false;
@@ -2952,7 +2945,6 @@ namespace CalamityMod.CalPlayer
pFlames = false;
hFlames = false;
hInferno = false;
gState = false;
bBlood = false;
brainRot = false;
heavybleeding = false;
@@ -3144,8 +3136,6 @@ namespace CalamityMod.CalPlayer
lunicCorpsSet = false;
lunicCorpsLegs = false;
reaverSpeed = false;
reaverRegen = false;
reaverRegenCooldown = 0;
reaverDefense = false;
reaverExplore = false;
shadeRegen = false;
@@ -3243,6 +3233,7 @@ namespace CalamityMod.CalPlayer
ascendantTrail = false;
evilSmasherBoost = 0;
burningSeaBurnOut = 0;
flareGunOverheat = 0;
hellbornShots = 0;
searedPanCounter = 0;
searedPanTimer = 0;
@@ -4364,15 +4355,7 @@ namespace CalamityMod.CalPlayer
if (Player.whoAmI == Main.myPlayer)
{
float baseRecoveryRate = Main.expertMode ? BalancingConstants.LifeStealRecoveryRate_Expert : BalancingConstants.LifeStealRecoveryRate_Classic;
float lifeStealRecoveryRateReduction =
CalamityWorld.death ? BalancingConstants.LifeStealRecoveryRateReduction_Death :
CalamityWorld.revenge ? BalancingConstants.LifeStealRecoveryRateReduction_Revengeance :
Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert :
BalancingConstants.LifeStealRecoveryRateReduction_Classic;
if (Main.masterMode)
lifeStealRecoveryRateReduction += BalancingConstants.LifeStealRecoveryRateReduction_Master;
float lifeStealRecoveryRateReduction = Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert : BalancingConstants.LifeStealRecoveryRateReduction_Classic;
float lifeStealRecoveryRate = baseRecoveryRate - lifeStealRecoveryRateReduction;
if (Player.lifeSteal < -lifeStealRecoveryRate)
-9
View File
@@ -230,15 +230,6 @@ namespace CalamityMod.CalPlayer
if (calamityPlayer.eutrophication && drawInfo.shadow == 0f)
Eutrophication.DrawEffects(drawInfo);
if (calamityPlayer.gState && drawInfo.shadow == 0f)
{
// These lines cannot be moved to Glacial State's own file
r *= 0.13f;
g *= 0.66f;
GlacialState.DrawEffects(drawInfo);
}
if (calamityPlayer.gsInferno && drawInfo.shadow == 0f)
GodSlayerInferno.DrawEffects(drawInfo);
+1 -1
View File
@@ -370,7 +370,7 @@ namespace CalamityMod.CalPlayer
if (ZoneAbyss || ZoneSulphur)
canSulphurFish = true;
Item item = Player.ActiveItem();
Item item = Player.HeldItem;
if (!canSulphurFish || item.fishingPole <= 0 || item.holdStyle != 1)
fishingLevel = -1;
+14 -9
View File
@@ -2304,8 +2304,8 @@ namespace CalamityMod.CalPlayer
if (RageEnabled)
rageCombatFrames = BalancingConstants.RageCombatDelayTime;
// Regenator has been CANCLED on TWITTER.COM!!!! (Just keeping this here since it's a neat effect and I'll probably yoink it for something else later)
if (regenator && false)
// Regenerator has been CANCLED on TWITTER.COM!!!! (Just keeping this here since it's a neat effect and I'll probably yoink it for something else later)
if (regenerator && false)
{
// Projectile damage and count is based on source damage of the hit
float hitPower = (hurtInfo.SourceDamage / (Player.statLifeMax2 * 0.5f));
@@ -2702,15 +2702,20 @@ namespace CalamityMod.CalPlayer
}
if (inkBomb && !abyssalMirror && !eclipseMirror)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
if (Player.whoAmI == Main.myPlayer && !Player.HasCooldown(Cooldowns.InkBomb.ID))
if (Player.whoAmI == Main.myPlayer)
{
Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(20));
rogueStealth += 0.5f;
if (!Player.HasCooldown(Cooldowns.InkBomb.ID))
{
Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(20));
rogueStealth += 0.5f;
SoundEngine.PlaySound(SoundID.NPCDeath28 with { Volume = 2f }, Player.Center);
}
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
SoundEngine.PlaySound(SoundID.Item1, Player.Center);
for (int i = 0; i < 3; i++)
{
SoundEngine.PlaySound(SoundID.Item61, Player.Center);
int ink = Projectile.NewProjectile(source, Player.Center.X, Player.Center.Y, Main.rand.NextFloat(-3f, 3f), Main.rand.NextFloat(-0f, -4f), ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
int ink = Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 2f, ModContent.ProjectileType<InkBombProjectile>(), 0, 0, Player.whoAmI);
if (ink.WithinBounds(Main.maxProjectiles))
Main.projectile[ink].DamageType = DamageClass.Generic;
}
@@ -2742,7 +2747,7 @@ namespace CalamityMod.CalPlayer
if (Player.whoAmI == Main.myPlayer)
{
for (int i = 0; i < 16; i++)
for (int i = 0; i < 10; i++)
{
Vector2 circleVel = (MathHelper.TwoPi * i / 16f).ToRotationVector2() * Main.rand.NextFloat(5f, 8f);
int shard = Projectile.NewProjectile(source, Player.Center, circleVel, ProjectileID.CrystalShard, sDamage, 1f, Player.whoAmI);
+9 -55
View File
@@ -625,6 +625,9 @@ namespace CalamityMod.CalPlayer
Player.lifeRegen += Main.eclipse ? 2 : 4;
}
if (silvaSet)
Player.lifeRegen += 6;
if (phantomicHeartRegen <= 720 && phantomicHeartRegen >= 600)
{
Player.lifeRegen += PhantomicArtifact.RegenBoost;
@@ -693,14 +696,6 @@ namespace CalamityMod.CalPlayer
else
pinkCandleHealFraction = 0D;
if (reaverRegen && reaverRegenCooldown >= 60)
{
reaverRegenCooldown = 0;
if (Player.statLife != Player.statLifeMax2 && !noLifeRegen)
Player.HealPlayer(1, HealTextType.None);
}
if (BloomStoneRegen)
{
float dayTimeCompletion = !Main.dayTime ? 1f : (float)(Main.time / Main.dayLength);
@@ -766,48 +761,7 @@ namespace CalamityMod.CalPlayer
}
#endregion
// Life regen soft cap.
if (Player.statLife < actualMaxLife)
{
// The soft cap doesn't apply if the player is not moving and not using a weapon while having any of the following:
// Shiny Stone, Cosmic Freeze buff from the Cosmic Discharge, Demonshade Armor, Regenator, or The Camper.
int baseLifeRegenBoost = 4;
bool noLifeRegenCap = (Player.shinyStone || cFreeze || shadeRegen || camper || regenator) &&
Player.StandingStill() && Player.itemAnimation == 0;
if (!noLifeRegenCap)
{
// Calculate the % of HP the player has left.
float maxLifeRatio = Player.statLife / (float)actualMaxLife;
// Calculate the ratio of the player's current max life relative to the starting HP of 100.
// This makes the soft cap far less harsh at lower amounts of max life.
// Ranges from 20 (at 100 max life) to 4 (at 500 max life) to 2 (at 1000 max life) to 1 (at greater than 2000 max life).
int lifeRegenSoftCapMax = 20;
int lifeRegenSoftCapMin = (int)Math.Round(100f / actualMaxLife * lifeRegenSoftCapMax);
// The soft cap for life regen which ranges from 20 (at less than 5% HP) to 1 (at greater than or equal to 95% HP).
// This value is capped at a min and max amount.
int lifeRegenSoftCap = (int)MathHelper.Clamp((int)Math.Round((1f - maxLifeRatio) * lifeRegenSoftCapMax), lifeRegenSoftCapMin, lifeRegenSoftCapMax);
// If life regen is greater than the calculated soft cap, reduce it.
if (Player.lifeRegen - baseLifeRegenBoost > lifeRegenSoftCap)
{
// The scalar used to calculate how much the life regen stat should be reduced by.
// Ranges from 1 (at 0% HP) to 2 (at 100% HP).
float lifeRegenScalar = 1f + maxLifeRatio;
// Calculate the amount of life regen the player should get according to the soft cap and their current % HP remaining.
// The higher the player's % HP remaining the less life regen they get and vice versa.
int defLifeRegen = (int)((Player.lifeRegen - baseLifeRegenBoost) / lifeRegenScalar);
// Set the player's life regen to the scaled amount.
Player.lifeRegen = baseLifeRegenBoost + defLifeRegen;
}
}
}
if (regenator) // Gives special regen of it's own, but disables all regular life regen
if (regenerator) // Gives special regen of it's own, but disables all regular life regen
{
if (Player.miscCounter % 7 == 0 && Player.statLife < (int)(Player.statLifeMax2 * 0.5f))
Player.HealPlayer(1, HealTextType.None);
@@ -818,7 +772,7 @@ namespace CalamityMod.CalPlayer
Player.lifeRegenTime += 10;
}
else
regenatorDamage = 0;
regeneratorDamage = 0;
if (toxicHeart) // Since it needs to know your life regen, it must be placed here
{
@@ -873,8 +827,8 @@ namespace CalamityMod.CalPlayer
}
}
// Regenator trades all positive regen for damage, and caps your health gain at 50%
if (regenator)
// Regenerator trades all positive regen for damage, and caps your health gain at 50%
if (regenerator)
{
int finalRegen = Player.lifeRegen + (int)Math.Round(regen * (Player.statLifeMax2 / 400f * 0.85f + 0.15f));
finalRegen = (int)Math.Max(finalRegen, 0);
@@ -884,8 +838,8 @@ namespace CalamityMod.CalPlayer
if (Player.palladiumRegen)
finalRegen += 4;
regenatorDamage = (finalRegen * 1.75f) * 0.01f;
Player.GetDamage<GenericDamageClass>() += regenatorDamage;
regeneratorDamage = (finalRegen * 1.75f) * 0.01f;
Player.GetDamage<GenericDamageClass>() += regeneratorDamage;
if (Player.lifeRegen > 0)
Player.lifeRegen = 0;
+48 -130
View File
@@ -479,13 +479,17 @@ namespace CalamityMod.CalPlayer
IsFirstDashFrame = false;
else
IsFirstDashFrame = true;
// THIS MUST BE NEAR THE END OF PostUpdateMiscEffects SO ALL OTHER RUN SPEED IS DONE FIRST. DO NOT PUT ANY RUN SPEED AFTER THIS
// Multiplies movement speed by 1.5x so that you don't feel like a snail in the early game.
// This applies to movement speed boosts as well as base speed to ensure they are actually worth their listed value compared to base speed
//
// Disabled while Overhaul is enabled, because Overhaul does very similar things to make movement more snappy
if (ExternalMods.overhaul is null && CalamityServerConfig.Instance.FasterBaseSpeed)
// 22JUN2025: Ozzatron: Disabled while Remnants is enabled, because Remnants has its own move speed reworks.
bool ignoreSpeedConfig = ExternalMods.overhaul is not null || ExternalMods.remnants is not null;
if (!ignoreSpeedConfig && CalamityServerConfig.Instance.FasterBaseSpeed)
Player.moveSpeed *= BalancingConstants.DefaultMoveSpeedBoost;
// This is used to increase horizontal velocity based on the player's movement speed stat.
@@ -1117,34 +1121,11 @@ namespace CalamityMod.CalPlayer
}
}
// Life Steal nerf in difficulties above Expert
// Reduces the max possible life steal before the cooldown occurs (this mostly just nerfs how much life steal the player can get in bursts)
// Master Mode nerfs this by an additional 10
float lifeStealCap =
CalamityWorld.death ? BalancingConstants.LifeStealCap_Death :
CalamityWorld.revenge ? BalancingConstants.LifeStealCap_Revengeance :
Main.expertMode ? BalancingConstants.LifeStealCap_Expert :
BalancingConstants.LifeStealCap_Classic;
if (Main.masterMode)
lifeStealCap -= BalancingConstants.LifeStealCapReduction_Master;
if (Player.lifeSteal > lifeStealCap)
Player.lifeSteal = lifeStealCap;
// Normal Mode life steal recovery rate is 0.2/s
// Expert Mode life steal recovery rate is 0.15/s
// Revengeance Mode life steal recovery rate is 0.125/s
// Death Mode life steal recovery rate is 0.1/s
// Master Mode life steal recovery rate is nerfed by an additional 0.05/s
float lifeStealRecoveryRateReduction =
CalamityWorld.death ? BalancingConstants.LifeStealRecoveryRateReduction_Death :
CalamityWorld.revenge ? BalancingConstants.LifeStealRecoveryRateReduction_Revengeance :
Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert :
BalancingConstants.LifeStealRecoveryRateReduction_Classic;
if (Main.masterMode)
lifeStealRecoveryRateReduction += BalancingConstants.LifeStealRecoveryRateReduction_Master;
// Reduce the rate of recovery of the Lifesteal variable
// Classic Mode: 36 HP/s to 12 HP/s
// Expert Mode: 30 HP/s to 9 HP/s
float lifeStealRecoveryRateReduction = Main.expertMode ? BalancingConstants.LifeStealRecoveryRateReduction_Expert : BalancingConstants.LifeStealRecoveryRateReduction_Classic;
float lifeStealCap = Main.expertMode ? BalancingConstants.LifeStealCap_Expert : BalancingConstants.LifeStealCap_Classic;
if (Player.lifeSteal < lifeStealCap)
Player.lifeSteal -= lifeStealRecoveryRateReduction;
@@ -2012,7 +1993,7 @@ namespace CalamityMod.CalPlayer
SyncCooldownRemoval(Main.dedServ, expiredCooldowns);
// Grant the player 5 seconds of immunity to immobilizing debuffs after an immobilizing debuff wears off.
if (Player.stoned || Player.frozen || Player.webbed || gState)
if (Player.stoned || Player.frozen || Player.webbed)
{
ImmobilityDebuffImmunityTimer = ImmobilityDebuffImmunityTimerMax;
}
@@ -2022,7 +2003,6 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[BuffID.Stoned] = true;
Player.buffImmune[BuffID.Frozen] = true;
Player.buffImmune[BuffID.Webbed] = true;
Player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
}
if (arsenalCooldown > 0)
@@ -2047,6 +2027,8 @@ namespace CalamityMod.CalPlayer
--fullRageSoundCountdownTimer;
if (plagueTaintedSMGDroneCooldown > 0)
plagueTaintedSMGDroneCooldown--;
if (flareGunOverheat > 0)
flareGunOverheat--;
if (momentumCapacitorTime > 0)
--momentumCapacitorTime;
if (phantomicHeartRegen > 0 && phantomicHeartRegen < 1000)
@@ -2227,10 +2209,6 @@ namespace CalamityMod.CalPlayer
canFireGodSlayerRangedProjectile = true;
canFireBloodflareRangedProjectile = true;
}
if (reaverRegenCooldown < 60 && reaverRegen)
reaverRegenCooldown++;
else
reaverRegenCooldown = 0;
if (auralisAurora > 0)
auralisAurora--;
if (auralisAuroraCooldown > 0)
@@ -2621,7 +2599,6 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[BuffID.Frozen] = true;
Player.buffImmune[BuffID.Chilled] = true;
Player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
}
// Cosmic Discharge Cosmic Freeze buff, gives surrounding enemies the Glacial State debuff
@@ -2734,23 +2711,19 @@ namespace CalamityMod.CalPlayer
// Plagued Fuel Pack and Blunder Booster effects
if (jetPackDash > 0 && Player.whoAmI == Main.myPlayer)
{
int velocityAmt = blunderBooster ? 35 : 25;
int velocityMult = jetPackDash > 1 ? velocityAmt : 5;
Player.velocity = new Vector2(jetPackDirection, -1) * velocityMult;
int velocityMult = (int)((blunderBooster ? 35 : 25) * Utils.GetLerpValue(-4, 5, jetPackDash, true));
Player.velocity = new Vector2(jetPackDirection, -1f) * velocityMult;
if (blunderBooster)
{
int lightningCount = Main.rand.Next(5, 7);
int lightningCount = 4;
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<BlunderBooster>()));
for (int i = 0; i < lightningCount; i++)
{
Vector2 lightningVel = new Vector2(Main.rand.NextFloat(-1, 1), Main.rand.NextFloat(-1, 1));
lightningVel.Normalize();
lightningVel *= Main.rand.NextFloat(1f, 2f);
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(30);
Vector2 lightningVel = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedByRandom(0.3f) * Main.rand.NextFloat(7f, 10f);
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(35);
int projectile = Projectile.NewProjectile(source, Player.Center, lightningVel, ModContent.ProjectileType<BlunderBoosterLightning>(), damage, 0, Player.whoAmI, Main.rand.Next(2), 0f);
Main.projectile[projectile].timeLeft = Main.rand.Next(180, 240);
if (projectile.WithinBounds(Main.maxProjectiles))
Main.projectile[projectile].DamageType = DamageClass.Generic;
}
@@ -2765,17 +2738,14 @@ namespace CalamityMod.CalPlayer
}
else if (plaguedFuelPack)
{
int numClouds = Main.rand.Next(8, 10);
int numClouds = 3;
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<PlaguedFuelPack>()));
for (int i = 0; i < numClouds; i++)
{
Vector2 cloudVelocity = new Vector2(Main.rand.NextFloat(-1, 1), Main.rand.NextFloat(-1, 1));
cloudVelocity.Normalize();
cloudVelocity *= Main.rand.NextFloat(0f, 1f);
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(20);
Vector2 cloudVelocity = Player.velocity.SafeNormalize(Vector2.UnitX).RotatedByRandom(0.3f) * Main.rand.NextFloat(5f, 7f);
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(30);
int projectile = Projectile.NewProjectile(source, Player.Center, cloudVelocity, ModContent.ProjectileType<PlaguedFuelPackCloud>(), damage, 0, Player.whoAmI, 0, 0);
Main.projectile[projectile].timeLeft = Main.rand.Next(180, 240);
if (projectile.WithinBounds(Main.maxProjectiles))
Main.projectile[projectile].DamageType = DamageClass.Generic;
}
@@ -2955,36 +2925,7 @@ namespace CalamityMod.CalPlayer
}
// Breath lost while at zero breath
double breathLoss = Main.remixWorld ? (point.Y < abyssLevel1 ? 50D * depthRatioFromAbyssLayer1 : 0D) : (point.Y > abyssLevel1 ? 50D * depthRatioFromAbyssLayer1 : 0D);
// Breath Loss Multiplier, depending on gear
// 27AUG2024: Ozzatron: fixed this being subtractive like mining speed. now doesn't stack exponentially
// It is now a multiplier for the time it takes to lose any unit amount of breath
double breathLossTimeMult = 1D +
(Player.gills ? 0.2 : 0D) + // 1.2
(oceanCrest ? 0.2 : 0D) + // 1.2
(victideSet ? 0.2 : 0D) + // 1.2
(Player.accDivingHelm ? 0.25 : 0D) + // 1.25
(Player.arcticDivingGear ? 0.25 : 0D) + // 1.25
(aquaticEmblem ? 0.25 : 0D) + // 1.25
(Player.accMerman ? 0.3 : 0D) + // 1.3
(reaverExplore ? 0.3 : 0D) + // 1.3
((aquaticHeart && NPC.downedBoss3) ? 0.3 : 0D) + // 1.3
(abyssalDivingSuit ? 0.3 : 0D) + // 1.3
externalBreathLossMultBoost;
// Invert the breath loss time multiplier, to get the multiplier for the speed at which breath is actually lost
double breathLossMult = 1D / breathLossTimeMult;
// Limit the multiplier to 5%
if (breathLossMult < 0.05)
breathLossMult = 0.05;
// Reduce breath lost while at zero breath, depending on gear
breathLoss *= breathLossTimeMult;
// Record the final breath loss for the stat meter
abyssBreathLossStat = (float)breathLoss;
double breathLoss = Main.remixWorld ? (point.Y < abyssLevel1 ? 1D : 0D) : (point.Y > abyssLevel1 ? 1D : 0D);
// Defense loss
int defenseLoss = (int)(120D * depthRatio);
@@ -3005,24 +2946,8 @@ namespace CalamityMod.CalPlayer
// Record the final defense reduction for the stat meter
abyssDefenseLossStat = defenseLoss;
// Bleed effect based on abyss layer
if (ZoneAbyssLayer4)
{
Player.bleed = true;
}
else if (ZoneAbyssLayer3)
{
if (!abyssalDivingSuit)
Player.bleed = true;
}
else if (ZoneAbyssLayer2)
{
if (!depthCharm)
Player.bleed = true;
}
// Ticks (frames) until breath is deducted from the breath meter
double tick = 12D * (1D - depthRatio);
double tick = 10D * (1D - depthRatio);
// Prevent 0
if (tick < 1D)
@@ -3030,16 +2955,16 @@ namespace CalamityMod.CalPlayer
// Tick (frame) multiplier, depending on gear
double tickMult = 1D +
(Player.gills ? 4D : 0D) + // 5
(oceanCrest ? 4D : 0D) + // 5
(Player.ignoreWater ? 5D : 0D) + // 10
(Player.accDivingHelm ? 10D : 0D) + // 20
(Player.arcticDivingGear ? 10D : 0D) + // 30
(aquaticEmblem ? 10D : 0D) + // 40
(Player.accMerman ? 15D : 0D) + // 55
(victideSet ? 5D : 0D) + // 60
((aquaticHeart && NPC.downedBoss3) ? 15D : 0D) + // 75
(abyssalDivingSuit ? 15D : 0D) + // 90
(Player.gills ? 2D : 0D) +
(oceanCrest ? 2D : 0D) +
(Player.ignoreWater ? 3D : 0D) +
(Player.accDivingHelm ? 5D : 0D) +
(Player.arcticDivingGear ? 5D : 0D) +
(aquaticEmblem ? 5D : 0D) +
(Player.accMerman ? 8D : 0D) +
(victideSet ? 2D : 0D) +
((aquaticHeart && NPC.downedBoss3) ? 8D : 0D) +
(abyssalDivingSuit ? 8D : 0D) +
externalBreathTickBoost;
// Limit the multiplier to 50
@@ -3053,6 +2978,8 @@ namespace CalamityMod.CalPlayer
abyssBreathLossRateStat = (float)tick;
float resistanceSlowdownFactor = 1f;
if (hPressure)
resistanceSlowdownFactor -= abyssalDivingSuit ? 0.2f : 0.5f;
// Reduce breath over ticks (frames)
abyssBreathCD++;
@@ -3065,9 +2992,6 @@ namespace CalamityMod.CalPlayer
if (Player.breath > 0)
{
Player.breath -= (int)(cDepth && !depthCharm ? breathLoss + 1D : breathLoss);
if (hPressure)
resistanceSlowdownFactor -= (int)(!abyssalDivingSuit ? 1.2f : 0.5f);
}
}
@@ -3083,8 +3007,8 @@ namespace CalamityMod.CalPlayer
// Resistance to life loss at zero breath
int lifeLossAtZeroBreathResist = 0 +
(depthCharm ? 3 : 0) +
(abyssalDivingSuit ? 6 : 0);
(depthCharm ? 4 : 0) +
(abyssalDivingSuit ? 5 : 0);
// Reduce life loss, depending on gear
lifeLossAtZeroBreath -= lifeLossAtZeroBreathResist;
@@ -3208,7 +3132,7 @@ namespace CalamityMod.CalPlayer
// Aquatic Emblem bonus
if (aquaticEmblem)
{
if (Player.IsUnderwater() && Player.wet && !Player.lavaWet && !Player.honeyWet &&
if (countsAsAnyWet && !Player.lavaWet && !Player.honeyWet &&
!Player.mount.Active)
{
if (aquaticBoost > 0f)
@@ -3363,12 +3287,12 @@ namespace CalamityMod.CalPlayer
if (AdamantiteSet)
Player.statDefense += AdamantiteSetDefenseBoost;
// Warmth makes Chilled, Frozen, and Glacial State tick down 3x as fast
// Warmth makes Chilled and Frozen tick down 3x as fast
if (Player.HasBuff(BuffID.Warmth))
{
for (int b = 0; b < Player.MaxBuffs; b++)
{
if (Player.buffType[b] == BuffID.Chilled || Player.buffType[b] == BuffID.Frozen || Player.buffType[b] == ModContent.BuffType<GlacialState>())
if (Player.buffType[b] == BuffID.Chilled || Player.buffType[b] == BuffID.Frozen)
{
if (Player.buffTime[b] > 3)
{
@@ -3733,11 +3657,7 @@ namespace CalamityMod.CalPlayer
}
if (tarraSet)
{
if (!tarraMelee)
Player.calmed = true;
Player.lifeMagnet = true;
}
if (wDeath && !laudanum && !purity)
Player.GetDamage<GenericDamageClass>() -= 0.2f;
@@ -3761,14 +3681,6 @@ namespace CalamityMod.CalPlayer
Player.statDefense -= RemsRevenge.WitherDefenseReduction;
}
if (gState)
{
Player.velocity.X *= 0.5f;
Player.velocity.Y += 0.05f;
if (Player.velocity.Y > 15f)
Player.velocity.Y = 15f;
}
if (eutrophication && !purity)
Player.velocity = Vector2.Zero;
@@ -3820,11 +3732,17 @@ namespace CalamityMod.CalPlayer
Player.GetDamage<MeleeDamageClass>() += 0.1f;
}
// While making the rogue update verify if we should allow these to stack again - Shade
if (filthyGlove)
{
bonusStealthDamage += nanotech ? 0.05f : 0.08f;
}
if (rottenDogTooth && !nanotech)
{
bonusStealthDamage += 0.08f;
}
if (sandsWindBuff)
{
Player.GetDamage<GenericDamageClass>() += PrimordialEarth.BuffDamageBoost;
+75 -240
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.CalPlayer
break;
case ItemID.FieryGreatsword:
target.AddBuff(BuffID.OnFire3, 180);
target.AddBuff(BuffID.OnFire3, 90);
break;
case ItemID.IceSickle:
@@ -138,7 +138,7 @@ namespace CalamityMod.CalPlayer
ItemLifesteal(target, item, damageDone);
ItemOnHit(item, damageDone, target.Center, hit.Crit, target.IsAnEnemy(false, true), targetIsDummy);
NPCDebuffs(target, item.CountsAsClass<MeleeDamageClass>(), item.CountsAsClass<RangedDamageClass>(), item.CountsAsClass<MagicDamageClass>(), item.CountsAsClass<SummonDamageClass>(), item.CountsAsClass<ThrowingDamageClass>(), item.CountsAsClass<SummonMeleeSpeedDamageClass>());
NPCDebuffs(target, item.CountsAsClass<MeleeDamageClass>(), item.CountsAsClass<RangedDamageClass>(), item.CountsAsClass<MagicDamageClass>(), item.CountsAsClass<SummonDamageClass>(), item.CountsAsClass<ThrowingDamageClass>(), item.CountsAsClass<SummonMeleeSpeedDamageClass>(), hit.Crit);
// Ursa Sergeant slash cooldown is reset on kill
if (ursaSergeant && target.life <= 0 && target.realLife == -1)
@@ -193,13 +193,14 @@ namespace CalamityMod.CalPlayer
// Arc Flash Ring lightning strike (Remember to change the one for projectile hits if applicable when you change this one!)
// This one has a lot less limits than the projectile one, but that's because vanilla broadsword code is limiting (wow so surprising)
if (arcFlashRing && (Main.rand.Next(0, 100) < 6))
bool spawnChance = (Main.rand.Next(0, 100) < 6);
if (arcFlashRing && spawnChance)
{
var source = item.GetSource_FromThis();
int damage = (int)((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)); // 400% damage (uneffected by crits)
Vector2 position = target.Center + new Vector2(0, -750);
int damage = (int)(((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
Projectile.NewProjectile(source, position, new Vector2(0, 10), ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
Projectile bolt = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
bolt.DamageType = hit.DamageType;
}
// Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies).
@@ -396,22 +397,20 @@ namespace CalamityMod.CalPlayer
CalamityGlobalProjectile globalProj = proj.Calamity();
// Arc Flash Ring lightning strike (Remember to change the one for item hits if applicable when you change this one!)
// Minions ignore the chance penalty on penetration
bool spawnChance = (Main.rand.Next(0, 100) < MathHelper.Clamp(6 - proj.numHits, (proj.minion ? 6 : 1), 6));
if (arcFlashRing && spawnChance && proj.type != ProjectileType<FlashBolt>() && globalProj.spawnArcFlash)
bool spawnChance = (Main.rand.Next(0, 100) < 6);
if (arcFlashRing && spawnChance && proj.type != ProjectileType<FlashBolt>())
{
proj.active = true; // Okay so if a projectile manually kills itself on hit, it totally breaks the bolts. to prevent this we set them to active
var source = proj.GetSource_FromThis();
int damage = (int)((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)); // 400% damage (uneffected by crits)
Vector2 position = target.Center + new Vector2(0, -750);
int damage = (int)(((hit.Damage * 4f) * (hit.Crit ? 0.5f : 1)) / (Player.Calamity().adrenalineModeActive ? Player.Calamity().GetAdrenalineDamage() + 1 : 1)); // 400% damage (uneffected by crits and adrenaline)
Projectile bolt = Projectile.NewProjectileDirect(source, position, new Vector2(0, 10), ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI);
Projectile bolt = Projectile.NewProjectileDirect(source, target.Center, Vector2.Zero, ProjectileType<FlashBolt>(), damage, 0f, Player.whoAmI, target.whoAmI, (globalProj.showArcFlash ? 0 : 1));
bolt.DamageType = hit.DamageType;
globalProj.spawnArcFlash = false;
// This is really only used for long lasting projectiles and contact damage minions
globalProj.arcFlashCooldown = 90;
globalProj.showArcFlash = false;
// This is really only used for piercing and long lasting projectiles so they dont flood the screen with bolts
globalProj.arcFlashCooldown = 30;
}
if (!proj.npcProj && !proj.trap && proj.friendly)
@@ -583,11 +582,7 @@ namespace CalamityMod.CalPlayer
GeneralParticleHandler.SpawnParticle(orb);
}
int heal = (int)Math.Round(hit.Damage * 0.035);
if (Main.LocalPlayer.lifeSteal <= 0f || heal <= 0 || target.lifeMax <= 5)
return;
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
Main.player[proj.owner].SpawnLifeStealProjectile(target, proj, ProjectileType<AltTransfusionTrail>(), (int)Math.Round(hit.Damage * 0.035));
}
if ((cgp.betterLifeBullet1 || cgp.betterLifeBullet2) && proj.numHits == 0)
@@ -603,13 +598,9 @@ namespace CalamityMod.CalPlayer
GeneralParticleHandler.SpawnParticle(orb);
}
int heal = (int)Math.Round(hit.Damage * 0.01);
if (Main.LocalPlayer.lifeSteal <= 0f || heal <= 0 || target.lifeMax <= 5)
return;
for (int i = 0; i <= 2; i++)
{
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Main.player[proj.owner], heal, ProjectileType<AltTransfusionTrail>(), BalancingConstants.LifeStealRange);
Main.player[proj.owner].SpawnLifeStealProjectile(target, proj, ProjectileType<AltTransfusionTrail>(), (int)Math.Round(hit.Damage * 0.01), 0.75f);
}
}
@@ -617,7 +608,7 @@ namespace CalamityMod.CalPlayer
ProjLifesteal(target, proj, damageDone, hit.Crit);
ProjOnHit(proj, target.Center, hit.Crit, target.IsAnEnemy(false), targetIsDummy);
NPCDebuffs(target, proj.CountsAsClass<MeleeDamageClass>(), proj.CountsAsClass<RangedDamageClass>(), proj.CountsAsClass<MagicDamageClass>(), proj.CountsAsClass<SummonDamageClass>(), proj.CountsAsClass<ThrowingDamageClass>(), proj.CountsAsClass<SummonMeleeSpeedDamageClass>(), true, proj.noEnchantments);
NPCDebuffs(target, proj.CountsAsClass<MeleeDamageClass>(), proj.CountsAsClass<RangedDamageClass>(), proj.CountsAsClass<MagicDamageClass>(), proj.CountsAsClass<SummonDamageClass>(), proj.CountsAsClass<ThrowingDamageClass>(), proj.CountsAsClass<SummonMeleeSpeedDamageClass>(), hit.Crit, true, proj.noEnchantments);
// Shattered Community tracks all damage dealt with Rage Mode (ignoring dummies).
if (targetIsDummy)
@@ -636,9 +627,6 @@ namespace CalamityMod.CalPlayer
if (!item.CountsAsClass<MeleeDamageClass>() && Player.meleeEnchant == 7)
Projectile.NewProjectile(source, position, Player.velocity, ProjectileID.ConfettiMelee, 0, 0f, Player.whoAmI);
if (reaverDefense)
Player.lifeRegenTime += 1;
if (npcCheck)
{
if (item.CountsAsClass<MeleeDamageClass>() && hideOfDeus && hideOfDeusTimer == 0)
@@ -717,9 +705,6 @@ namespace CalamityMod.CalPlayer
if (theBee && lifeAndShieldCondition)
SoundEngine.PlaySound(SoundID.Item110, proj.Center);
if (reaverDefense)
Player.lifeRegenTime += 1;
if (npcCheck)
{
if (astralStarRain && crit && astralStarRainCooldown <= 0)
@@ -847,8 +832,9 @@ namespace CalamityMod.CalPlayer
if (dynamoStemCells && MiniSwarmerCooldown <= 0 && proj.CountsAsClass<RangedDamageClass>())
{
MiniSwarmerCooldown = DynamoStemCells.MiniSwarmerCooldown;
Vector2 velocity = proj.velocity.SafeNormalize(Vector2.UnitY) * 19;
Vector2 directionToMouse = Main.MouseWorld - Player.Center;
directionToMouse.Normalize();
Vector2 velocity = directionToMouse * 19;
int MiniSwamerDamage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(DynamoStemCells.MiniSwamerDamage);
Projectile.NewProjectile(source, Player.Center, velocity, ProjectileType<MiniatureFolly>(), MiniSwamerDamage, 2f, proj.owner);
}
@@ -1157,9 +1143,9 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<TitanHeartBoom>(), damage, proj.knockBack, proj.owner, 1f, 0f);
SoundEngine.PlaySound(SoundID.Item14, proj.Center);
for (int dustexplode = 0; dustexplode < 180; dustexplode++)
for (int dustexplode = 0; dustexplode < 120; dustexplode++)
{
Vector2 dustd = Vector2.One.RotatedBy(MathHelper.ToRadians(dustexplode * 2)) * 1.7f;
Vector2 dustd = Vector2.One.RotatedBy(MathHelper.ToRadians(dustexplode * 3)) * 1.7f;
Dust dust = Dust.NewDustPerfect(proj.Center, Main.rand.NextBool() ? DustType<AstralBlue>() : DustType<AstralOrange>(), dustd, Alpha: 100);
dust.noGravity = true;
}
@@ -1169,6 +1155,7 @@ namespace CalamityMod.CalPlayer
if (raiderTalisman && modProj.stealthStrike)
{
raiderCritLifespan = CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
// TO DO: Add nanotech here
Player.AddCooldown(RaiderBoost.ID, raiderCritLifespan, true, vampiricTalisman ? "Bloodfeast" : "default");
if (raiderSoundCooldown <= 0)
{
@@ -1209,7 +1196,7 @@ namespace CalamityMod.CalPlayer
#endregion
#region Debuffs
public void NPCDebuffs(NPC target, bool melee, bool ranged, bool magic, bool summon, bool rogue, bool whip, bool proj = false, bool noFlask = false)
public void NPCDebuffs(NPC target, bool melee, bool ranged, bool magic, bool summon, bool rogue, bool whip, bool crit, bool proj = false, bool noFlask = false)
{
if (melee && !noFlask) // Prevents Deep Sea Dumbell from snagging true melee debuff memes
{
@@ -1316,7 +1303,7 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<HadopelagicPressure>(), 180);
if (sulphurSet)
target.AddBuff(BuffID.Poisoned, 60);
if (ilSpark && Player.IsUnderwater())
if (ilSpark && Player.Calamity().countsAsAnyWet)
{
int duration = 60;
target.AddBuff(BuffType<StaticDischarge>(), duration);
@@ -1331,7 +1318,11 @@ namespace CalamityMod.CalPlayer
}
if (vexation)
{
target.AddBuff(BuffID.Venom, 120, false);
target.AddBuff(BuffID.Venom, 120, false);
}
if (snowRuffianSet && ranged && crit)
{
target.AddBuff(BuffID.Frostburn, 300, false);
}
}
#endregion
@@ -1340,148 +1331,56 @@ namespace CalamityMod.CalPlayer
public void ProjLifesteal(NPC target, Projectile proj, int damage, bool crit)
{
CalamityGlobalProjectile modProj = proj.Calamity();
if (bloodflareSet && !target.IsAnEnemy(false) && !Player.moonLeech && target.lifeMax > 5)
if (target.IsAnEnemy(false))
{
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
if (bloodflareSet && !Player.moonLeech)
{
bloodflareHeartTimer = 300;
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
}
}
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
{
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
target.Calamity().gladiatorOnKill = false;
if (healPower >= 1)
{
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
gladiatorTimer = 300;
}
}
if (Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
{
// Increases the degree to which Spectre Healing set contributes to the lifesteal cap
if (Player.ghostHeal && proj.CountsAsClass<MagicDamageClass>())
{
// This doesn't use Math.Round because it doesn't in vanilla
float cooldownMult = 0.2f;
cooldownMult -= proj.numHits * 0.05f;
if (cooldownMult < 0f)
cooldownMult = 0f;
float cooldown = damage * cooldownMult;
Main.LocalPlayer.lifeSteal -= cooldown;
}
if (vampiricTalisman && proj.CountsAsClass<RogueDamageClass>() && crit)
{
int heal = (int)Math.Round(damage * (Main.zenithWorld ? 0.01 : 0.008));
if (proj.Calamity().stealthStrike)
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
{
heal /= 2; //stealth strikes heal half due to generally dealing far more dmg
if (Main.zenithWorld)
heal *= -2; // IT YEARNS FOR MORE BLOOD
bloodflareHeartTimer = 300;
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
}
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
// Heals more if the ability is active
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile((raiderCritLifespan > 0) ? 1.5f : 1f, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
}
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike)
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
if (target.IsAnEnemy(false))
if (gladiatorSword && target.life <= 0 && target.Calamity().gladiatorOnKill)
{
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit)
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
if (bloodflareMelee && proj.IsTrueMelee())
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
target.Calamity().gladiatorOnKill = false;
if (healPower >= 1)
{
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
gladiatorTimer = 300;
}
}
if (vampiricTalisman && proj.CountsAsClass<RogueDamageClass>() && crit && proj.numHits <1)
{
int heal = (int)Math.Round(damage * 0.008);
if (heal > 2)
heal = 2;
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, heal, (raiderCritLifespan > 0 && !proj.Calamity().stealthStrike) ? 1.3f : 1.6f);
}
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike && proj.numHits < 1)
//Nanotech has the same heal as Electrician's glove
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, 2f);
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit)
Projectile.NewProjectile(proj.GetSource_OnHit(target), proj.Center, proj.velocity.SafeNormalize(Vector2.Zero) * Math.Min(((proj.velocity.Length() * proj.MaxUpdates) / 4f), 4f) * Main.rand.NextFloat(0.75f, 1.25f), ModContent.ProjectileType<BloodstoneHealOrb>(), 4, 0f, proj.owner);
if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
{
if (manaOverloader)
{
double healMult = 0.1;
healMult -= proj.numHits * healMult * 0.25;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealAccessoryCooldownMultiplier);
double healMult = 0.1D - proj.numHits * 0.025D;
Player.SpawnLifeStealProjectile(target, proj, ProjectileType<ManaPolarizerHealOrb>(), (int)Math.Round(damage * healMult), 1.5f);
}
}
if (silvaSet)
{
double healMult = 0.1;
healMult -= proj.numHits * healMult * 0.5;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<SilvaOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
}
else if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
{
if (tarraMage)
if (ataxiaMage)
{
double healMult = 0.1;
healMult -= proj.numHits * healMult * 0.5;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
}
else if (ataxiaMage)
{
double healMult = 0.1;
healMult -= proj.numHits * healMult * 0.5;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<HydrothermicHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
}
}
if (reaverDefense)
{
double healMult = 0.1;
healMult -= proj.numHits * healMult * 0.5;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealReaverTankCooldownMultiplier);
}
if (proj.CountsAsClass<ThrowingDamageClass>())
{
if (xerocSet && xerocDmg <= 0 && Player.ownedProjectileCounts[ProjectileType<EmpyreanEmber>()] < 3 && Player.ownedProjectileCounts[ProjectileType<EmpyreanBlast>()] < 3)
{
double healMult = 0.1;
healMult -= proj.numHits * healMult * 0.5;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<EmpyreanHealOrb>(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier);
double healMult = 0.1D - proj.numHits * 0.05D;
Player.SpawnLifeStealProjectile(target, proj, ProjectileType<HydrothermicHealOrb>(), (int)Math.Round(damage * healMult), 1.25f);
}
}
}
@@ -1489,89 +1388,25 @@ namespace CalamityMod.CalPlayer
public void ItemLifesteal(NPC target, Item item, int damage)
{
if (bloodflareSet && target.IsAnEnemy(false) && target.lifeMax > 5)
if (target.IsAnEnemy(false))
{
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
if (bloodflareSet)
{
bloodflareHeartTimer = 300;
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
}
}
if (bloodflareMelee && item.CountsAsClass<MeleeDamageClass>() && target.lifeMax > 5)
{
if (target.IsAnEnemy(false) && Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech)
{
int heal = 4;
if (!Main.LocalPlayer.moonLeech)
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
{
Main.LocalPlayer.lifeSteal -= heal * BalancingConstants.LifeStealSetBonusCooldownMultiplier;
float lowestHealthCheck = 0f;
int healTarget = Player.whoAmI;
foreach (Player otherPlayer in Main.ActivePlayers)
{
if (!otherPlayer.dead && ((!Player.hostile && !otherPlayer.hostile) || Player.team == otherPlayer.team))
{
float playerDist = Vector2.Distance(target.Center, otherPlayer.Center);
if (playerDist < BalancingConstants.LifeStealRange && (otherPlayer.statLifeMax2 - otherPlayer.statLife) > lowestHealthCheck)
{
lowestHealthCheck = otherPlayer.statLifeMax2 - otherPlayer.statLife;
healTarget = otherPlayer.whoAmI;
}
}
}
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
var source = Player.GetSource_FromThis(ReaverHeadTank.HealOrbEntitySourceContext);
Projectile.NewProjectile(source, target.Center, Vector2.Zero, ProjectileID.VampireHeal, 0, 0f, Player.whoAmI, healTarget, heal);
bloodflareHeartTimer = 300;
Item.NewItem(target.GetSource_Loot(), target.Hitbox, ItemID.Heart);
}
}
}
if (gladiatorSword && target.IsAnEnemy(false) && target.life <= 0 && target.Calamity().gladiatorOnKill && target.lifeMax > 5)
{
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
target.Calamity().gladiatorOnKill = false;
if (healPower >= 1)
if (gladiatorSword && target.life <= 0 && target.Calamity().gladiatorOnKill)
{
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
gladiatorTimer = 300;
}
}
if (reaverDefense)
{
if (Main.LocalPlayer.lifeSteal > 0f && !Player.moonLeech && target.lifeMax > 5)
{
double healMult = 0.1;
int heal = (int)Math.Round(damage * healMult);
if (heal > BalancingConstants.LifeStealCap)
heal = BalancingConstants.LifeStealCap;
if (heal > 0 && !Main.LocalPlayer.moonLeech)
float healPower = 10 * Utils.GetLerpValue(300, 0, gladiatorTimer, true);
target.Calamity().gladiatorOnKill = false;
if (healPower >= 1)
{
Main.LocalPlayer.lifeSteal -= heal * BalancingConstants.LifeStealReaverTankCooldownMultiplier;
float lowestHealthCheck = 0f;
int healTarget = Player.whoAmI;
for (int i = 0; i < Main.maxPlayers; i++)
{
Player otherPlayer = Main.player[i];
if (otherPlayer.active && !otherPlayer.dead && ((!Player.hostile && !otherPlayer.hostile) || Player.team == otherPlayer.team))
{
float playerDist = Vector2.Distance(target.Center, otherPlayer.Center);
if (playerDist < BalancingConstants.LifeStealRange && (otherPlayer.statLifeMax2 - otherPlayer.statLife) > lowestHealthCheck)
{
lowestHealthCheck = otherPlayer.statLifeMax2 - otherPlayer.statLife;
healTarget = otherPlayer.whoAmI;
}
}
}
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
var source = Player.GetSource_FromThis(ReaverHeadTank.HealOrbEntitySourceContext);
Projectile.NewProjectile(source, target.Center, Vector2.Zero, ProjectileType<ReaverHealOrb>(), 0, 0f, Player.whoAmI, healTarget, heal);
Projectile.NewProjectile(Player.GetSource_FromThis(), target.Center, target.velocity * 0.5f, ProjectileType<GladiatorHealOrb>(), 0, 0, -1, (int)healPower);
gladiatorTimer = 300;
}
}
}
+1 -5
View File
@@ -508,11 +508,7 @@ namespace CalamityMod.DataStructures
{
if (Procced)
{
if (!player.moonLeech)
{
player.HealPlayer(OmegaBiomeBlade.SuperPogoAttunement_PassiveLifeSteal);
}
player.DoLifestealDirect(null, OmegaBiomeBlade.SuperPogoAttunement_PassiveLifeSteal);
Procced = false;
}
}
+386 -405
View File
@@ -72,11 +72,10 @@ namespace CalamityMod
int normalDamage = contactDamage[0];
int expertDamage = contactDamage[1] == -1 ? -1 : (int)Math.Round(contactDamage[1] / damageAdjustment);
int revengeanceDamage = contactDamage[2] == -1 ? -1 : (int)Math.Round(contactDamage[2] / damageAdjustment);
int deathDamage = contactDamage[3] == -1 ? -1 : (int)Math.Round(contactDamage[3] / damageAdjustment);
int masterDamage = contactDamage[4] == -1 ? -1 : (int)Math.Round(contactDamage[4] / damageAdjustment);
int masterDamage = contactDamage[3] == -1 ? -1 : (int)Math.Round(contactDamage[3] / damageAdjustment);
// If the assigned value would be -1, don't actually assign it. This allows for conditionally disabling the system.
int damageToUse = Main.masterMode ? masterDamage : CalamityWorld.death ? deathDamage : CalamityWorld.revenge ? revengeanceDamage : Main.expertMode ? expertDamage : normalDamage;
int damageToUse = Main.masterMode ? masterDamage : CalamityWorld.revenge ? revengeanceDamage : Main.expertMode ? expertDamage : normalDamage;
if (damageToUse != -1)
npc.damage = damageToUse;
}
@@ -95,10 +94,9 @@ namespace CalamityMod
int normalDamage = (int)Math.Round(projectileDamage[0] / damageAdjustment);
int expertDamage = (int)Math.Round(projectileDamage[1] / damageAdjustment);
int revengeanceDamage = (int)Math.Round(projectileDamage[2] / damageAdjustment);
int deathDamage = (int)Math.Round(projectileDamage[3] / damageAdjustment);
int masterDamage = (int)Math.Round(projectileDamage[4] / damageAdjustment);
int masterDamage = (int)Math.Round(projectileDamage[3] / damageAdjustment);
int damageToUse = Main.masterMode ? masterDamage : CalamityWorld.death ? deathDamage : CalamityWorld.revenge ? revengeanceDamage : Main.expertMode ? expertDamage : normalDamage;
int damageToUse = Main.masterMode ? masterDamage : CalamityWorld.revenge ? revengeanceDamage : Main.expertMode ? expertDamage : normalDamage;
return damageToUse;
}
@@ -117,10 +115,9 @@ namespace CalamityMod
int normalDamage = (int)Math.Round(projectileDamage[0] / damageAdjustment);
int expertDamage = (int)Math.Round(projectileDamage[1] / damageAdjustment);
int revengeanceDamage = (int)Math.Round(projectileDamage[2] / damageAdjustment);
int deathDamage = (int)Math.Round(projectileDamage[3] / damageAdjustment);
int masterDamage = (int)Math.Round(projectileDamage[4] / damageAdjustment);
int masterDamage = (int)Math.Round(projectileDamage[3] / damageAdjustment);
int damageToUse = Main.masterMode ? masterDamage : CalamityWorld.death ? deathDamage : CalamityWorld.revenge ? revengeanceDamage : Main.expertMode ? expertDamage : normalDamage;
int damageToUse = Main.masterMode ? masterDamage : CalamityWorld.revenge ? revengeanceDamage : Main.expertMode ? expertDamage : normalDamage;
return damageToUse;
}
@@ -131,8 +128,7 @@ namespace CalamityMod
{
bool exists = EnemyStats.ProjectileDamageValues.TryGetValue(new Tuple<int, int>(npc.type, projType), out int[] projectileDamage);
return !exists ? 1 // Base case for safety, in case the array is not initialized yet.
: Main.masterMode ? projectileDamage[4]
: CalamityWorld.death ? projectileDamage[3]
: Main.masterMode ? projectileDamage[3]
: CalamityWorld.revenge ? projectileDamage[2]
: Main.expertMode ? projectileDamage[1]
: projectileDamage[0];
@@ -293,558 +289,543 @@ namespace CalamityMod
EnemyStats.ContactDamageValues = new SortedDictionary<int, int[]>
{
{ NPCID.KingSlime, new int[] { 40, 64, 80, 96, 144 } },
{ ModContent.NPCType<KingSlimeJewelEmerald>(), new int[] { 30, 44, 60, 76, 114 } },
{ NPCID.KingSlime, new int[] { 40, 64, 80, 144 } },
{ ModContent.NPCType<KingSlimeJewelEmerald>(), new int[] { 30, 44, 60, 114 } },
{ ModContent.NPCType<DesertScourgeHead>(), new int[] { 45, 66, 88, 110, 165 } },
{ ModContent.NPCType<DesertScourgeBody>(), new int[] { 24, 32, 40, 48, 72 } },
{ ModContent.NPCType<DesertScourgeTail>(), new int[] { 18, 24, 30, 36, 54 } },
{ ModContent.NPCType<DesertNuisanceHead>(), new int[] { 30, 44, 60, 76, 114 } },
{ ModContent.NPCType<DesertNuisanceBody>(), new int[] { 21, 28, 32, 36, 63 } },
{ ModContent.NPCType<DesertNuisanceTail>(), new int[] { 12, 16, 20, 24, 36 } },
{ ModContent.NPCType<DesertNuisanceHeadYoung>(), new int[] { 30, 44, 60, 76, 114 } },
{ ModContent.NPCType<DesertNuisanceBodyYoung>(), new int[] { 21, 28, 32, 36, 63 } },
{ ModContent.NPCType<DesertNuisanceTailYoung>(), new int[] { 12, 16, 20, 24, 36 } },
{ ModContent.NPCType<DesertScourgeHead>(), new int[] { 45, 66, 88, 165 } },
{ ModContent.NPCType<DesertScourgeBody>(), new int[] { 24, 32, 40, 72 } },
{ ModContent.NPCType<DesertScourgeTail>(), new int[] { 18, 24, 30, 54 } },
{ ModContent.NPCType<DesertNuisanceHead>(), new int[] { 30, 44, 60, 114 } },
{ ModContent.NPCType<DesertNuisanceBody>(), new int[] { 21, 28, 32, 63 } },
{ ModContent.NPCType<DesertNuisanceTail>(), new int[] { 12, 16, 20, 36 } },
{ ModContent.NPCType<DesertNuisanceHeadYoung>(), new int[] { 30, 44, 60, 114 } },
{ ModContent.NPCType<DesertNuisanceBodyYoung>(), new int[] { 21, 28, 32, 63 } },
{ ModContent.NPCType<DesertNuisanceTailYoung>(), new int[] { 12, 16, 20, 36 } },
{ NPCID.EyeofCthulhu, new int[] {
24, // 36 in phase 2
30, // 45 in phase 2
40, // 48 in phase 2, 56 in phase 3
50, // 60 in phase 2, 70 in phase 3
75 } }, // Vanilla: 113 in phase 2; Rev+: 90 in phase 2, 105 in phase 3
{ NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 36, 54 } },
{ ModContent.NPCType<BloodlettingServant>(), new int[] { 20, 26, 34, 42, 63 } }, // In phase 2: 26, 34, 44, 55, 82
{ NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 54 } },
{ ModContent.NPCType<Crabulon>(), new int[] { 40, 64, 80, 96, 144 } },
{ ModContent.NPCType<CrabShroom>(), new int[] { 25, 50, 62, 74, 111 } },
{ ModContent.NPCType<Crabulon>(), new int[] { 40, 64, 80, 144 } },
{ ModContent.NPCType<CrabShroom>(), new int[] { 25, 50, 62, 111 } },
{ NPCID.EaterofWorldsHead, new int[] { 38, 55, 77, 99, 165 } },
{ NPCID.EaterofWorldsBody, new int[] { 18, 24, 32, 40, 60 } },
{ NPCID.EaterofWorldsTail, new int[] { 12, 16, 24, 32, 48 } },
{ NPCID.VileSpitEaterOfWorlds, new int[] { -1, 64, 64, 64, 96 } },
{ NPCID.EaterofWorldsHead, new int[] { 38, 55, 77, 165 } },
{ NPCID.EaterofWorldsBody, new int[] { 18, 24, 32, 60 } },
{ NPCID.EaterofWorldsTail, new int[] { 12, 16, 24, 48 } },
{ NPCID.VileSpitEaterOfWorlds, new int[] { -1, 64, 64, 96 } },
{ NPCID.BrainofCthulhu, new int[] { 36, 54, 81, 108, 162 } },
{ NPCID.Creeper, new int[] { 24, 36, 66, 96, 144 } },
{ NPCID.BrainofCthulhu, new int[] { 36, 54, 81, 162 } },
{ NPCID.Creeper, new int[] { 24, 36, 66, 144 } },
{ ModContent.NPCType<HiveMind>(), new int[] { 42, 63, 81, 99, 162 } },
{ ModContent.NPCType<DankCreeper>(), new int[] { 30, 50, 62, 74, 111 } },
{ ModContent.NPCType<HiveMind>(), new int[] { 42, 63, 81, 162 } },
{ ModContent.NPCType<DankCreeper>(), new int[] { 30, 50, 62, 111 } },
{ ModContent.NPCType<PerforatorHive>(), new int[] { 36, 54, 63, 72, 108 } },
{ ModContent.NPCType<PerforatorHeadLarge>(), new int[] { 54, 90, 108, 126, 189 } },
{ ModContent.NPCType<PerforatorBodyLarge>(), new int[] { 28, 48, 56, 64, 96 } },
{ ModContent.NPCType<PerforatorTailLarge>(), new int[] { 22, 36, 42, 48, 72 } },
{ ModContent.NPCType<PerforatorHeadMedium>(), new int[] { 42, 70, 84, 98, 147 } },
{ ModContent.NPCType<PerforatorBodyMedium>(), new int[] { 24, 42, 50, 58, 87 } },
{ ModContent.NPCType<PerforatorTailMedium>(), new int[] { 18, 28, 34, 40, 60 } },
{ ModContent.NPCType<PerforatorHeadSmall>(), new int[] { 36, 60, 72, 84, 126 } },
{ ModContent.NPCType<PerforatorBodySmall>(), new int[] { 20, 36, 42, 48, 72 } },
{ ModContent.NPCType<PerforatorTailSmall>(), new int[] { 14, 20, 26, 32, 48 } },
{ ModContent.NPCType<PerforatorHive>(), new int[] { 36, 54, 63, 108 } },
{ ModContent.NPCType<PerforatorHeadLarge>(), new int[] { 54, 90, 108, 189 } },
{ ModContent.NPCType<PerforatorBodyLarge>(), new int[] { 28, 48, 56, 96 } },
{ ModContent.NPCType<PerforatorTailLarge>(), new int[] { 22, 36, 42, 72 } },
{ ModContent.NPCType<PerforatorHeadMedium>(), new int[] { 42, 70, 84, 147 } },
{ ModContent.NPCType<PerforatorBodyMedium>(), new int[] { 24, 42, 50, 87 } },
{ ModContent.NPCType<PerforatorTailMedium>(), new int[] { 18, 28, 34, 60 } },
{ ModContent.NPCType<PerforatorHeadSmall>(), new int[] { 36, 60, 72, 126 } },
{ ModContent.NPCType<PerforatorBodySmall>(), new int[] { 20, 36, 42, 72 } },
{ ModContent.NPCType<PerforatorTailSmall>(), new int[] { 14, 20, 26, 48 } },
{ NPCID.QueenBee, new int[] { 36, 54, 81, 108, 162 } },
{ NPCID.Bee, new int[] { 20, 24, 48, 72, 108 } },
{ NPCID.BeeSmall, new int[] { 15, 18, 36, 54, 81 } },
{ NPCID.QueenBee, new int[] { 36, 54, 81, 162 } },
{ NPCID.Bee, new int[] { 20, 24, 48, 108 } },
{ NPCID.BeeSmall, new int[] { 15, 18, 36, 81 } },
{ NPCID.SkeletronHead, new int[] {
42, // 55 while spinning
77, // 100 while spinning
88, // 114 while spinning
99, // 128 while spinning
165 } }, // 215 while spinning
{ NPCID.SkeletronHand, new int[] { 32, 44, 77, 110, 165 } },
{ NPCID.SkeletronHand, new int[] { 32, 44, 77, 165 } },
{ NPCID.Deerclops, new int[] { 20, 40, 50, 60, 90 } },
{ NPCID.Deerclops, new int[] { 20, 40, 50, 90 } },
{ ModContent.NPCType<SlimeGodCore>(), new int[] { 48, 80, 96, 112, 168 } },
{ ModContent.NPCType<EbonianPaladin>(), new int[] { 54, 90, 108, 126, 189 } },
{ ModContent.NPCType<SplitEbonianPaladin>(), new int[] { 48, 80, 96, 112, 168 } },
{ ModContent.NPCType<CrimulanPaladin>(), new int[] { 60, 100, 120, 140, 210 } },
{ ModContent.NPCType<SplitCrimulanPaladin>(), new int[] { 54, 90, 108, 126, 189 } },
{ ModContent.NPCType<CorruptSlimeSpawn>(), new int[] { 36, 60, 72, 84, 126 } },
{ ModContent.NPCType<CorruptSlimeSpawn2>(), new int[] { 24, 40, 48, 56, 84 } },
{ ModContent.NPCType<CrimsonSlimeSpawn>(), new int[] { 42, 70, 84, 98, 147 } },
{ ModContent.NPCType<CrimsonSlimeSpawn2>(), new int[] { 30, 50, 60, 70, 105 } },
{ ModContent.NPCType<SlimeGodCore>(), new int[] { 48, 80, 96, 168 } },
{ ModContent.NPCType<EbonianPaladin>(), new int[] { 54, 90, 108, 189 } },
{ ModContent.NPCType<SplitEbonianPaladin>(), new int[] { 48, 80, 96, 168 } },
{ ModContent.NPCType<CrimulanPaladin>(), new int[] { 60, 100, 120, 210 } },
{ ModContent.NPCType<SplitCrimulanPaladin>(), new int[] { 54, 90, 108, 189 } },
{ ModContent.NPCType<CorruptSlimeSpawn>(), new int[] { 36, 60, 72, 126 } },
{ ModContent.NPCType<CorruptSlimeSpawn2>(), new int[] { 24, 40, 48, 84 } },
{ ModContent.NPCType<CrimsonSlimeSpawn>(), new int[] { 42, 70, 84, 147 } },
{ ModContent.NPCType<CrimsonSlimeSpawn2>(), new int[] { 30, 50, 60, 105 } },
{ NPCID.WallofFlesh, new int[] { 100, 150, 180, 210, 315 } },
{ NPCID.WallofFleshEye, new int[] { 100, 150, 180, 210, 315 } },
{ NPCID.WallofFlesh, new int[] { 100, 150, 180, 315 } },
{ NPCID.WallofFleshEye, new int[] { 100, 150, 180, 315 } },
{ NPCID.TheHungry, new int[] {
30, // Ranges from 30 to 75 depending on WoF life
60, // Ranges from 60 to 150 depending on WoF life
60, // Ranges from 60 to 150 depending on WoF life
60, // Ranges from 60 to 150 depending on WoF life
90 } }, // Ranges from 90 to 225 depending on WoF life
{ NPCID.TheHungryII, new int[] { 30, 60, 74, 88, 132 } },
{ NPCID.LeechHead, new int[] { 26, 52, 62, 72, 108 } },
{ NPCID.LeechBody, new int[] { 22, 44, 52, 60, 90 } },
{ NPCID.LeechTail, new int[] { 18, 36, 42, 48, 72 } },
{ NPCID.TheHungryII, new int[] { 30, 60, 74, 132 } },
{ NPCID.LeechHead, new int[] { 26, 52, 62, 108 } },
{ NPCID.LeechBody, new int[] { 22, 44, 52, 90 } },
{ NPCID.LeechTail, new int[] { 18, 36, 42, 72 } },
{ NPCID.QueenSlimeBoss, new int[] { 80, 120, 150, 180, 270 } },
{ NPCID.QueenSlimeMinionBlue, new int[] { 60, 80, 100, 120, 180 } },
{ NPCID.QueenSlimeMinionPink, new int[] { 60, 80, 100, 120, 180 } },
{ NPCID.QueenSlimeMinionPurple, new int[] { 70, 100, 120, 140, 210 } },
{ NPCID.QueenSlimeBoss, new int[] { 80, 120, 150, 270 } },
{ NPCID.QueenSlimeMinionBlue, new int[] { 60, 80, 100, 180 } },
{ NPCID.QueenSlimeMinionPink, new int[] { 60, 80, 100, 180 } },
{ NPCID.QueenSlimeMinionPurple, new int[] { 70, 100, 120, 210 } },
{ ModContent.NPCType<Cryogen>(), new int[] { 90, 138, 161, 184, 276 } },
{ ModContent.NPCType<CryogenShield>(), new int[] { 80, 120, 138, 156, 240 } },
{ ModContent.NPCType<Cryogen>(), new int[] { 90, 138, 161, 276 } },
{ ModContent.NPCType<CryogenShield>(), new int[] { 80, 120, 138, 240 } },
{ NPCID.Spazmatism, new int[] {
70, // 105 in phase 2
102, // 153 in phase 2
119, // 178 in phase 2
136, // 204 in phase 2
204 } }, // 306 in phase 2
{ NPCID.Retinazer, new int[] {
55, // 83 in phase 2
85, // 127 in phase 2
102, // 153 in phase 2
119, // 178 in phase 2
153 } }, // 229 in phase 2
{ ModContent.NPCType<AquaticScourgeHead>(), new int[] { 110, 176, 187, 198, 330 } },
{ ModContent.NPCType<AquaticScourgeBody>(), new int[] { 75, 112, 136, 160, 240 } },
{ ModContent.NPCType<AquaticScourgeBodyAlt>(), new int[] { 70, 104, 112, 120, 192 } },
{ ModContent.NPCType<AquaticScourgeTail>(), new int[] { 65, 96, 104, 112, 168 } },
{ ModContent.NPCType<AquaticScourgeHead>(), new int[] { 110, 176, 187, 330 } },
{ ModContent.NPCType<AquaticScourgeBody>(), new int[] { 75, 112, 136, 240 } },
{ ModContent.NPCType<AquaticScourgeBodyAlt>(), new int[] { 70, 104, 112, 192 } },
{ ModContent.NPCType<AquaticScourgeTail>(), new int[] { 65, 96, 104, 168 } },
{ NPCID.TheDestroyer, new int[] { 140, 280, 300, 320, 480 } },
{ NPCID.TheDestroyerBody, new int[] { 70, 102, 136, 170, 255 } },
{ NPCID.TheDestroyerTail, new int[] { 45, 68, 102, 136, 204 } },
{ NPCID.TheDestroyer, new int[] { 140, 280, 300, 480 } },
{ NPCID.TheDestroyerBody, new int[] { 70, 102, 136, 255 } },
{ NPCID.TheDestroyerTail, new int[] { 45, 68, 102, 204 } },
{ ModContent.NPCType<BrimstoneElemental>(), new int[] { 75, 112, 136, 160, 240 } },
{ ModContent.NPCType<BrimstoneElemental>(), new int[] { 75, 112, 136, 240 } },
{ NPCID.SkeletronPrime, new int[] {
50, // 100 while spinning
85, // 170 while spinning
102, // 204 while spinning
119, // 238 while spinning
153 } }, // 306 while spinning
{ NPCID.PrimeVice, new int[] { 70, 102, 136, 170, 255 } },
{ NPCID.PrimeSaw, new int[] { 70, 102, 136, 170, 255 } },
{ NPCID.PrimeCannon, new int[] { 30, 51, 68, 85, 102 } },
{ NPCID.PrimeLaser, new int[] { 30, 51, 68, 85, 102 } },
{ NPCID.PrimeVice, new int[] { 70, 102, 136, 255 } },
{ NPCID.PrimeSaw, new int[] { 70, 102, 136, 255 } },
{ NPCID.PrimeCannon, new int[] { 30, 51, 68, 102 } },
{ NPCID.PrimeLaser, new int[] { 30, 51, 68, 102 } },
{ ModContent.NPCType<CalamitasClone>(), new int[] { 95, 144, 168, 192, 288 } },
{ ModContent.NPCType<Cataclysm>(), new int[] { 80, 120, 138, 156, 240 } },
{ ModContent.NPCType<Catastrophe>(), new int[] { 85, 130, 150, 170, 255 } },
{ ModContent.NPCType<CalamitasClone>(), new int[] { 95, 144, 168, 288 } },
{ ModContent.NPCType<Cataclysm>(), new int[] { 80, 120, 138, 240 } },
{ ModContent.NPCType<Catastrophe>(), new int[] { 85, 130, 150, 255 } },
{ NPCID.Plantera, new int[] {
70, // 98 in phase 2
100, // 140 in phase 2
138, // 193 in phase 2
176, // 246 in phase 2
276 } }, // 386 in phase 2
{ NPCID.PlanterasTentacle, new int[] { 90, 138, 161, 184, 276 } },
{ ModContent.NPCType<PlanterasFreeTentacle>(), new int[] { 90, 138, 161, 184, 276 } },
{ NPCID.Spore, new int[] { 90, 140, 160, 180, 270 } },
{ NPCID.PlanterasTentacle, new int[] { 90, 138, 161, 276 } },
{ ModContent.NPCType<PlanterasFreeTentacle>(), new int[] { 90, 138, 161, 276 } },
{ NPCID.Spore, new int[] { 90, 140, 160, 270 } },
{ NPCID.HallowBoss, new int[] { 80, // 120 during charge
110, // 165 during charge
143, // 215 during charge
176, // 264 during charge
264 } }, // 396 during charge
{ ModContent.NPCType<Leviathan>(), new int[] { 140, 216, 240, 264, 414 } },
{ ModContent.NPCType<Leviathan>(), new int[] { 140, 216, 240, 414 } },
{ ModContent.NPCType<Anahita>(), new int[] {
75, // 113 during charge
112, // 168 during charge
136, // 204 during charge
160, // 240 during charge
240 } }, // 360 during charge
{ ModContent.NPCType<AnahitasIceShield>(), new int[] { 70, 110, 126, 142, 210 } },
{ NPCID.DetonatingBubble, new int[] { 100, 150, 180, 210, 315 } },
{ ModContent.NPCType<AquaticAberration>(), new int[] { 90, 140, 160, 180, 270 } },
{ ModContent.NPCType<AnahitasIceShield>(), new int[] { 70, 110, 126, 210 } },
{ NPCID.DetonatingBubble, new int[] { 100, 150, 180, 315 } },
{ ModContent.NPCType<AquaticAberration>(), new int[] { 90, 140, 160, 270 } },
{ ModContent.NPCType<AstrumAureus>(), new int[] { 145, 220, 242, 264, 429 } },
{ ModContent.NPCType<AureusSpawn>(), new int[] { 75, 112, 128, 144, 225 } },
{ ModContent.NPCType<AstrumAureus>(), new int[] { 145, 220, 242, 429 } },
{ ModContent.NPCType<AureusSpawn>(), new int[] { 75, 112, 128, 225 } },
{ NPCID.Golem, new int[] { 95, 144, 176, 208, 312 } },
{ NPCID.GolemHead, new int[] { 85, 128, 144, 160, 240 } },
{ NPCID.GolemFistLeft, new int[] { 75, 112, 144, 176, 264 } },
{ NPCID.GolemFistRight, new int[] { 75, 112, 144, 176, 264 } },
{ NPCID.Golem, new int[] { 95, 144, 176, 312 } },
{ NPCID.GolemHead, new int[] { 85, 128, 144, 240 } },
{ NPCID.GolemFistLeft, new int[] { 75, 112, 144, 264 } },
{ NPCID.GolemFistRight, new int[] { 75, 112, 144, 264 } },
{ ModContent.NPCType<PlaguebringerGoliath>(), new int[] { 120, 180, 216, 252, 378 } },
{ ModContent.NPCType<PlagueHomingMissile>(), new int[] { 120, 180, 210, 240, 360 } },
{ ModContent.NPCType<PlagueMine>(), new int[] { 130, 200, 240, 280, 420 } },
{ ModContent.NPCType<PlaguebringerGoliath>(), new int[] { 120, 180, 216, 378 } },
{ ModContent.NPCType<PlagueHomingMissile>(), new int[] { 120, 180, 210, 360 } },
{ ModContent.NPCType<PlagueMine>(), new int[] { 130, 200, 240, 420 } },
{ NPCID.DukeFishron, new int[] {
100, // 120 in phase 2
140, // 202 in phase 2, 185 in phase 3
168, // 242 in phase 2, 222 in phase 3
196, // 282 in phase 2, 259 in phase 3
294 } }, // 423 in phase 2, 388 in phase 3
{ NPCID.Sharkron, new int[] { 100, 150, 180, 210, 315 } },
{ NPCID.Sharkron2, new int[] { 120, 180, 210, 240, 360 } },
{ NPCID.Sharkron, new int[] { 100, 150, 180, 315 } },
{ NPCID.Sharkron2, new int[] { 120, 180, 210, 360 } },
{ ModContent.NPCType<RavagerBody>(), new int[] { 130, 192, 224, 256, 384 } },
{ ModContent.NPCType<RavagerClawLeft>(), new int[] { 105, 160, 180, 200, 315 } },
{ ModContent.NPCType<RavagerClawRight>(), new int[] { 105, 160, 180, 200, 315 } },
{ ModContent.NPCType<RockPillar>(), new int[] { 130, 192, 224, 256, 390 } },
{ ModContent.NPCType<FlamePillar>(), new int[] { 105, 160, 192, 224, 336 } },
{ ModContent.NPCType<RavagerBody>(), new int[] { 130, 192, 224, 384 } },
{ ModContent.NPCType<RavagerClawLeft>(), new int[] { 105, 160, 180, 315 } },
{ ModContent.NPCType<RavagerClawRight>(), new int[] { 105, 160, 180, 315 } },
{ ModContent.NPCType<RockPillar>(), new int[] { 130, 192, 224, 390 } },
{ ModContent.NPCType<FlamePillar>(), new int[] { 105, 160, 192, 336 } },
{ NPCID.CultistDragonHead, new int[] { 120, 180, 210, 240, 360 } },
{ NPCID.CultistDragonBody1, new int[] { 60, 90, 105, 120, 180 } },
{ NPCID.CultistDragonBody2, new int[] { 60, 90, 105, 120, 180 } },
{ NPCID.CultistDragonBody3, new int[] { 60, 90, 105, 120, 180 } },
{ NPCID.CultistDragonBody4, new int[] { 60, 90, 105, 120, 180 } },
{ NPCID.CultistDragonTail, new int[] { 60, 90, 105, 120, 180 } },
{ NPCID.AncientCultistSquidhead, new int[] { 120, 180, 210, 240, 360 } },
{ NPCID.AncientLight, new int[] { 120, 180, 210, 240, 360 } },
{ NPCID.CultistDragonHead, new int[] { 120, 180, 210, 360 } },
{ NPCID.CultistDragonBody1, new int[] { 60, 90, 105, 180 } },
{ NPCID.CultistDragonBody2, new int[] { 60, 90, 105, 180 } },
{ NPCID.CultistDragonBody3, new int[] { 60, 90, 105, 180 } },
{ NPCID.CultistDragonBody4, new int[] { 60, 90, 105, 180 } },
{ NPCID.CultistDragonTail, new int[] { 60, 90, 105, 180 } },
{ NPCID.AncientCultistSquidhead, new int[] { 120, 180, 210, 360 } },
{ NPCID.AncientLight, new int[] { 120, 180, 210, 360 } },
{ ModContent.NPCType<AstrumDeusHead>(), new int[] { 160, 240, 268, 296, 480 } },
{ ModContent.NPCType<AstrumDeusBody>(), new int[] { 105, 160, 192, 224, 336 } },
{ ModContent.NPCType<AstrumDeusTail>(), new int[] { 85, 128, 160, 192, 288 } },
{ ModContent.NPCType<AstrumDeusHead>(), new int[] { 160, 240, 268, 480 } },
{ ModContent.NPCType<AstrumDeusBody>(), new int[] { 105, 160, 192, 336 } },
{ ModContent.NPCType<AstrumDeusTail>(), new int[] { 85, 128, 160, 288 } },
{ ModContent.NPCType<ProfanedGuardianCommander>(), new int[] { 150, 224, 256, 288, 444 } },
{ ModContent.NPCType<ProfanedGuardianDefender>(), new int[] { 160, 240, 264, 288, 405 } },
{ ModContent.NPCType<ProfanedGuardianHealer>(), new int[] { 100, 200, 220, 240, 300 } },
{ ModContent.NPCType<ProfanedRocks>(), new int[] { 100, 200, 220, 232, 300 } },
{ ModContent.NPCType<ProfanedGuardianCommander>(), new int[] { 150, 224, 256, 444 } },
{ ModContent.NPCType<ProfanedGuardianDefender>(), new int[] { 160, 240, 264, 405 } },
{ ModContent.NPCType<ProfanedGuardianHealer>(), new int[] { 100, 200, 220, 300 } },
{ ModContent.NPCType<ProfanedRocks>(), new int[] { 100, 200, 220, 300 } },
{ ModContent.NPCType<Dragonfolly>(), new int[] { 170, 256, 288, 320, 504 } },
{ ModContent.NPCType<DraconicSwarmer>(), new int[] { 145, 220, 242, 264, 435 } },
{ ModContent.NPCType<Dragonfolly>(), new int[] { 170, 256, 288, 504 } },
{ ModContent.NPCType<DraconicSwarmer>(), new int[] { 145, 220, 242, 435 } },
{ ModContent.NPCType<CeaselessVoid>(), new int[] { 240, 360, 396, 432, 720 } },
{ ModContent.NPCType<DarkEnergy>(), new int[] { 175, 260, 288, 316, 525 } },
{ ModContent.NPCType<CeaselessVoid>(), new int[] { 240, 360, 396, 720 } },
{ ModContent.NPCType<DarkEnergy>(), new int[] { 175, 260, 288, 525 } },
{ ModContent.NPCType<StormWeaverHead>(), new int[] { 240, 360, 396, 432, 720 } },
{ ModContent.NPCType<StormWeaverBody>(), new int[] { 125, 192, 224, 256, 372 } },
{ ModContent.NPCType<StormWeaverTail>(), new int[] { 105, 160, 192, 224, 312 } },
{ ModContent.NPCType<StormWeaverHead>(), new int[] { 240, 360, 396, 720 } },
{ ModContent.NPCType<StormWeaverBody>(), new int[] { 125, 192, 224, 372 } },
{ ModContent.NPCType<StormWeaverTail>(), new int[] { 105, 160, 192, 312 } },
{ ModContent.NPCType<Signus>(), new int[] { 210, 315, 351, 387, 621 } },
{ ModContent.NPCType<CosmicLantern>(), new int[] { 175, 260, 288, 316, 525 } },
{ ModContent.NPCType<CosmicMine>(), new int[] { 190, 280, 300, 320, 570 } },
{ ModContent.NPCType<Signus>(), new int[] { 210, 315, 351, 621 } },
{ ModContent.NPCType<CosmicLantern>(), new int[] { 175, 260, 288, 525 } },
{ ModContent.NPCType<CosmicMine>(), new int[] { 190, 280, 300, 570 } },
{ ModContent.NPCType<Polterghast>(), new int[] {
160, // 192 in phase 2, 224 in phase 3
240, // 288 in phase 2, 336 in phase 3
264, // 317 in phase 2, 370 in phase 3
288, // 346 in phase 2, 403 in phase 3
480 } }, // 576 in phase 2, 672 in phase 3
{ ModContent.NPCType<PolterPhantom>(), new int[] { 224, 336, 370, 403, 672 } },
{ ModContent.NPCType<PolterPhantom>(), new int[] { 224, 336, 370, 672 } },
{ ModContent.NPCType<OldDuke>(), new int[] {
192, // 211 in phase 2, 230 in phase 3
288, // 317 in phase 2, 346 in phase 3
324, // 356 in phase 2, 389 in phase 3
360, // 396 in phase 2, 432 in phase 3
567 } }, // 624 in phase 2, 680 in phase 3
{ ModContent.NPCType<OldDukeToothBall>(), new int[] { 192, 288, 328, 368, 576 } },
{ ModContent.NPCType<SulphurousSharkron>(), new int[] { 192, 288, 328, 368, 576 } },
{ ModContent.NPCType<OldDukeToothBall>(), new int[] { 192, 288, 328, 576 } },
{ ModContent.NPCType<SulphurousSharkron>(), new int[] { 192, 288, 328, 576 } },
{ ModContent.NPCType<DevourerofGodsHead>(), new int[] { 470, 700, 750, 800, 1410 } },
{ ModContent.NPCType<DevourerofGodsBody>(), new int[] { 250, 374, 425, 476, 714 } },
{ ModContent.NPCType<DevourerofGodsTail>(), new int[] { 204, 306, 340, 374, 612 } },
{ ModContent.NPCType<CosmicGuardianHead>(), new int[] { 240, 360, 396, 432, 720 } },
{ ModContent.NPCType<CosmicGuardianBody>(), new int[] { 175, 260, 290, 320, 525 } },
{ ModContent.NPCType<CosmicGuardianTail>(), new int[] { 135, 200, 230, 260, 405 } },
{ ModContent.NPCType<DevourerofGodsHead>(), new int[] { 470, 700, 750, 1410 } },
{ ModContent.NPCType<DevourerofGodsBody>(), new int[] { 250, 374, 425, 714 } },
{ ModContent.NPCType<DevourerofGodsTail>(), new int[] { 204, 306, 340, 612 } },
{ ModContent.NPCType<CosmicGuardianHead>(), new int[] { 240, 360, 396, 720 } },
{ ModContent.NPCType<CosmicGuardianBody>(), new int[] { 175, 260, 290, 525 } },
{ ModContent.NPCType<CosmicGuardianTail>(), new int[] { 135, 200, 230, 405 } },
{ ModContent.NPCType<Yharon>(), new int[] { 300, 448, 480, 512, 900 } },
{ ModContent.NPCType<Yharon>(), new int[] { 300, 448, 480, 900 } },
{ ModContent.NPCType<SupremeCalamitas>(), new int[] { 340, 512, 544, 576, 1020 } },
{ ModContent.NPCType<SupremeCalamitas>(), new int[] { 340, 512, 544, 1020 } },
{ ModContent.NPCType<Apollo>(), new int[] { 340, 512, 544, 576, 1020 } },
{ ModContent.NPCType<Artemis>(), new int[] { 320, 480, 512, 544, 960 } },
{ ModContent.NPCType<Apollo>(), new int[] { 340, 512, 544, 1020 } },
{ ModContent.NPCType<Artemis>(), new int[] { 320, 480, 512, 960 } },
{ ModContent.NPCType<ThanatosHead>(), new int[] { 375, 560, 592, 624, 1116 } },
{ ModContent.NPCType<ThanatosBody1>(), new int[] { 320, 480, 512, 544, 960 } },
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 320, 480, 512, 544, 960 } },
{ ModContent.NPCType<ThanatosTail>(), new int[] { 270, 400, 424, 448, 804 } },
{ ModContent.NPCType<ThanatosHead>(), new int[] { 375, 560, 592, 1116 } },
{ ModContent.NPCType<ThanatosBody1>(), new int[] { 320, 480, 512, 960 } },
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 320, 480, 512, 960 } },
{ ModContent.NPCType<ThanatosTail>(), new int[] { 270, 400, 424, 804 } },
{ ModContent.NPCType<PrimordialWyrmHead>(), new int[] { 535, 800, 850, 900, 1596 } }
{ ModContent.NPCType<PrimordialWyrmHead>(), new int[] { 535, 800, 850, 1596 } }
};
EnemyStats.ProjectileDamageValues = new SortedDictionary<Tuple<int, int>, int[]>
{
{ new Tuple<int, int>(ModContent.NPCType<KingSlimeJewelRuby>(), ModContent.ProjectileType<JewelProjectile>()), new int[] { 26, 36, 44, 52, 84 } },
{ new Tuple<int, int>(ModContent.NPCType<KingSlimeJewelRuby>(), ModContent.ProjectileType<JewelProjectile>()), new int[] { 26, 36, 44, 84 } },
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<DesertScourgeSpit>()), new int[] { 26, 36, 44, 52, 84 } },
{ new Tuple<int, int>(ModContent.NPCType<DesertNuisanceHeadYoung>(), ModContent.ProjectileType<DesertScourgeSpit>()), new int[] { 26, 36, 44, 52, 84 } },
{ new Tuple<int, int>(ModContent.NPCType<DesertScourgeHead>(), ModContent.ProjectileType<DesertScourgeSpit>()), new int[] { 26, 36, 44, 84 } },
{ new Tuple<int, int>(ModContent.NPCType<DesertNuisanceHeadYoung>(), ModContent.ProjectileType<DesertScourgeSpit>()), new int[] { 26, 36, 44, 84 } },
{ new Tuple<int, int>(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 26, 44, 60, 76, 114 } },
{ new Tuple<int, int>(ModContent.NPCType<BloodlettingServant>(), ProjectileID.BloodShot), new int[] { 26, 36, 44, 52, 84 } },
{ new Tuple<int, int>(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 26, 44, 60, 114 } },
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 72, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 72, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombGround>()), new int[] { 32, 48, 60, 72, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBomb>()), new int[] { 32, 48, 60, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombFall>()), new int[] { 32, 48, 60, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<Crabulon>(), ModContent.ProjectileType<MushBombGround>()), new int[] { 32, 48, 60, 108 } },
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 26, 44, 60, 76, 114 } },
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 26, 36, 44, 52, 84 } },
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 26, 44, 60, 114 } },
{ new Tuple<int, int>(NPCID.EaterofWorldsHead, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 26, 36, 44, 84 } },
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodShot), new int[] { 26, 44, 60, 76, 114 } },
{ new Tuple<int, int>(NPCID.Creeper, ProjectileID.BloodShot), new int[] { 26, 44, 60, 76, 114 } },
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(NPCID.BrainofCthulhu, ProjectileID.BloodShot), new int[] { 26, 44, 60, 114 } },
{ new Tuple<int, int>(NPCID.Creeper, ProjectileID.BloodShot), new int[] { 26, 44, 60, 114 } },
{ new Tuple<int, int>(ModContent.NPCType<HiveMind>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<DankCreeper>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<DarkHeart>(), ModContent.ProjectileType<ShaderainHostile>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 72, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob2>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 72, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<HiveMind>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<DankCreeper>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<DarkHeart>(), ModContent.ProjectileType<ShaderainHostile>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<HiveBlob2>(), ModContent.ProjectileType<VileClot>()), new int[] { 30, 48, 60, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<BloodGeyser>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorShot>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorBodyMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorTailMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<BloodGeyser>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<IchorShot>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 22, 36, 44, 52, 84 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<BloodGeyser>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorShot>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHive>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorBodyMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorTailMedium>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<BloodGeyser>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<IchorShot>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<IchorBlob>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<PerforatorHeadLarge>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 22, 36, 44, 84 } },
{ new Tuple<int, int>(NPCID.QueenBee, ProjectileID.QueenBeeStinger), new int[] { 22, 44, 64, 84, 126 } },
{ new Tuple<int, int>(NPCID.QueenBee, ModContent.ProjectileType<QueenBeenade>()), new int[] { 46, 72, 84, 96, 144 } }, // Beenade Bees: 122 (death mode-exclusive)
{ new Tuple<int, int>(NPCID.QueenBee, ProjectileID.QueenBeeStinger), new int[] { 22, 44, 64, 126 } },
{ new Tuple<int, int>(NPCID.QueenBee, ModContent.ProjectileType<QueenBeenade>()), new int[] { 46, 72, 84, 144 } }, // Beenade Bees: 122 (death mode-exclusive)
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Skull), new int[] { 46, 72, 84, 96, 144 } },
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Shadowflames), new int[] { 36, 72, 88, 104, 156 } },
{ new Tuple<int, int>(NPCID.SkeletronHand, ProjectileID.Skull), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Skull), new int[] { 46, 72, 84, 144 } },
{ new Tuple<int, int>(NPCID.SkeletronHead, ProjectileID.Shadowflames), new int[] { 36, 72, 88, 156 } },
{ new Tuple<int, int>(NPCID.SkeletronHand, ProjectileID.Skull), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsIceSpike), new int[] { 26, 52, 76, 100, 150 } },
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsRangedProjectile), new int[] { 36, 72, 88, 104, 156 } },
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.InsanityShadowHostile), new int[] { 20, 40, 60, 80, 120 } },
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsIceSpike), new int[] { 26, 52, 76, 150 } },
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.DeerclopsRangedProjectile), new int[] { 36, 72, 88, 156 } },
{ new Tuple<int, int>(NPCID.Deerclops, ProjectileID.InsanityShadowHostile), new int[] { 20, 40, 60, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 100, 150 } },
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 92, 138 } },
{ new Tuple<int, int>(ModContent.NPCType<EbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 100, 150 } },
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 92, 138 } },
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<CrimulanSpike>()), new int[] { 42, 68, 84, 100, 150 } },
{ new Tuple<int, int>(ModContent.NPCType<SplitEbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 38, 60, 76, 92, 138 } },
{ new Tuple<int, int>(ModContent.NPCType<SplitCrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 34, 52, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 80, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<CrimsonSlimeSpawn2>(), ModContent.ProjectileType<CrimsonSpike>()), new int[] { 24, 48, 60, 72, 108 } },
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 150 } },
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 138 } },
{ new Tuple<int, int>(ModContent.NPCType<EbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 150 } },
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 138 } },
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<CrimulanSpike>()), new int[] { 42, 68, 84, 150 } },
{ new Tuple<int, int>(ModContent.NPCType<SplitEbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 38, 60, 76, 138 } },
{ new Tuple<int, int>(ModContent.NPCType<SplitCrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 34, 52, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 120 } },
{ new Tuple<int, int>(ModContent.NPCType<CrimsonSlimeSpawn2>(), ModContent.ProjectileType<CrimsonSpike>()), new int[] { 24, 48, 60, 108 } },
{ new Tuple<int, int>(NPCID.WallofFleshEye, ProjectileID.EyeLaser), new int[] { 36, 72, 88, 104, 156 } },
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.DemonSickle), new int[] { 52, 92, 112, 132, 198 } },
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.Fireball), new int[] { 36, 72, 88, 104, 156 } },
{ new Tuple<int, int>(NPCID.WallofFleshEye, ProjectileID.EyeLaser), new int[] { 36, 72, 88, 156 } },
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.DemonSickle), new int[] { 52, 92, 112, 198 } },
{ new Tuple<int, int>(NPCID.WallofFlesh, ProjectileID.Fireball), new int[] { 36, 72, 88, 156 } },
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeGelAttack), new int[] { 60, 120, 136, 152, 228 } },
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeSmash), new int[] { 80, 160, 188, 216, 324 } },
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 132, 198 } },
{ new Tuple<int, int>(NPCID.QueenSlimeMinionBlue, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 132, 198 } },
{ new Tuple<int, int>(NPCID.QueenSlimeMinionPink, ProjectileID.QueenSlimeMinionPinkBall), new int[] { 52, 92, 112, 132, 198 } },
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeGelAttack), new int[] { 60, 120, 136, 228 } },
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeSmash), new int[] { 80, 160, 188, 324 } },
{ new Tuple<int, int>(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 198 } },
{ new Tuple<int, int>(NPCID.QueenSlimeMinionBlue, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 198 } },
{ new Tuple<int, int>(NPCID.QueenSlimeMinionPink, ProjectileID.QueenSlimeMinionPinkBall), new int[] { 52, 92, 112, 198 } },
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 132, 198 } },
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBomb>()), new int[] { 70, 120, 136, 152, 228 } },
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceRain>()), new int[] { 60, 100, 120, 140, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<CryogenShield>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 132, 198 } },
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 198 } },
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceBomb>()), new int[] { 70, 120, 136, 228 } },
{ new Tuple<int, int>(ModContent.NPCType<Cryogen>(), ModContent.ProjectileType<IceRain>()), new int[] { 60, 100, 120, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<CryogenShield>(), ModContent.ProjectileType<IceBlast>()), new int[] { 52, 92, 112, 198 } },
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 92, 116, 140, 210 } },
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 92, 116, 210 } },
{ new Tuple<int, int>(NPCID.Retinazer, ProjectileID.DeathLaser), new int[] {
50, // 38 in rapid fire
108, // 81 in rapid fire
132, // 99 in rapid fire
156, // 117 in rapid fire
234 } }, // 176 in rapid fire
{ new Tuple<int, int>(NPCID.Retinazer, ModContent.ProjectileType<HomingLaserDart>()), new int[] { 70, 120, 136, 152, 228 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ProjectileID.CursedFlameHostile), new int[] { 50, 100, 120, 140, 210 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<CursedFire>()), new int[] { 60, 120, 148, 176, 264 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<Shadowflamethrower>()), new int[] { 70, 120, 148, 176, 264 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 60, 100, 128, 156, 234 } },
{ new Tuple<int, int>(NPCID.Retinazer, ModContent.ProjectileType<HomingLaserDart>()), new int[] { 70, 120, 136, 228 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ProjectileID.CursedFlameHostile), new int[] { 50, 100, 120, 210 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<CursedFire>()), new int[] { 60, 120, 148, 264 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<Shadowflamethrower>()), new int[] { 70, 120, 148, 264 } },
{ new Tuple<int, int>(NPCID.Spazmatism, ModContent.ProjectileType<ShadowflameFireball>()), new int[] { 60, 100, 128, 234 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SulphuricAcidMist>()), new int[] { 60, 100, 120, 140, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SandPoisonCloud>()), new int[] { 70, 120, 136, 152, 228 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<ToxicCloud>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeBody>(), ModContent.ProjectileType<SandTooth>()), new int[] { 66, 112, 128, 144, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SulphuricAcidMist>()), new int[] { 60, 100, 120, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<SandPoisonCloud>()), new int[] { 70, 120, 136, 228 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeHead>(), ModContent.ProjectileType<ToxicCloud>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<AquaticScourgeBody>(), ModContent.ProjectileType<SandTooth>()), new int[] { 66, 112, 128, 216 } },
{ new Tuple<int, int>(NPCID.TheDestroyer, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 136, 204 } },
{ new Tuple<int, int>(NPCID.TheDestroyer, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 108, 128, 148, 222 } },
{ new Tuple<int, int>(NPCID.TheDestroyer, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 116, 136, 156, 234 } },
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 136, 204 } },
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 108, 128, 148, 222 } },
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 116, 136, 156, 234 } },
{ new Tuple<int, int>(NPCID.Probe, ProjectileID.PinkLaser), new int[] { 50, 88, 100, 112, 168 } },
{ new Tuple<int, int>(NPCID.TheDestroyer, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 204 } },
{ new Tuple<int, int>(NPCID.TheDestroyer, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 108, 128, 222 } },
{ new Tuple<int, int>(NPCID.TheDestroyer, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 116, 136, 234 } },
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 204 } },
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerCursedLaser>()), new int[] { 46, 108, 128, 222 } },
{ new Tuple<int, int>(NPCID.TheDestroyerBody, ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 48, 116, 136, 234 } },
{ new Tuple<int, int>(NPCID.Probe, ProjectileID.PinkLaser), new int[] { 50, 88, 100, 168 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneRay>()), new int[] { 120, 200, 240, 280, 420 } }, // Split shots: 72, 120, 144, 168, 252
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<BrimstoneElemental>(), ModContent.ProjectileType<BrimstoneRay>()), new int[] { 120, 200, 240, 420 } }, // Split shots: 72, 120, 144, 252
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<Brimling>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 216 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 264 } },
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 264 } },
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 0, 300 } },
{ new Tuple<int, int>(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 108, 124, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 264 } },
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 264 } },
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 300 } },
{ new Tuple<int, int>(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<Cataclysm>(), ModContent.ProjectileType<BrimstoneFire>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<Catastrophe>(), ModContent.ProjectileType<BrimstoneBall>()), new int[] { 70, 112, 128, 144, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<SoulSeeker>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 144, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellfireball>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<CalamitasClone>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<Cataclysm>(), ModContent.ProjectileType<BrimstoneFire>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<Catastrophe>(), ModContent.ProjectileType<BrimstoneBall>()), new int[] { 70, 112, 128, 216 } },
{ new Tuple<int, int>(ModContent.NPCType<SoulSeeker>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 70, 112, 128, 216 } },
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 52, 96, 128, 160, 240 } },
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.PoisonSeedPlantera), new int[] { 62, 116, 144, 172, 258 } },
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.ThornBall), new int[] { 72, 132, 160, 188, 282 } },
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<SporeGasPlantera>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<HomingGasBulb>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 52, 96, 128, 240 } },
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.PoisonSeedPlantera), new int[] { 62, 116, 144, 258 } },
{ new Tuple<int, int>(NPCID.Plantera, ProjectileID.ThornBall), new int[] { 72, 132, 160, 282 } },
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<SporeGasPlantera>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(NPCID.Plantera, ModContent.ProjectileType<HomingGasBulb>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossRainbowStreak), new int[] { 100, 152, 172, 192, 300 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenSunDance), new int[] { 120, 180, 204, 228, 360 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossLastingRainbow), new int[] { 100, 152, 172, 192, 300 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenLance), new int[] { 130, 196, 216, 236, 390 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossRainbowStreak), new int[] { 100, 152, 172, 300 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenSunDance), new int[] { 120, 180, 204, 360 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.HallowBossLastingRainbow), new int[] { 100, 152, 172, 300 } },
{ new Tuple<int, int>(NPCID.HallowBoss, ProjectileID.FairyQueenLance), new int[] { 130, 196, 216, 390 } },
{ new Tuple<int, int>(ModContent.NPCType<Leviathan>(), ModContent.ProjectileType<LeviathanBomb>()), new int[] { 100, 172, 208, 244, 366 } },
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<WaterSpear>()), new int[] { 80, 140, 160, 180, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<FrostMist>()), new int[] { 84, 148, 172, 196, 294 } },
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<SirenSong>()), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<Leviathan>(), ModContent.ProjectileType<LeviathanBomb>()), new int[] { 100, 172, 208, 366 } },
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<WaterSpear>()), new int[] { 80, 140, 160, 270 } },
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<FrostMist>()), new int[] { 84, 148, 172, 294 } },
{ new Tuple<int, int>(ModContent.NPCType<Anahita>(), ModContent.ProjectileType<SirenSong>()), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralFlame>()), new int[] { 100, 172, 208, 244, 366 } },
{ new Tuple<int, int>(ModContent.NPCType<AureusSpawn>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumAureus>(), ModContent.ProjectileType<AstralFlame>()), new int[] { 100, 172, 208, 366 } },
{ new Tuple<int, int>(ModContent.NPCType<AureusSpawn>(), ModContent.ProjectileType<AstralLaser>()), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.Fireball), new int[] { 60, 120, 140, 180, 270 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 306 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 140, 180, 270 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 306 } },
{ new Tuple<int, int>(NPCID.GolemFistLeft, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.GolemFistRight, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 140, 180, 270 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 306 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.Fireball), new int[] { 60, 120, 140, 270 } },
{ new Tuple<int, int>(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 306 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 140, 270 } },
{ new Tuple<int, int>(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 306 } },
{ new Tuple<int, int>(NPCID.GolemFistLeft, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(NPCID.GolemFistRight, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 140, 270 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 306 } },
{ new Tuple<int, int>(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliath>()), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliathV2>()), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<HiveBombGoliath>()), new int[] { 120, 192, 220, 248, 372 } },
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliath>()), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<PlagueStingerGoliathV2>()), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<PlaguebringerGoliath>(), ModContent.ProjectileType<HiveBombGoliath>()), new int[] { 120, 192, 220, 372 } },
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 150, 200, 300 } },
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 264, 480 } },
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 150, 300 } },
{ new Tuple<int, int>(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerBody>(), ModContent.ProjectileType<RavagerBlaster>()), new int[] { 120, 180, 208, 236, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead>(), ModContent.ProjectileType<RavagerNuke>()), new int[] { 120, 180, 208, 236, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<HomingLaserDart>()), new int[] { 90, 144, 172, 200, 300 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<RavagerNuke>()), new int[] { 120, 180, 208, 236, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<FlamePillar>(), ModContent.ProjectileType<RavagerFlame>()), new int[] { 90, 144, 172, 200, 300 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerBody>(), ModContent.ProjectileType<RavagerBlaster>()), new int[] { 120, 180, 208, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead>(), ModContent.ProjectileType<RavagerNuke>()), new int[] { 120, 180, 208, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<HomingLaserDart>()), new int[] { 90, 144, 172, 300 } },
{ new Tuple<int, int>(ModContent.NPCType<RavagerHead2>(), ModContent.ProjectileType<RavagerNuke>()), new int[] { 120, 180, 208, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<FlamePillar>(), ModContent.ProjectileType<RavagerFlame>()), new int[] { 90, 144, 172, 300 } },
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossFireBall), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossIceMist), new int[] { 120, 180, 208, 236, 360 } },
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossLightningOrb), new int[] { 120, 192, 220, 248, 372 } },
{ new Tuple<int, int>(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 90, 144, 172, 200, 300 } },
{ new Tuple<int, int>(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 88, 156, 184, 212, 318 } },
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossFireBall), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossIceMist), new int[] { 120, 180, 208, 360 } },
{ new Tuple<int, int>(NPCID.CultistBoss, ProjectileID.CultistBossLightningOrb), new int[] { 120, 192, 220, 372 } },
{ new Tuple<int, int>(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 90, 144, 172, 300 } },
{ new Tuple<int, int>(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 88, 156, 184, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralShot2>()), new int[] { 90, 152, 176, 200, 300 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<DeusMine>()), new int[] { 120, 180, 208, 236, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralGodRay>()), new int[] { 100, 172, 192, 212, 318 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralShot2>()), new int[] { 90, 152, 176, 300 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<DeusMine>()), new int[] { 120, 180, 208, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<AstrumDeusBody>(), ModContent.ProjectileType<AstralGodRay>()), new int[] { 100, 172, 192, 318 } },
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 200, 300, 380, 460, 690 } },
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 200, 300 } },
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalEye), new int[] { 90, 120, 160, 200, 300 } },
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalSphere), new int[] { 120, 160, 220, 280, 420 } },
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 200, 300 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalBolt), new int[] { 100, 140, 180, 220, 330 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalEye), new int[] { 100, 140, 180, 220, 330 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 132, 176, 220, 264, 396 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 150, 200, 260, 320, 480 } },
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 200, 300, 380, 690 } },
{ new Tuple<int, int>(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 300 } },
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalEye), new int[] { 90, 120, 160, 300 } },
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalSphere), new int[] { 120, 160, 220, 420 } },
{ new Tuple<int, int>(NPCID.MoonLordHand, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 300 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalBolt), new int[] { 100, 140, 180, 330 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalEye), new int[] { 100, 140, 180, 330 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 132, 176, 220, 396 } },
{ new Tuple<int, int>(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 150, 200, 260, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProfanedSpear>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 248, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 248, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 160, 320, 352, 384, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 207, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 276, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 207, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 120, 192, 220, 248, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyLight>()), new int[] { 35, 50, 50, 0, 0 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProfanedSpear>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianCommander>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 160, 320, 352, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 120, 192, 220, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<ProfanedGuardianHealer>(), ModContent.ProjectileType<HolyLight>()), new int[] { 35, 50, 50, 0 } },
{ new Tuple<int, int>(ModContent.NPCType<Dragonfolly>(), ModContent.ProjectileType<RedLightningFeather>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Dragonfolly>(), ModContent.ProjectileType<BirbAuraFlare>()), new int[] { 200, 300, 332, 364, 600 } },
{ new Tuple<int, int>(ModContent.NPCType<Dragonfolly>(), ModContent.ProjectileType<RedLightningFeather>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Dragonfolly>(), ModContent.ProjectileType<BirbAuraFlare>()), new int[] { 200, 300, 332, 600 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 150, 264, 288, 312, 450 } }, // Split holy fire does: 113, 198, 216, 234, 338
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 248, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 248, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyLight>()), new int[] { 35, 50, 50, 0, 0 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 276, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 207, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 228, 252, 276, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 207, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 268, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystal>()), new int[] { 140, 228, 252, 276, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 228, 252, 276, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 200, 400, 440, 480, 600 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBlast>()), new int[] { 150, 264, 288, 450 } }, // Split holy fire does: 113, 198, 216, 338
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire>()), new int[] { 120, 192, 220, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFire2>()), new int[] { 120, 192, 220, 360 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBurnOrb>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyLight>()), new int[] { 35, 50, 50, 0 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlast>()), new int[] { 140, 228, 252, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<MoltenBlob>()), new int[] { 105, 171, 189, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyBomb>()), new int[] { 140, 228, 252, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolyFlare>()), new int[] { 105, 171, 189, 315 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<HolySpear>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystal>()), new int[] { 140, 228, 252, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceCrystalShard>()), new int[] { 140, 228, 252, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Providence>(), ModContent.ProjectileType<ProvidenceHolyRay>()), new int[] { 200, 400, 440, 600 } },
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DoGBeamPortal>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall2>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DoGBeamPortal>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<CeaselessVoid>(), ModContent.ProjectileType<DarkEnergyBall2>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 150, 264, 288, 312, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.FrostWave), new int[] { 150, 264, 288, 312, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ModContent.ProjectileType<StormMarkHostile>()), new int[] { 160, 276, 304, 332, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverBody>(), ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverTail>(), ProjectileID.CultistBossLightningOrb), new int[] { 150, 264, 288, 312, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 150, 264, 288, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ProjectileID.FrostWave), new int[] { 150, 264, 288, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverHead>(), ModContent.ProjectileType<StormMarkHostile>()), new int[] { 160, 276, 304, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverBody>(), ModContent.ProjectileType<DestroyerElectricLaser>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<StormWeaverTail>(), ProjectileID.CultistBossLightningOrb), new int[] { 150, 264, 288, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<SignusScythe>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<EssenceDust>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<SignusScythe>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Signus>(), ModContent.ProjectileType<EssenceDust>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot2>()), new int[] { 150, 264, 288, 312, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast>()), new int[] { 150, 264, 288, 312, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast2>()), new int[] { 160, 276, 304, 332, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<PolterghastHook>(), ModContent.ProjectileType<PhantomHookShot>()), new int[] { 140, 240, 264, 288, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<PhantomFuckYou>(), ModContent.ProjectileType<PhantomMine>()), new int[] { 170, 296, 324, 352, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<PhantomSpiritL>(), ModContent.ProjectileType<PhantomGhostShot>()), new int[] { 150, 264, 288, 312, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomShot2>()), new int[] { 150, 264, 288, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast>()), new int[] { 150, 264, 288, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Polterghast>(), ModContent.ProjectileType<PhantomBlast2>()), new int[] { 160, 276, 304, 480 } },
{ new Tuple<int, int>(ModContent.NPCType<PolterghastHook>(), ModContent.ProjectileType<PhantomHookShot>()), new int[] { 140, 240, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<PhantomFuckYou>(), ModContent.ProjectileType<PhantomMine>()), new int[] { 170, 296, 324, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<PhantomSpiritL>(), ModContent.ProjectileType<PhantomGhostShot>()), new int[] { 150, 264, 288, 450 } },
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidBubble>()), new int[] { 140, 220, 244, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidDrop>()), new int[] { 140, 220, 244, 264, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidBubble>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<Mauler>(), ModContent.ProjectileType<MaulerAcidDrop>()), new int[] { 140, 220, 244, 420 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 352, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeVortex>()), new int[] { 280, 420, 460, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<OldDukeToothBallSpike>()), new int[] { 170, 296, 324, 352, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<SandPoisonCloudOldDuke>()), new int[] { 180, 316, 348, 380, 540 } },
{ new Tuple<int, int>(ModContent.NPCType<SulphurousSharkron>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 352, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDuke>(), ModContent.ProjectileType<OldDukeVortex>()), new int[] { 280, 420, 460, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<OldDukeToothBallSpike>()), new int[] { 170, 296, 324, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<OldDukeToothBall>(), ModContent.ProjectileType<SandPoisonCloudOldDuke>()), new int[] { 180, 316, 348, 540 } },
{ new Tuple<int, int>(ModContent.NPCType<SulphurousSharkron>(), ModContent.ProjectileType<OldDukeGore>()), new int[] { 170, 296, 324, 510 } },
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 180, 316, 348, 380, 540 } },
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGFire>()), new int[] { 200, 340, 376, 412, 600 } },
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGDeath>()), new int[] { 180, 316, 348, 540 } },
{ new Tuple<int, int>(ModContent.NPCType<DevourerofGodsHead>(), ModContent.ProjectileType<DoGFire>()), new int[] { 200, 340, 376, 600 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<SkyFlareRevenge>()), new int[] { 300, 520, 548, 576, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareBomb>()), new int[] { 220, 384, 424, 464, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Flarenado>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado2>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust>()), new int[] { 220, 384, 424, 464, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust2>()), new int[] { 220, 384, 424, 464, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonFireball>()), new int[] { 220, 384, 424, 464, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonBulletHellVortex>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<SkyFlareRevenge>()), new int[] { 300, 520, 548, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareBomb>()), new int[] { 220, 384, 424, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Flarenado>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<Infernado2>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust>()), new int[] { 220, 384, 424, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<FlareDust2>()), new int[] { 220, 384, 424, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonFireball>()), new int[] { 220, 384, 424, 660 } },
{ new Tuple<int, int>(ModContent.NPCType<Yharon>(), ModContent.ProjectileType<YharonBulletHellVortex>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneGigablast>()), new int[] { 300, 508, 528, 548, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneMonster>()), new int[] { 350, 592, 624, 656, 1050 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneWave>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SepulcherBodyEnergyBall>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SoulSeekerSupreme>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<SupremeCataclysmFist>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<SupremeCatastropheSlash>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 488, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast2>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneFireblast>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<SCalBrimstoneGigablast>()), new int[] { 300, 508, 528, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneMonster>()), new int[] { 350, 592, 624, 1050 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneWave>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCalamitas>(), ModContent.ProjectileType<BrimstoneHellblast>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SepulcherBodyEnergyBall>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SoulSeekerSupreme>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<SupremeCataclysmFist>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCataclysm>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<SupremeCatastropheSlash>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<SupremeCatastrophe>(), ModContent.ProjectileType<BrimstoneBarrage>()), new int[] { 250, 440, 464, 750 } },
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisSpinLaserbeam>()), new int[] { 300, 508, 528, 548, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisLaser>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloFireball>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloRocket>()), new int[] { 280, 468, 484, 500, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisSpinLaserbeam>()), new int[] { 300, 508, 528, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<Artemis>(), ModContent.ProjectileType<ArtemisLaser>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloFireball>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<Apollo>(), ModContent.ProjectileType<ApolloRocket>()), new int[] { 280, 468, 484, 840 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosBeamStart>()), new int[] { 350, 592, 624, 656, 1050 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody1>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody2>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosTail>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosBeamStart>()), new int[] { 350, 592, 624, 1050 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosHead>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody1>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosBody2>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<ThanatosTail>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresBody>(), ModContent.ProjectileType<AresDeathBeamStart>()), new int[] { 300, 508, 528, 548, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<AresLaserBeamStart>()), new int[] { 300, 508, 528, 548, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresPlasmaFlamethrower>(), ModContent.ProjectileType<AresPlasmaFireball>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 240, 408, 432, 456, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 400, 608, 640, 672, 1200 } },
{ new Tuple<int, int>(ModContent.NPCType<AresBody>(), ModContent.ProjectileType<AresDeathBeamStart>()), new int[] { 300, 508, 528, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<AresLaserBeamStart>()), new int[] { 300, 508, 528, 900 } },
{ new Tuple<int, int>(ModContent.NPCType<AresLaserCannon>(), ModContent.ProjectileType<ThanatosLaser>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresPlasmaFlamethrower>(), ModContent.ProjectileType<AresPlasmaFireball>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 240, 408, 432, 720 } },
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 400, 608, 640, 1200 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 664, 1200 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 824, 1500 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 664, 1200 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 664, 1200 } }
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 1200 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 1500 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 1200 } },
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 1200 } }
};
}
+1 -1
View File
@@ -164,7 +164,7 @@ namespace CalamityMod.Events
ModContent.NPCType<DesertNuisanceBody>(), ModContent.NPCType<DesertNuisanceTail>(), ModContent.NPCType<DesertNuisanceHeadYoung>(),
ModContent.NPCType<DesertNuisanceBodyYoung>(), ModContent.NPCType<DesertNuisanceTailYoung>() }),
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.ServantofCthulhu, ModContent.NPCType<BloodlettingServant>() }),
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.ServantofCthulhu }),
new Boss(ModContent.NPCType<Crabulon>(), TimeChangeContext.Day, type =>
{
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

+8 -77
View File
@@ -79,17 +79,6 @@ namespace CalamityMod.ILEditing
}
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, 0.5f); // Decrease to 0.5f.
// CIT 22SEP2024: Removed the edit intended to decrease Frog Leg's jump speed boost,
// as it was not doing anything due to vanilla changing how Frog Leg's jump speed boost is applied.
// Remove the jump height addition from the Werewolf buff (Moon Charm).
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(2)))
{
LogFailure("Jump Height Boost Fixes", "Could not locate Moon Charm jump height boost value.");
return;
}
cursor.Next.Operand = 0;
}
private const float VanillaBaseJumpSpeed = 5.01f;
@@ -115,16 +104,12 @@ namespace CalamityMod.ILEditing
private static void RunSpeedAdjustments(ILContext il)
{
var cursor = new ILCursor(il);
float asphaltTopSpeedMultiplier = 1.75f; // +75%. Vanilla is +250%
float asphaltTopSpeedMultiplier = 2.25f; // +125%. Vanilla is +250%
float asphaltSlowdown = 1f; // Vanilla is 2f. This should actually make asphalt faster.
// Dunerider Boots multiply all run stats by 1.75f in vanilla
float duneRiderBootsMultiplier = 1.25f; // Change to 1.25f
// Multiplied by 0.6 on frozen slime, for +26% acceleration
// Multiplied by 0.7 on ice, for +47% acceleration
float iceSkateAcceleration = 2.1f;
float iceSkateTopSpeed = 1f; // no boost at all
//
// ASPHALT
@@ -153,22 +138,6 @@ namespace CalamityMod.ILEditing
cursor.Emit(OpCodes.Ldc_R4, asphaltSlowdown);
}
//
// DUNERIDER BOOTS + SAND BLOCKS
//
{
// Find the multiplier for Dunerider Boots on Sand Blocks.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.75f)))
{
LogFailure("Run Speed Adjustments", "Could not locate the Dunerdier Boots multiplier.");
return;
}
// Massively reduce the increased speed of Dunerider Boots while on Sand Blocks.
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, duneRiderBootsMultiplier);
}
//
// ICE SKATES + FROZEN SLIME BLOCKS
//
@@ -183,17 +152,6 @@ namespace CalamityMod.ILEditing
// Massively reduce the acceleration bonus of Ice Skates on Frozen Slime Blocks.
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, iceSkateAcceleration);
// Find the top speed multiplier of Ice Skates on Frozen Slime Blocks.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.25f)))
{
LogFailure("Run Speed Adjustments", "Could not locate Ice Skates + Frozen Slime Block top speed multiplier.");
return;
}
// Make Ice Skates give no top speed boost whatsoever on Frozen Slime Blocks.
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, iceSkateTopSpeed);
}
//
@@ -210,17 +168,6 @@ namespace CalamityMod.ILEditing
// Massively reduce the acceleration bonus of Ice Skates on Ice Blocks.
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, iceSkateAcceleration);
// Find the top speed multiplier of Ice Skates on Ice Blocks.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(1.25f)))
{
LogFailure("Run Speed Adjustments", "Could not locate Ice Skates + Ice Block top speed multiplier.");
return;
}
// Make Ice Skates give no top speed boost whatsoever on Ice Blocks.
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, iceSkateTopSpeed);
}
}
@@ -502,30 +449,13 @@ namespace CalamityMod.ILEditing
#region UpdateBuffs Balancing Changes
private static void UpdateBuffsBalancingChanges(ILContext il)
{
// This IL edit accomplishes four things:
// 1. Nerf Sharpening Station's armor penetration boost from 12 to 5.
// 2. Nerf Beetle Scale Mail's set bonus Beetle Might melee speed from 10% per stack to 5%.
// 3. Nerf Nebula armor's Damage and Life Boosters (Mana Boosters are not handled in this method).
// 4. Remove the ability for Feral Bite to randomly inflict debuffs.
// This IL edit accomplishes three things:
// 1. Nerf Beetle Scale Mail's set bonus Beetle Might melee speed from 10% per stack to 5%.
// 2. Nerf Nebula armor's Damage and Life Boosters (Mana Boosters are not handled in this method).
// 3. Remove the vanilla implementation of Feral Bite inflicting random debuffs.
var cursor = new ILCursor(il);
// First, find the code which applies Sharpened's armor penetration buff.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdcI4(BuffID.Sharpened)))
{
LogFailure("Sharpening Station Nerf", "Could not locate the Sharpened buff ID.");
return;
}
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(12f))) // The amount of armor penetration to grant.
{
LogFailure("Sharpening Station Nerf", "Could not locate the amount of armor penetration granted.");
return;
}
// Replace the value entirely.
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, BalancingConstants.SharpeningStationArmorPenetration);
// Next, move to Beetle Scale Mail's melee speed boost from Beetle Might buff.
// First, move to Beetle Scale Mail's melee speed boost from Beetle Might buff.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdcI4(BuffID.BeetleMight1)))
{
LogFailure("Beetle Scale Mail Nerf", "Could not locate the Beetle Might buff ID.");
@@ -581,7 +511,7 @@ namespace CalamityMod.ILEditing
// There are multiple branches pointing to this instruction, so it cannot be removed. Instead, swap its value directly.
cursor.Next.Operand = BalancingConstants.NebulaDamagePerBooster;
// Finally, removing Feral Bite's debuffs.
// Finally, removing Feral Bite's vanilla debuff infliction.
// Find the random debuff duration multiplier for the debuffs inflicted by Feral Bite.
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.01f))) // The 0.01f random debuff duration multiplier.
{
@@ -590,6 +520,7 @@ namespace CalamityMod.ILEditing
}
// Remove and change to 0f, this makes the random debuffs from Feral Bite have 0 duration.
// Calamity reimplements a different version of this in CalamityGlobalBuff.Update
cursor.Remove();
cursor.Emit(OpCodes.Ldc_R4, 0f);
}
+2 -4
View File
@@ -66,11 +66,11 @@ namespace CalamityMod.ILEditing
IL_Main.UpdateTime += PermitNighttimeTownNPCSpawning;
On_Main.UpdateTime_SpawnTownNPCs += AlterTownNPCSpawnRate;
On_NPC.ShouldEmpressBeEnraged += AllowEmpressToEnrageInBossRush;
On_NPC.DoDeathEvents += PreventVanillaBossDeathsInBossRush;
IL_NPC.DoDeathEvents += PreventVanillaBossDeathsInBossRush;
IL_Player.CollectTaxes += MakeTaxCollectorUseful;
// Mechanics / features
On_NPC.ApplyTileCollision += AllowTriggeredFallthrough;
On_NPC.ApplyTileCollision += AllowFusionFeederToDigThroughSand;
IL_Player.ApplyEquipFunctional += ScopesRequireVisibilityToZoom;
IL_Player.Hurt_PlayerDeathReason_int_int_refHurtInfo_bool_bool_int_bool_float_float_float += DodgeMechanicAdjustments;
On_Player.PutHallowedArmorSetBonusOnCooldown += AddHolyProtectionCooldown;
@@ -84,8 +84,6 @@ namespace CalamityMod.ILEditing
On_Item.AffixName += IncorporateEnchantmentInAffix;
On_Projectile.NewProjectile_IEntitySource_float_float_float_float_int_int_float_int_float_float_float += IncorporateExtraProjectileVariables;
On_Player.ApplyDamageToNPC += ApplyOldFashionedDamageToMiscHits;
// TODO -- This should be unnecessary. There is now a TML hook for platform collision for ModNPCs.
On_NPC.Collision_DecideFallThroughPlatforms += EnableCalamityBossPlatformCollision;
IL_Wiring.HitWireSingle += AddTwinklersToStatue;
On_Player.UpdateItemDye += FindCalamityItemDyeShader;
On_AWorldListItem.GetDifficulty += GetDifficultyOverride;
+48 -102
View File
@@ -344,33 +344,51 @@ namespace CalamityMod.ILEditing
#endregion
#region Prevent Vanilla Bosses From Being Marked as Defeated in Boss Rush
private static void PreventVanillaBossDeathsInBossRush(On_NPC.orig_DoDeathEvents orig, NPC self, Player closestPlayer)
private static void PreventVanillaBossDeathsInBossRush(ILContext il)
{
// Aside from setting the boss' downed bool, DoDeathEvents also handles the following tasks:
// Advancing Slime Rain, spawning Dungeon Spirits, advancing invasion kills, spawning Wall of Flesh's loot box, dropping boss potions and hearts, and sending the boss defeated message.
// The first three do not matter at all in Boss Rush. Wall of Flesh's loot box not spawning is also a positive, so that it doesn't clutter the Underworld.
// Dropping potions is worthless at this point, and Boss Rush is already a horribly balanced hellscape as is, so I'm not worried about hearts.
// As for the last one, well, if anyone actually notices that and cares about it, then I suppose we could make a more sophisticated IL edit.
if (BossRushEvent.BossRushActive)
return;
// GOAL: Prevent vanilla boss defeated flags from getting set during Boss Rush.
// All of this is handled within a switch case directly in the DoDeathEvents function.
// Thus, the objective here is to add a branch past the entire switch case if it is Boss Rush.
var cursor = new ILCursor(il);
orig(self, closestPlayer);
// Move to the point right before the switch case.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchCall<NPC>("SpawnOnPlayer")))
{
LogFailure("Prevent Vanilla Defeated Flags in Boss Rush", "Could not move to before the switch case.");
return;
}
// Define a branch label, load the Boss Rush check, and create the branch if it is true.
var label = il.DefineLabel();
cursor.Emit(OpCodes.Ldsfld, typeof(BossRushEvent).GetField("BossRushActive"));
cursor.Emit(OpCodes.Brtrue, label);
// Move to after the switch case to place the label.
for (int i = 0; i < 2; i++)
{
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchCall<NPC>("SpawnBoss")))
{
LogFailure("Prevent Vanilla Defeated Flags in Boss Rush", "Could not move to after the switch case.");
return;
}
}
if (!cursor.TryGotoNext(MoveType.AfterLabel, i => i.MatchLdarg0()))
{
LogFailure("Prevent Vanilla Defeated Flags in Boss Rush", "Could not move to after the switch case.");
return;
}
cursor.MarkLabel(label);
}
#endregion
#region Enabling of Triggered NPC Platform Fallthrough
// Why this isn't a mechanism provided by TML itself or vanilla itself is beyond me.
private static void AllowTriggeredFallthrough(On_NPC.orig_ApplyTileCollision orig, NPC self, bool fall, Vector2 cPosition, int cWidth, int cHeight)
#region Enabling of Fusion Feeder Sand Digging
private static void AllowFusionFeederToDigThroughSand(On_NPC.orig_ApplyTileCollision orig, NPC self, bool fall, Vector2 cPosition, int cWidth, int cHeight)
{
if (self.active && self.type == ModContent.NPCType<FusionFeeder>())
{
self.velocity = Collision.AdvancedTileCollision(TileID.Sets.ForAdvancedCollision.ForSandshark, cPosition, self.velocity, cWidth, cHeight, fall, fall, 1);
return;
}
var isNpcValid = self.TryGetGlobalNPC(out CalamityGlobalNPC npc); //why the fuck this errors is anybody's guess, it absolutely shouldn't and yet it does
if (isNpcValid && self.active && npc.ShouldFallThroughPlatforms)
fall = true;
orig(self, fall, cPosition, cWidth, cHeight);
}
#endregion
@@ -516,18 +534,6 @@ namespace CalamityMod.ILEditing
}
#endregion
#region Platform Collision Checks for Grounded Bosses
private static bool EnableCalamityBossPlatformCollision(On_NPC.orig_Collision_DecideFallThroughPlatforms orig, NPC self)
{
if ((self.type == ModContent.NPCType<AstrumAureus>() || self.type == ModContent.NPCType<Crabulon>() || self.type == ModContent.NPCType<RavagerBody>() ||
self.type == ModContent.NPCType<RockPillar>() || self.type == ModContent.NPCType<FlamePillar>()) &&
self.target >= 0 && Main.player[self.target].position.Y > self.position.Y + self.height)
return true;
return orig(self);
}
#endregion
#region Incorporate Enchantments in Item Names
private static string IncorporateEnchantmentInAffix(On_Item.orig_AffixName orig, Item self)
{
@@ -1483,88 +1489,28 @@ namespace CalamityMod.ILEditing
#endregion
#region Statue Additions
/// <summary>
/// Change the following code sequence in Wiring.HitWireSingle
/// num8 = (int) Utils.SelectRandom<short>(Main.rand, new short[2]
/// {
/// 355,
/// 358
/// });
///
/// to
///
/// var arr = new short[2]
/// {
/// 355,
/// 358
/// });
/// arr = arr.ToList().Add(id).ToArray();
/// num8 = Utils.SelectRandom(Main.rand, arr);
///
/// </summary>
/// <param name="il"></param>
private static void AddTwinklersToStatue(ILContext il)
{
// obtain a cursor positioned before the first instruction of the method
// the cursor is used for navigating and modifying the il
var c = new ILCursor(il);
// Allow Twinklers to be spawned by the Firefly Statue.
var cursor = new ILCursor(il);
// the exact location for this hook is very complex to search for due to the hook instructions not being unique, and buried deep in control flow
// switch statements are sometimes compiled to if-else chains, and debug builds litter the code with no-ops and redundant locals
// in general you want to search using structure and function rather than numerical constants which may change across different versions or compile settings
// using local variable indices is almost always a bad idea
// we can search for
// switch (*)
// case 54:
// Utils.SelectRandom *
// in general you'd want to look for a specific switch variable, or perhaps the containing switch (type) { case 105:
// but the generated IL is really variable and hard to match in this case
// we'll just use the fact that there are no other switch statements with case 54, followed by a SelectRandom
ILLabel[] targets = null;
while (c.TryGotoNext(i => i.MatchSwitch(out targets)))
// Move to the method which randomly selects an NPC for the Statue to spawn. This is the second call of the method in this function.
for (int i = 0; i < 2; i++)
{
// some optimising compilers generate a sub so that all the switch cases start at 0
// ldc.i4.s 51
// sub
// switch
int offset = 0;
if (c.Prev.MatchSub() && c.Prev.Previous.MatchLdcI4(out offset))
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchCall(typeof(Utils), nameof(Utils.SelectRandom))))
{
;
LogFailure("Add Twinkler to Firefly Statue", "Could not move to the SelectRandom method.");
return;
}
// get the label for case 54: if it exists
int case54Index = 54 - offset;
if (case54Index < 0 || case54Index >= targets.Length || !(targets[case54Index] is ILLabel target))
{
continue;
}
// move the cursor to case 54:
c.GotoLabel(target);
// there's lots of extra checks we could add here to make sure we're at the right spot, such as not encountering any branching instructions
c.GotoNext(i => i.MatchCall(typeof(Utils), nameof(Utils.SelectRandom)));
// goto next positions us before the instruction we searched for, so we can insert our array modifying code right here
c.EmitDelegate<Func<short[], short[]>>(arr =>
{
// resize the array and add our custom firefly
Array.Resize(ref arr, arr.Length + 1);
arr[arr.Length - 1] = (short)ModContent.NPCType<Twinkler>();
return arr;
});
// hook applied successfully
return;
}
// couldn't find the right place to insert
throw new Exception("Hook location not found, switch(*) { case 54: ...");
// Emit a delegate which resizes the array and adds Twinkler to it.
cursor.EmitDelegate<Func<short[], short[]>>(arr =>
{
Array.Resize(ref arr, arr.Length + 1);
arr[arr.Length - 1] = (short)ModContent.NPCType<Twinkler>();
return arr;
});
}
#endregion
+3
View File
@@ -21,6 +21,9 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.inkBomb = true;
modPlayer.rogueStealthMax += 0.1f;
player.Calamity().stealthGenStandstill += 0.07f;
player.Calamity().stealthGenMoving += 0.07f;
}
}
}
+1
View File
@@ -10,6 +10,7 @@ namespace CalamityMod.Items.Accessories
{
public class Nanotech : ModItem, ILocalizedModType
{
//The stealth damage boost is handled in CalamityPlayer for some reason, maybe someone didn't want em to stack?
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
@@ -9,7 +9,8 @@ using System;
namespace CalamityMod.Items.Accessories
{
public class Regenator : ModItem, ILocalizedModType
[LegacyName("Regenator")]
public class Regenerator : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
@@ -24,14 +25,14 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.regenator = true;
modPlayer.regenerator = true;
player.longInvince = true; // Gives better iframes because god help you if you end up getting hit twice
}
public override void ModifyTooltips(List<TooltipLine> list)
{
if (Main.LocalPlayer != null)
list.FindAndReplace("[DAMAGE]", (Main.LocalPlayer.Calamity().regenatorDamage).ToPercent());
list.FindAndReplace("[DAMAGE]", (Main.LocalPlayer.Calamity().regeneratorDamage).ToPercent());
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

-2
View File
@@ -8,7 +8,6 @@ namespace CalamityMod.Items.Accessories
{
public new string LocalizationCategory => "Items.Accessories";
internal const int ArmorCrunchDebuffTime = 150;
internal const float StealthStrikeDamageMultiplier = 0.08f;
public override void SetDefaults()
{
Item.width = 14;
@@ -21,7 +20,6 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().rottenDogTooth = true;
player.Calamity().bonusStealthDamage += StealthStrikeDamageMultiplier;
}
}
}
-1
View File
@@ -223,7 +223,6 @@ namespace CalamityMod.Items.Accessories
// Detailed Abyss stats only render if the player is in the Abyss.
string stats4 = "\n" + (!modPlayer.ZoneAbyss ? this.GetLocalizedValue("AbyssStatsHidden") : this.GetLocalization("AbyssStats").Format(
player.GetCurrentAbyssLightLevel(),
TwoPlaces(modPlayer.abyssBreathLossStat),
TwoPlaces(modPlayer.abyssBreathLossRateStat),
modPlayer.abyssLifeLostAtZeroBreathStat,
modPlayer.abyssDefenseLossStat));
-2
View File
@@ -11,7 +11,6 @@ namespace CalamityMod.Items.Accessories
{
internal const int ArmorCrunchDebuffTime = 150;
internal const int HeavyBleedingDebuffTime = 300;
internal const float StealthStrikeDamageMultiplier = 0.08f;
public const float RaiderBonus = 15f;
public bool ShowExtensionIndicator => false;
@@ -36,7 +35,6 @@ namespace CalamityMod.Items.Accessories
modPlayer.vampiricTalisman = true;
modPlayer.raiderTalisman = true;
modPlayer.rottenDogTooth = true;
player.Calamity().bonusStealthDamage += StealthStrikeDamageMultiplier;
//get fixed boi funny
if (Main.zenithWorld)
+1 -1
View File
@@ -82,7 +82,7 @@ namespace CalamityMod.Items.Accessories
float generousHitboxWidth = Math.Max(nPC.Hitbox.Width / 2f, nPC.Hitbox.Height / 2f) + 100; // Adds some room so max bonus isnt when you're ON the hitbox
float intensity = Utils.Remap(Utils.Distance(player.Center, nPC.Center), MaxDistance + generousHitboxWidth, generousHitboxWidth, 1, 3, true); // We have to have this seperate from bonus, otherwise all effected enemies take damage based on the closest enemy
if (Utils.Distance(nPC.Center, player.Center) < MaxDistance + generousHitboxWidth && (nPC.IsAnEnemy(true, true, false) || nPC.type == ModContent.NPCType<SuperDummyNPC>()) && nPC.CanBeChasedBy())
if (Utils.Distance(nPC.Center, player.Center) < MaxDistance + generousHitboxWidth && (nPC.IsAnEnemy(true, true, false) || nPC.type == ModContent.NPCType<SuperDummyNPC>()) && !nPC.dontTakeDamage)
{
float minDamageMult = 0.35f;
int maxTargets = 25;
+1 -2
View File
@@ -2,7 +2,6 @@
using System.Linq;
using System.Text;
using CalamityMod.Balancing;
using Microsoft.Xna.Framework.Input;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -80,7 +79,7 @@ namespace CalamityMod.Items.Accessories.Wings
sb.Append('\n');
sb.Append(CalamityUtils.GetText($"Common.WingStats").Format(time.FramesToSeconds(), run.ToMph(), (MaxAscentSpeed * baseJumpSpeed).ToMph()));
sb.Append('\n');
if (Main.keyState.IsKeyDown(Keys.LeftShift))
if (Main.keyState.PressingShift())
{
sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), BaseAscent.ToMphps(),
(BaseAscent + BonusAscentWhileRising).ToMphps(), (RisingSpeedThreshold * baseJumpSpeed).ToMph(),
@@ -27,12 +27,11 @@ namespace CalamityMod.Items.Armor.DesertProwler
public static readonly SoundStyle SmokeBombEndSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerSmokeBombEnd");
public static readonly SoundStyle CDResetSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerCDReset");
public static int FlatDamageBonus = 1;
public static int SmokeCooldown = 25 * 60;
public static int SmokeDuration = 5 * 60;
public static int LightsOutReset = (int)(1.5f * 60);
public static int FreeCrit = 200;
public static int BonusDamageCap = 100;
public static int BonusDamageCap = 200;
public static bool ShroudedInSmoke(Player player, out CooldownInstance cd)
{
@@ -78,8 +77,10 @@ namespace CalamityMod.Items.Armor.DesertProwler
public override void UpdateArmorSet(Player player)
{
player.setBonus = this.GetLocalization("SetBonus").Format(FlatDamageBonus); //More gets edited in elsewhere
player.GetDamage<RangedDamageClass>().Flat += FlatDamageBonus;
player.setBonus = this.GetLocalization("SetBonus").Format(); //More gets edited in elsewhere
player.Calamity().wearingRogueArmor = true;
player.Calamity().rogueStealthMax += 0.5f;
player.GetDamage<ThrowingDamageClass>() += 0.05f;
DesertProwlerPlayer armorPlayer = player.GetModPlayer<DesertProwlerPlayer>();
armorPlayer.desertProwlerSet = true;
@@ -183,8 +184,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
public override void UpdateEquip(Player player)
{
player.GetCritChance<RangedDamageClass>() += 4;
player.ammoCost80 = true;
player.GetCritChance<ThrowingDamageClass>() += 4;
}
public override void AddRecipes()
@@ -227,7 +227,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
public override void UpdateEquip(Player player)
{
player.GetCritChance<RangedDamageClass>() += 5;
player.GetCritChance<ThrowingDamageClass>() += 5;
}
public override void AddRecipes()
@@ -381,7 +381,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
{
if (projectile.damage > 0 && !Main.gameMenu)
{
if (projectile.owner >= 0 && DesertProwlerHat.ShroudedInSmoke(Main.player[projectile.owner], out var cd) && projectile.DamageType.CountsAsClass(DamageClass.Ranged))
if (projectile.owner >= 0 && DesertProwlerHat.ShroudedInSmoke(Main.player[projectile.owner], out var cd) && projectile.DamageType.CountsAsClass(RogueDamageClass.Instance))
{
int critPool = DesertProwlerHat.FreeCrit;
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
public override void UpdateEquip(Player player)
{
player.GetDamage<SummonDamageClass>() += 0.08f;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.moveSpeed += 0.4f;
}
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
player.spikedBoots = 2;
player.maxMinions += 2;
player.GetDamage<SummonDamageClass>() += 0.1f;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (modPlayer.countsAsAnyWet)
{
player.GetDamage<SummonDamageClass>() += 0.2f;
player.statDefense += 10;
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Armor.FathomSwarmer
player.breath = player.breathMax + 3;
}
modPlayer.fathomSwarmerVisage = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.3f, 0.9f, 1.35f);
}
@@ -67,7 +67,6 @@ namespace CalamityMod.Items.Armor.Fearmonger
ModContent.BuffType<GodSlayerInferno>(),
BuffID.Chilled,
BuffID.Frozen,
ModContent.BuffType<GlacialState>(),
};
for (var i = 0; i < immuneDebuffs.Length; ++i)
player.buffImmune[immuneDebuffs[i]] = true;
+1 -2
View File
@@ -8,7 +8,6 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using static Microsoft.Xna.Framework.Input.Keys;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Items.Armor.GemTech
@@ -94,7 +93,7 @@ namespace CalamityMod.Items.Armor.GemTech
tooltips[setBonusIndex].Text = CalamityUtils.GetTextValueFromModItem<GemTechHeadgear>("AbilityBrief");
tooltips[setBonusIndex].OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.3f);
if (!Main.keyState.IsKeyDown(LeftShift))
if (!Main.keyState.PressingShift())
{
TooltipLine briefDescription = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem<GemTechHeadgear>("AbilityDescription"));
briefDescription.OverrideColor = Color.Lerp(Color.White, Main.DiscoColor, 0.5f);
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Reaver
modPlayer.wearingRogueArmor = true;
player.findTreasure = true;
player.aggro -= 200;
if (player.IsUnderwater())
if (player.Calamity().countsAsAnyWet)
player.gills = true;
if (player.whoAmI == Main.myPlayer)
+1 -2
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Armor.Reaver
player.thorns += 0.33f;
player.moveSpeed -= 0.3f;
player.statDefense += 10;
player.lifeRegen += 3;
player.lifeRegen += 10;
player.aggro += 600;
modPlayer.reaverDefense = true;
modPlayer.wearingRogueArmor = true;
@@ -54,7 +54,6 @@ namespace CalamityMod.Items.Armor.Reaver
{
player.GetDamage<GenericDamageClass>() -= 0.3f;
player.endurance += 0.15f;
player.Calamity().reaverRegen = true;
player.statLifeMax2 += 50;
}
@@ -35,18 +35,19 @@ namespace CalamityMod.Items.Armor.SnowRuffian
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 4; //9
Item.defense = 5; //12
}
public override void UpdateEquip(Player player)
{
player.GetCritChance<ThrowingDamageClass>() += 3;
player.GetCritChance<RangedDamageClass>() += 4;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnySnowBlock", 60).
AddIngredient(ItemID.BorealWood, 20).
AddIngredient(ItemID.Silk, 6).
AddIngredient(ItemID.FlinxFur, 2).
AddTile(TileID.Anvils).
Register();
@@ -14,18 +14,19 @@ namespace CalamityMod.Items.Armor.SnowRuffian
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 3; //9
Item.defense = 4; //12
}
public override void UpdateEquip(Player player)
{
player.moveSpeed += 0.05f;
player.moveSpeed += 0.1f;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnySnowBlock", 40).
AddIngredient(ItemID.BorealWood, 15).
AddIngredient(ItemID.Silk, 5).
AddIngredient(ItemID.FlinxFur).
AddTile(TileID.Anvils).
Register();
+6 -6
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
Item.height = 18;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.defense = 2; //9
Item.defense = 3; //12
}
public override bool IsArmorSet(Item head, Item body, Item legs)
@@ -38,10 +38,9 @@ namespace CalamityMod.Items.Armor.SnowRuffian
{
var modPlayer = player.Calamity();
modPlayer.snowRuffianSet = true;
modPlayer.rogueStealthMax += 0.5f;
player.GetCritChance<RangedDamageClass>() += 4;
player.GetDamage<RangedDamageClass>() += 0.04f;
player.setBonus = this.GetLocalizedValue("SetBonus");
player.GetDamage<ThrowingDamageClass>() += 0.05f;
player.Calamity().wearingRogueArmor = true;
if (player.controlJump)
{
@@ -62,13 +61,14 @@ namespace CalamityMod.Items.Armor.SnowRuffian
public override void UpdateEquip(Player player)
{
player.GetDamage<ThrowingDamageClass>() += 0.02f;
player.GetDamage<RangedDamageClass>() += 0.02f;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnySnowBlock", 20).
AddIngredient(ItemID.BorealWood, 10).
AddIngredient(ItemID.Silk, 4).
AddIngredient(ItemID.FlinxFur).
AddTile(TileID.Anvils).
SortBeforeFirstRecipesOf(ModContent.ItemType<SnowRuffianChestplate>()).
+1 -1
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
{
player.GetDamage<ThrowingDamageClass>() += 0.04f;
player.GetCritChance<ThrowingDamageClass>() += 2;
if (player.IsUnderwater())
if (player.Calamity().countsAsAnyWet)
player.gills = true;
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
public override void UpdateEquip(Player player)
{
player.moveSpeed += Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 0.35f : 0.1f;
player.moveSpeed += player.Calamity().countsAsAnyWet ? 0.35f : 0.1f;
}
public override void AddRecipes()
+1 -1
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor.Victide
{
player.endurance += 0.05f;
player.GetCritChance<GenericDamageClass>() += 5;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.statDefense += 5;
player.endurance += 0.1f;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
public override void UpdateEquip(Player player)
{
player.moveSpeed += Collision.DrownCollision(player.position, player.width, player.height, player.gravDir) ? 0.3f : 0.08f;
player.moveSpeed += player.Calamity().countsAsAnyWet ? 0.3f : 0.08f;
}
public override void AddRecipes()
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
var modPlayer = player.Calamity();
modPlayer.victideSet = true;
player.ignoreWater = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.GetDamage<MagicDamageClass>() += 0.1f;
player.lifeRegen += 3;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
var modPlayer = player.Calamity();
modPlayer.victideSet = true;
player.ignoreWater = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.GetDamage<MeleeDamageClass>() += 0.1f;
player.lifeRegen += 3;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor.Victide
var modPlayer = player.Calamity();
modPlayer.victideSet = true;
player.ignoreWater = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.GetDamage<RangedDamageClass>() += 0.1f;
player.lifeRegen += 3;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Armor.Victide
modPlayer.rogueStealthMax += 0.6f;
modPlayer.wearingRogueArmor = true;
player.ignoreWater = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.GetDamage<ThrowingDamageClass>() += 0.1f;
player.lifeRegen += 3;
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.Victide
}
}
player.ignoreWater = true;
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
if (player.Calamity().countsAsAnyWet)
{
player.GetDamage<SummonDamageClass>() += 0.1f;
player.lifeRegen += 3;
+2 -3
View File
@@ -11,7 +11,6 @@ using Terraria.DataStructures;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
using static Microsoft.Xna.Framework.Input.Keys;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Items.Armor.Wulfrum
@@ -103,7 +102,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
if (DummyCannon.IsAir && !Main.gameMenu)
DummyCannon.SetDefaults(ItemType<WulfrumFusionCannon>());
if (IsPartOfSet(Main.HoverItem) && HasArmorSet(player) && Main.keyState.IsKeyDown(LeftShift))
if (IsPartOfSet(Main.HoverItem) && HasArmorSet(player) && Main.keyState.PressingShift())
{
Main.HoverItem = DummyCannon.Clone();
Main.hoverItemName = DummyCannon.Name;
@@ -240,7 +239,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
setBonus2.OverrideColor = new Color(110, 192, 93);
tooltips.Insert(setBonusIndex + 2, setBonus2);
if (!Main.keyState.IsKeyDown(LeftShift))
if (!Main.keyState.PressingShift())
{
TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ArmorItemDisplay", CalamityUtils.GetTextValueFromModItem<WulfrumHat>("ShiftToExpand"));
itemDisplay.OverrideColor = new Color(190, 190, 190);
+2 -3
View File
@@ -21,7 +21,6 @@ using CalamityMod.Systems.Collections;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -189,7 +188,7 @@ namespace CalamityMod.Items
// Original code lifted from Iban's extended armor tooltips.
if (item.ModItem is IHoldShiftTooltipItem holdShiftItem)
{
bool holdingShift = Main.keyState.IsKeyDown(Keys.LeftShift);
bool holdingShift = Main.keyState.PressingShift();
// If holding SHIFT, actually display the extended tooltip.
if (holdingShift && firstTooltipIndex != -1)
@@ -1298,7 +1297,7 @@ namespace CalamityMod.Items
sb.Append('\n');
sb.Append(CalamityUtils.GetText($"Common.WingStats").Format(time.FramesToSeconds(), run.ToMph(), (tMax * baseJumpSpeed).ToMph()));
sb.Append('\n');
if (Main.keyState.IsKeyDown(Keys.LeftShift))
if (Main.keyState.PressingShift())
{
sb.Append(CalamityUtils.GetText($"Common.WingStatsAcceleration").Format(rAcc.ToMphps(), asc.ToMphps(), (asc + rise).ToMphps(), (rMax * baseJumpSpeed).ToMph(), (asc + fall).ToMphps()));
if (hover)
+99 -104
View File
@@ -26,12 +26,14 @@ namespace CalamityMod.Items
internal static void LoadTweaks()
{
// Various shorthands for items which receive very simple changes, such as setting one flag.
// Various shorthands for items which receive very simple changes, or are repeated multiple times.
IItemTweak[] trueMelee = Do(TrueMelee);
IItemTweak[] trueMeleeNoSpeed = Do(TrueMeleeNoSpeed);
IItemTweak[] pointBlank = Do(PointBlank);
IItemTweak[] autoReuse = Do(AutoReuse);
IItemTweak[] nonConsumableBossSummon = Do(MaxStack(1), NotConsumable, UseTimeExact(10));
IItemTweak[] phaseblade = Do(AutoReuse, UseTurn, DamageExact(36));
IItemTweak[] phasesaber = Do(DamageExact(132));
// 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.
@@ -59,8 +61,8 @@ namespace CalamityMod.Items
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) },
{ ItemID.BloodyMachete, Do(AutoReuse, DamageExact(24)) },
{ ItemID.Blowgun, Do(PointBlank, DamageExact(40), ShootSpeedExact(15f)) },
{ ItemID.BluePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.BluePhasesaber, Do(DamageExact(132)) },
{ ItemID.BluePhaseblade, phaseblade },
{ ItemID.BluePhasesaber, phasesaber },
{ ItemID.BoneSword, Do(AutoReuse, UseTurn, DamageExact(25)) },
{ ItemID.BookofSkulls, Do(DamageExact(27), ManaExact(13), ShootSpeedExact(5.5f)) },
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom
@@ -100,7 +102,7 @@ namespace CalamityMod.Items
{ ItemID.DD2SquireDemonSword, Do(DamageExact(110), UseExact(25)) }, // Brand of the Inferno
{ ItemID.DeathSickle, Do(UseMeleeSpeed, DamageExact(82), ShootSpeedExact(15f)) },
{ ItemID.DemonBow, Do(PointBlank, DamageExact(12), AutoReuse) },
{ ItemID.DemonScythe, Do(AutoReuse, DamageExact(33)) },
{ ItemID.DemonScythe, Do(AutoReuse, DamageExact(28)) },
{ ItemID.DyeTradersScimitar, Do(AutoReuse, UseTurn, DamageExact(24)) }, // Exotic Scimitar
{ ItemID.ElectrosphereLauncher, Do(DamageExact(44)) },
{ ItemID.ElfMelter, Do(ShootSpeedDelta(+5f)) },
@@ -113,7 +115,7 @@ namespace CalamityMod.Items
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow
{ ItemID.FalconBlade, Do(UseTurn, UseExact(13)) },
{ ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration
{ ItemID.Flamarang, Do(DamageExact(40)) },
{ ItemID.Flamarang, Do(DamageExact(37)) },
{ ItemID.Flamelash, Do(DamageExact(40)) },
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) },
{ ItemID.FlowerofFire, Do(AutoReuse, ManaExact(7), UseRatio(0.88f), DamageRatio(0.7f)) }, // Uses ratios due to remix seed
@@ -126,8 +128,8 @@ namespace CalamityMod.Items
{ ItemID.GoldShortsword, Do(AutoReuse, TrueMelee, DamageExact(17)) },
{ ItemID.GolemFist, Do(DamageExact(150)) },
{ ItemID.Gradient, Do(AutoReuse, DamageExact(39)) },
{ ItemID.GreenPhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.GreenPhasesaber, Do(DamageExact(132)) },
{ ItemID.GreenPhaseblade, phaseblade },
{ ItemID.GreenPhasesaber, phasesaber },
{ ItemID.GrenadeLauncher, Do(DamageExact(112)) },
{ ItemID.Gungnir, Do(AutoReuse, TrueMelee, DamageExact(144), ShootSpeedExact(7f)) },
{ ItemID.HallowedRepeater, Do(PointBlank, UseExact(12)) },
@@ -166,7 +168,7 @@ namespace CalamityMod.Items
{ ItemID.MiniNukeI, Do(DamageExact(90)) },
{ ItemID.MiniNukeII, Do(DamageExact(90)) },
{ ItemID.Minishark, Do(PointBlank, DamageExact(4)) },
{ ItemID.MoltenFury, Do(PointBlank, UseExact(29), AutoReuse) },
{ ItemID.MoltenFury, Do(PointBlank, UseExact(28), AutoReuse) },
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod
{ ItemID.MonkStaffT2, Do(AutoReuse, TrueMelee, DamageExact(90)) }, // Ghastly Glaive
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
@@ -181,8 +183,8 @@ namespace CalamityMod.Items
{ ItemID.NettleBurst, Do(ManaExact(10), DamageExact(70)) },
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) },
{ ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed) },
{ ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.OrangePhasesaber, Do(DamageExact(132)) },
{ ItemID.OrangePhaseblade, phaseblade },
{ ItemID.OrangePhasesaber, phasesaber },
{ ItemID.OrichalcumHalberd, Do(AutoReuse, TrueMelee, DamageExact(128), ShootSpeedExact(6f)) },
{ ItemID.OrichalcumRepeater, Do(PointBlank, DamageExact(48)) },
{ ItemID.OrichalcumSword, Do(UseTurn, DamageExact(175)) },
@@ -205,8 +207,8 @@ namespace CalamityMod.Items
{ ItemID.PrincessWeapon, Do(DamageExact(90)) }, // Resonance Scepter
{ ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageExact(200)) },
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) },
{ ItemID.PurplePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.PurplePhasesaber, Do(DamageExact(132)) },
{ ItemID.PurplePhaseblade, phaseblade },
{ ItemID.PurplePhasesaber, phasesaber },
{ ItemID.PygmyStaff, Do(AutoReuse, UseExact(20), DamageExact(70)) },
{ ItemID.QuadBarrelShotgun, Do(PointBlank, DamageExact(11)) },
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) },
@@ -215,8 +217,8 @@ namespace CalamityMod.Items
{ ItemID.RavenStaff, Do(AutoReuse, UseExact(20), DamageExact(36)) },
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) },
{ ItemID.Razorpine, Do(DamageExact(40)) },
{ ItemID.RedPhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.RedPhasesaber, Do(DamageExact(132)) },
{ ItemID.RedPhaseblade, phaseblade },
{ ItemID.RedPhasesaber, phasesaber },
{ ItemID.RedRyder, Do(PointBlank, DamageExact(24)) },
{ ItemID.RedsYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
{ ItemID.RocketLauncher, Do(DamageExact(70)) },
@@ -238,12 +240,12 @@ namespace CalamityMod.Items
{ ItemID.SniperRifle, Do(PointBlank, DamageExact(215)) },
{ ItemID.SolarEruption, Do(DamageExact(122)) },
{ ItemID.SoulDrain, Do(DamageExact(38)) }, // Life Drain
{ ItemID.SpaceGun, Do(DamageExact(25)) },
{ ItemID.SpaceGun, Do(DamageExact(23)) },
{ ItemID.Spear, Do(AutoReuse, TrueMelee, DamageExact(14)) },
{ ItemID.SpectreStaff, Do(DamageExact(78)) },
{ ItemID.SpiritFlame, Do(UseExact(20), ManaExact(11), ShootSpeedExact(2f)) },
{ ItemID.StaffofEarth, Do(DamageExact(150)) },
{ ItemID.StarCannon, Do(DamageExact(25)) },
{ ItemID.StarCannon, Do(DamageExact(25), UseExact(15)) },
{ ItemID.StardustDragonStaff, Do(AutoReuse, DamageExact(20), UseExact(19)) },
{ ItemID.StormTigerStaff, Do(AutoReuse, DamageExact(49), UseExact(20)) }, // Desert Tiger Staff
{ ItemID.StylistKilLaKillScissorsIWish, Do(AutoReuse, UseTurn, DamageExact(21)) }, // Stylish Scissors
@@ -284,12 +286,12 @@ namespace CalamityMod.Items
{ ItemID.VenusMagnum, Do(PointBlank, DamageExact(65)) },
{ ItemID.WaspGun, Do(UseExact(11), DamageExact(58)) },
{ ItemID.WaterBolt, Do(DamageExact(23)) },
{ ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.WhitePhasesaber, Do(DamageExact(132)) },
{ ItemID.WhitePhaseblade, phaseblade },
{ ItemID.WhitePhasesaber, phasesaber },
{ ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) },
{ ItemID.Yelets, Do(AutoReuse, DamageExact(53)) },
{ ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) },
{ ItemID.YellowPhasesaber, Do(DamageExact(132)) },
{ ItemID.YellowPhaseblade, phaseblade },
{ ItemID.YellowPhasesaber, phasesaber },
{ ItemID.Zenith, Do(DamageExact(210)) },
{ ItemID.ZombieArm, Do(AutoReuse, UseTurn, KnockbackExact(12f)) },
#endregion
@@ -333,106 +335,99 @@ namespace CalamityMod.Items
#region CATEGORY 3: Tool Balancing
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.AdamantitePickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
{ 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), TileBoostExact(+0)) },
{ ItemID.BonePickaxe, Do(PickPower(55), UseTimeExact(6)) },
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, AxePower(150), UseTimeExact(3), TileBoostExact(+0)) },
{ ItemID.BloodLustCluster, Do(AxePower(100), UseTimeExact(13)) },
{ ItemID.BonePickaxe, Do(UseTimeExact(6)) },
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11)) },
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+0)) },
{ ItemID.CactusPickaxe, Do(PickPower(34), UseTimeExact(9)) },
{ ItemID.CnadyCanePickaxe, Do(PickPower(55), UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, AxePower(120), UseTimeExact(3), TileBoostExact(+0), DamageExact(112)) },
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, PickPower(200), UseTimeExact(4), TileBoostExact(+2), DamageExact(43)) },
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), UseTimeExact(7), TileBoostExact(+2)) },
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, HammerPower(90), UseTimeExact(5), TileBoostExact(+0)) },
{ ItemID.ChlorophytePickaxe, Do(PickPower(200), UseTimeExact(7), TileBoostExact(+2)) },
{ ItemID.ChlorophyteWarhammer, Do(HammerPower(90), UseTimeExact(8), TileBoostExact(+2)) },
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1), DamageExact(51)) },
{ 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), TileBoostExact(+0)) },
{ ItemID.CobaltWaraxe, Do(AxePower(125), UseTimeExact(12)) },
{ ItemID.CopperAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.CopperHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.CopperPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.DeathbringerPickaxe, Do(PickPower(70), UseTimeExact(10)) },
{ ItemID.Drax, Do(TrueMeleeNoSpeed, PickPower(200), AxePower(110), UseTimeExact(4), TileBoostExact(+1), DamageExact(80)) },
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.GoldAxe, Do(AxePower(80), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.GoldHammer, Do(HammerPower(60), UseTimeExact(9), TileBoostExact(+0)) },
{ ItemID.GoldPickaxe, Do(PickPower(55), UseTimeExact(9)) },
{ ItemID.Hammush, Do(HammerPower(85), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.IronAxe, Do(AxePower(60), UseTimeExact(15), TileBoostExact(+0)) },
{ ItemID.IronHammer, Do(HammerPower(45), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.IronPickaxe, Do(PickPower(40), UseTimeExact(8)) },
{ 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), TileBoostExact(+0)) },
{ ItemID.LeadHammer, Do(HammerPower(45), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15)) },
{ ItemID.LeadHammer, Do(HammerPower(45), UseTimeExact(11)) },
{ ItemID.LeadPickaxe, Do(PickPower(40), UseTimeExact(8)) },
{ ItemID.LucyTheAxe, Do(AxePower(150), UseExact(13), TileBoostExact(+1)) },
{ ItemID.LunarHamaxeNebula, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
{ ItemID.LunarHamaxeSolar, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
{ ItemID.LunarHamaxeStardust, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
{ ItemID.LunarHamaxeVortex, Do(HammerPower(100), AxePower(175), UseTimeExact(5), TileBoostExact(+4)) },
{ ItemID.MeteorHamaxe, Do(HammerPower(70), AxePower(100), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.MoltenHamaxe, Do(HammerPower(75), AxePower(125), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.MoltenPickaxe, Do(PickPower(100), UseTimeExact(10)) },
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), TileBoostExact(-1), DamageExact(63)) },
{ 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), TileBoostExact(+0)) },
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.NebulaPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ 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), TileBoostExact(-1), DamageExact(63)) },
{ 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), TileBoostExact(+0)) },
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), TileBoostExact(-1), DamageExact(51)) },
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5), DamageExact(21)) },
{ ItemID.PalladiumPickaxe, Do(PickPower(130), UseTimeExact(9)) },
{ ItemID.PalladiumWaraxe, Do(AxePower(125), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.PalmWoodHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.PearlwoodHammer, Do(HammerPower(25), UseTimeExact(4), UseAnimationExact(20), DamageExact(36), TileBoostExact(+0)) },
{ ItemID.PickaxeAxe, Do(PickPower(200), AxePower(110), UseTimeExact(7), TileBoostExact(+1)) },
{ ItemID.Picksaw, Do(PickPower(210), AxePower(125), UseTimeExact(6), TileBoostExact(+1)) },
{ ItemID.PlatinumAxe, Do(AxePower(80), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.PlatinumHammer, Do(HammerPower(60), UseTimeExact(9), TileBoostExact(+0)) },
{ 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(HammerPower(80), UseTimeExact(11), TileBoostExact(+1)) },
{ ItemID.Pwnhammer, Do(UseTimeExact(11), TileBoostExact(+1)) },
{ ItemID.ReaverShark, Do(PickPower(65), UseTimeExact(16)) },
{ ItemID.RichMahoganyHammer, Do(HammerPower(25), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.Rockfish, Do(HammerPower(50), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.SawtoothShark, Do(TrueMeleeNoSpeed, AxePower(45), UseTimeExact(4), TileBoostExact(-1)) },
{ ItemID.ShadewoodHammer, Do(HammerPower(25), UseTimeExact(9), TileBoostExact(+0)) },
{ ItemID.ShroomiteDiggingClaw, Do(PickPower(200), AxePower(125), UseTimeExact(4), TileBoostExact(-1)) },
{ ItemID.SilverAxe, Do(AxePower(70), UseTimeExact(14), TileBoostExact(+0)) },
{ ItemID.SilverHammer, Do(HammerPower(55), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.SilverPickaxe, Do(PickPower(50), UseTimeExact(11)) },
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.SolarFlarePickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.SpectreHamaxe, Do(HammerPower(90), AxePower(170), TileBoostExact(+4)) },
{ ItemID.SpectrePickaxe, Do(PickPower(200), TileBoostExact(+4)) },
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.StardustPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.TheAxe, Do(HammerPower(100), AxePower(175), UseTimeExact(7), TileBoostExact(+1)) },
{ ItemID.TheBreaker, Do(HammerPower(70), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.TinAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.TinPickaxe, Do(PickPower(35), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), UseTimeExact(4), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), UseTimeExact(4), TileBoostExact(+1), DamageExact(32)) },
{ 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), TileBoostExact(+0)) },
{ ItemID.TungstenHammer, Do(HammerPower(55), UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.TungstenPickaxe, Do(PickPower(50), UseTimeExact(11)) },
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, PickPower(225), UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.VortexPickaxe, Do(PickPower(225), UseTimeExact(6), TileBoostExact(+4)) },
{ ItemID.WarAxeoftheNight, Do(AxePower(100), UseTimeExact(13), TileBoostExact(+0)) },
{ ItemID.WoodenHammer, Do(HammerPower(25), UseTimeExact(11), TileBoostExact(+0)) },
{ 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)) },
#endregion
#region CATEGORY 4: True Melee support
+54 -19
View File
@@ -22,26 +22,61 @@ namespace CalamityMod.Items
public override bool AltFunctionUse(Player player) => true;
public override bool? UseItem(Player player)
{
var calPlayer = player.Calamity();
if (player.altFunctionUse == 2)
if (player.ItemTimeIsZero)
{
TryDropBoosterItem(player, ref calPlayer.rageBoostOne, ModContent.ItemType<MushroomPlasmaRoot>());
TryDropBoosterItem(player, ref calPlayer.rageBoostTwo, ModContent.ItemType<InfernalBlood>());
TryDropBoosterItem(player, ref calPlayer.rageBoostThree, ModContent.ItemType<RedLightningContainer>());
TryDropBoosterItem(player, ref calPlayer.adrenalineBoostOne, ModContent.ItemType<ElectrolyteGelPack>());
TryDropBoosterItem(player, ref calPlayer.adrenalineBoostTwo, ModContent.ItemType<StarlightFuelCell>());
TryDropBoosterItem(player, ref calPlayer.adrenalineBoostThree, ModContent.ItemType<Ectoheart>());
TryDropBoosterItem(player, ref calPlayer.nimbleBounderBoost, ModContent.ItemType<NimbleBounder>());
}
else
{
TryDropBoosterItem(player, ref calPlayer.sTangerine, ModContent.ItemType<SanguineTangerine>());
TryDropBoosterItem(player, ref calPlayer.mFruit, ModContent.ItemType<MiracleFruit>());
TryDropBoosterItem(player, ref calPlayer.tCloudberry, ModContent.ItemType<TaintedCloudberry>());
TryDropBoosterItem(player, ref calPlayer.sStrawberry, ModContent.ItemType<SacredStrawberry>());
TryDropBoosterItem(player, ref calPlayer.cShard, ModContent.ItemType<CometShard>());
TryDropBoosterItem(player, ref calPlayer.eCore, ModContent.ItemType<EtherealCore>());
TryDropBoosterItem(player, ref calPlayer.pHeart, ModContent.ItemType<PhantomHeart>());
var calPlayer = player.Calamity();
if (player.altFunctionUse == 2)
{
TryDropBoosterItem(player, ref calPlayer.rageBoostOne, ModContent.ItemType<MushroomPlasmaRoot>());
TryDropBoosterItem(player, ref calPlayer.rageBoostTwo, ModContent.ItemType<InfernalBlood>());
TryDropBoosterItem(player, ref calPlayer.rageBoostThree, ModContent.ItemType<RedLightningContainer>());
TryDropBoosterItem(player, ref calPlayer.adrenalineBoostOne, ModContent.ItemType<ElectrolyteGelPack>());
TryDropBoosterItem(player, ref calPlayer.adrenalineBoostTwo, ModContent.ItemType<StarlightFuelCell>());
TryDropBoosterItem(player, ref calPlayer.adrenalineBoostThree, ModContent.ItemType<Ectoheart>());
TryDropBoosterItem(player, ref calPlayer.nimbleBounderBoost, ModContent.ItemType<NimbleBounder>());
}
else
{
if (calPlayer.sTangerine || calPlayer.mFruit || calPlayer.tCloudberry || calPlayer.sStrawberry)
{
TryDropBoosterItem(player, ref calPlayer.sTangerine, ModContent.ItemType<SanguineTangerine>());
TryDropBoosterItem(player, ref calPlayer.mFruit, ModContent.ItemType<MiracleFruit>());
TryDropBoosterItem(player, ref calPlayer.tCloudberry, ModContent.ItemType<TaintedCloudberry>());
TryDropBoosterItem(player, ref calPlayer.sStrawberry, ModContent.ItemType<SacredStrawberry>());
}
else
{
for (int i = 0; i < player.ConsumedLifeFruit; i++)
{
int drop = Item.NewItem(player.GetSource_DropAsItem(), player.Hitbox, ItemID.LifeFruit);
Main.item[drop].noGrabDelay = 100;
}
player.ConsumedLifeFruit = 0;
for (int j = 0; j < player.ConsumedLifeCrystals; j++)
{
int drop = Item.NewItem(player.GetSource_DropAsItem(), player.Hitbox, ItemID.LifeCrystal);
Main.item[drop].noGrabDelay = 100;
}
player.ConsumedLifeCrystals = 0;
}
if (calPlayer.cShard || calPlayer.eCore || calPlayer.pHeart)
{
TryDropBoosterItem(player, ref calPlayer.cShard, ModContent.ItemType<CometShard>());
TryDropBoosterItem(player, ref calPlayer.eCore, ModContent.ItemType<EtherealCore>());
TryDropBoosterItem(player, ref calPlayer.pHeart, ModContent.ItemType<PhantomHeart>());
}
else
{
for (int k = 0; k < player.ConsumedManaCrystals; k++)
{
int drop = Item.NewItem(player.GetSource_DropAsItem(), player.Hitbox, ItemID.ManaCrystal);
Main.item[drop].noGrabDelay = 100;
}
player.ConsumedManaCrystals = 0;
}
}
return true;
}
return null;
@@ -64,7 +64,7 @@ namespace CalamityMod.Items.DraedonMisc
rangedDisplay.OverrideColor = new Color(236, 255, 31);
list.Insert(insertIndex + 2, rangedDisplay);
int mageItem = ModContent.ItemType<GatlingLaser>();
int mageItem = ModContent.ItemType<CountermeasureMitt>();
TooltipLine mageDisplay = new TooltipLine(this.Mod, "CalamityMod:MageDisplay", $"[i:{mageItem}] {CalamityUtils.GetItemName(mageItem)}");
mageDisplay.OverrideColor = new Color(255, 64, 31);
list.Insert(insertIndex + 3, mageDisplay);
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.DraedonMisc
meleeDisplay.OverrideColor = new Color(31, 242, 245);
list.Insert(insertIndex + 1, meleeDisplay);
int rangedItem = ModContent.ItemType<HolofiberImmolator>();
int rangedItem = ModContent.ItemType<HolofibreImmolator>();
TooltipLine rangedDisplay = new TooltipLine(this.Mod, "CalamityMod:RangedDisplay", $"[i:{rangedItem}] {CalamityUtils.GetItemName(rangedItem)}");
rangedDisplay.OverrideColor = new Color(149, 243, 43);
list.Insert(insertIndex + 2, rangedDisplay);
+2 -2
View File
@@ -2,7 +2,7 @@
namespace CalamityMod.Items
{
// This interface is used on items where you can hold Left SHIFT for an expanded tooltip.
// This interface is used on items where you can hold SHIFT for an expanded tooltip.
// All actual implementation of this behavior is done in CalamityGlobalItemTooltip.
public interface IHoldShiftTooltipItem
{
@@ -52,7 +52,7 @@ namespace CalamityMod.Items
#endregion
/// <summary>
/// Whether holding Left SHIFT for the tooltip extension hides the normal tooltip. Typically this is false.
/// Whether holding SHIFT for the tooltip extension hides the normal tooltip. Typically this is false.
/// </summary>
public virtual bool HidesNormalTooltip => false;
+2 -2
View File
@@ -21,9 +21,9 @@ namespace CalamityMod.Items.Mounts
MountData.buff = ModContent.BuffType<OnyxExcavatorBuff>();
// Horizontal movement
MountData.runSpeed = 5.5f;
MountData.runSpeed = 4.5f;
MountData.swimSpeed = 0.5f;
MountData.acceleration = 0.2f;
MountData.acceleration = 0.1f;
// Vertical movement
MountData.fallDamage = 0f;
@@ -4,7 +4,6 @@ using CalamityMod.Tiles.Furniture.DevPaintings;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using static Microsoft.Xna.Framework.Input.Keys;
namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
{
@@ -24,7 +23,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
if (!Main.keyState.IsKeyDown(LeftShift))
if (!Main.keyState.PressingShift())
return;
string tooltip = "";
@@ -52,11 +51,11 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
public static IList<string> devList = new List<string>()
{
"Altix",
"Angel",
"apotofkoolaid",
"AquaSG",
"Atalya",
"Ben-TK",
"Big E",
"CDMusic",
"Cei",
"CongratsIsTrash",
@@ -65,6 +64,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"CrabBar",
"Dandy",
"Dia",
"Done",
"dozezoze",
"Eddie Spaghetti",
"ENNWAY",
@@ -90,6 +90,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"Shayy",
"Spider Prov",
"StipulateVenus",
"Sunny",
"Tobias",
"Tomat",
"Triangle",
@@ -118,7 +119,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"DarkTiny",
"Demik",
"DM Dokuro",
"Done",
"Doog",
"drh",
"dwshin",
+1 -1
View File
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.TreasureBags
// Equipment
itemLoot.Add(ModContent.ItemType<ChaosStone>(), DropHelper.BagWeaponDropRateFraction);
itemLoot.Add(ModContent.ItemType<VoidofCalamity>());
itemLoot.Add(ModContent.ItemType<Regenator>(), 10);
itemLoot.Add(ModContent.ItemType<Regenerator>(), 10);
itemLoot.AddRevBagAccessories();
// Vanity
@@ -32,7 +32,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
player.Calamity().eskimoSet = true;
player.buffImmune[BuffID.Frostburn] = true;
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
}
}
}
@@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using CalamityMod.CustomRecipes;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.DraedonsArsenal;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
[LegacyName("GatlingLaser")]
public class CountermeasureMitt : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 54;
Item.height = 56;
Item.DamageType = DamageClass.Magic;
Item.mana = 3;
Item.damage = 45;
Item.knockBack = 4f;
Item.useAnimation = Item.useTime = 11;
Item.autoReuse = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.channel = true;
Item.noUseGraphic = true;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.shoot = ModContent.ProjectileType<CountermeasureMittHoldout>();
Item.shootSpeed = 24f;
}
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 3);
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override bool AltFunctionUse(Player player) => true;
public override void HoldItem(Player player)
{
if (Main.myPlayer == player.whoAmI)
player.Calamity().rightClickListener = true;
player.Calamity().mouseWorldListener = true;
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/CountermeasureMittGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float gunType = 0;
if (player.Calamity().mouseRight && player.whoAmI == Main.myPlayer && !Main.mapFullscreen && !Main.blockMouse && player.Calamity().arsenalCooldown <= 0)
gunType = 5;
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, type, damage, knockback, player.whoAmI, 0, 0, gunType);
holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero);
return false;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<MysteriousCircuitry>(15).
AddIngredient<DubiousPlating>(15).
AddIngredient<LifeAlloy>(5).
AddIngredient<InfectedArmorPlating>(10).
AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(3, out Func<bool> condition), condition).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

@@ -1,74 +0,0 @@
using System;
using System.Collections.Generic;
using CalamityMod.CustomRecipes;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.DraedonsArsenal;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
public class GatlingLaser : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/GatlingLaserFireStart");
public static readonly SoundStyle FireLoopSound = new("CalamityMod/Sounds/Item/GatlingLaserFireLoop");
public static readonly SoundStyle FireEndSound = new("CalamityMod/Sounds/Item/GatlingLaserFireEnd");
// This is the amount of charge consumed every time the holdout projectile fires a laser.
public const float HoldoutChargeUse = 0.0075f;
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
Item.width = 43;
Item.height = 24;
Item.DamageType = DamageClass.Magic;
Item.damage = 43;
Item.knockBack = 1f;
Item.useTime = 2;
Item.useAnimation = 2;
Item.noUseGraphic = true;
Item.autoReuse = false;
Item.channel = true;
Item.mana = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = FireSound;
Item.noMelee = true;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.shoot = ModContent.ProjectileType<GatlingLaserProj>();
Item.shootSpeed = 24f;
modItem.UsesCharge = true;
modItem.MaxCharge = 135f;
modItem.ChargePerUse = 0f; // This weapon is a holdout. Charge is consumed by the holdout projectile.
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0;
public override void ModifyTooltips(List<TooltipLine> tooltips) => CalamityGlobalItem.InsertKnowledgeTooltip(tooltips, 3);
public override Vector2? HoldoutOffset() => new Vector2(-20, 0);
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<MysteriousCircuitry>(15).
AddIngredient<DubiousPlating>(15).
AddIngredient<LifeAlloy>(5).
AddIngredient<InfectedArmorPlating>(10).
AddCondition(ArsenalTierGatedRecipe.ConstructRecipeCondition(3, out Func<bool> condition), condition).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}
@@ -14,7 +14,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
[LegacyName("MatterModulator")]
public class HolofiberImmolator : ModItem, ILocalizedModType
public class HolofibreImmolator : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
public static readonly SoundStyle PlasmaSound = new("CalamityMod/Sounds/Item/PlasmaSmall");
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
Item.rare = ItemRarityID.Pink;
Item.shoot = ModContent.ProjectileType<HolofiberImmolatorHoldout>();
Item.shoot = ModContent.ProjectileType<HolofibreImmolatorHoldout>();
Item.shootSpeed = 12f;
}
@@ -48,11 +48,11 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public override void HoldItem(Player player) => player.Calamity().mouseWorldListener = true;
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/HolofiberImmolatorGlow").Value);
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/DraedonsArsenal/HolofibreImmolatorGlow").Value);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<HolofiberImmolatorHoldout>(), damage, knockback, player.whoAmI, 0, 1);
Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<HolofibreImmolatorHoldout>(), damage, knockback, player.whoAmI, 0, 1);
holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero);
return false;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

+11 -41
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 70;
Item.height = 60;
Item.damage = 22;
Item.damage = 21;
Item.DamageType = DamageClass.Magic;
Item.mana = 18;
Item.useTime = 30;
@@ -39,48 +39,18 @@ namespace CalamityMod.Items.Weapons.Magic
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float projSpeed = velocity.Length();
Vector2 realPlayerPos = player.RotatedRelativePoint(player.MountedCenter, true);
float mouseXDist = (float)Main.mouseX + Main.screenPosition.X + realPlayerPos.X;
float mouseYDist = (float)Main.mouseY + Main.screenPosition.Y + realPlayerPos.Y;
if (player.gravDir == -1f)
{
mouseYDist = Main.screenPosition.Y + (float)Main.screenHeight + (float)Main.mouseY + realPlayerPos.Y;
}
float mouseDistance = (float)Math.Sqrt((double)(mouseXDist * mouseXDist + mouseYDist * mouseYDist));
if ((float.IsNaN(mouseXDist) && float.IsNaN(mouseYDist)) || (mouseXDist == 0f && mouseYDist == 0f))
{
mouseXDist = (float)player.direction;
mouseYDist = 0f;
mouseDistance = projSpeed;
}
else
{
mouseDistance = projSpeed / mouseDistance;
}
for (int i = 0; i < 4; i++)
{
realPlayerPos = new Vector2(player.position.X + (float)player.width * 0.5f + (float)(Main.rand.Next(201) * -(float)player.direction) + ((float)Main.mouseX + Main.screenPosition.X - player.position.X), player.MountedCenter.Y);
realPlayerPos.X = (realPlayerPos.X + player.Center.X) / 2f + (float)Main.rand.Next(-200, 201);
realPlayerPos.Y -= (float)(100 * i);
mouseXDist = (float)Main.mouseX + Main.screenPosition.X - realPlayerPos.X;
mouseYDist = (float)Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y;
if (mouseYDist < 0f)
{
mouseYDist *= -1f;
}
if (mouseYDist < 20f)
{
mouseYDist = 20f;
}
mouseDistance = (float)Math.Sqrt((double)(mouseXDist * mouseXDist + mouseYDist * mouseYDist));
mouseDistance = projSpeed / mouseDistance;
mouseXDist *= mouseDistance;
mouseYDist *= mouseDistance;
float speedX4 = mouseXDist + (float)Main.rand.Next(-40, 41) * 0.02f;
float speedY5 = mouseYDist + (float)Main.rand.Next(-40, 41) * 0.02f;
Projectile.NewProjectile(source, realPlayerPos.X, realPlayerPos.Y, speedX4, speedY5, type, damage, knockback, player.whoAmI);
Vector2 realPlayerPos = new Vector2((player.MountedCenter.X + Main.mouseX + Main.screenPosition.X - player.position.X + player.Center.X) / 2f, player.MountedCenter.Y - (100f * i));
Vector2 mouseDist = new Vector2(Main.mouseX + Main.screenPosition.X - realPlayerPos.X, Math.Abs(Main.mouseY + Main.screenPosition.Y - realPlayerPos.Y));
if (mouseDist.Y < 20f)
mouseDist.Y = 20f;
mouseDist = mouseDist.SafeNormalize(Vector2.UnitX) * velocity.Length();
mouseDist.X += Main.rand.NextFloat(-0.4f, 0.4f);
mouseDist.Y += Main.rand.NextFloat(-0.4f, 0.4f);
Projectile.NewProjectile(source, realPlayerPos, mouseDist, type, damage, knockback, player.whoAmI);
}
return false;
}
+6 -5
View File
@@ -20,16 +20,17 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 58;
Item.height = 56;
Item.damage = 205;
Item.damage = 285;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.useTime = 12;
Item.useAnimation = 12;
Item.mana = 15;
Item.useTime = 8;
Item.useAnimation = 24;
Item.reuseDelay = 30;
Item.useLimitPerAnimation = 3;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 5f;
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
Item.UseSound = SoundID.Item72;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<Shadowbolt>();
Item.shootSpeed = 5f;
+2 -3
View File
@@ -25,12 +25,11 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 46;
Item.height = 46;
Item.damage = 59;
Item.damage = 56;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.useAnimation = 60;
Item.useTime = 60;
Item.useTime = Item.useAnimation = 60;
Item.knockBack = 8f;
Item.mana = 18;
Item.UseSound = SoundID.DD2_MonkStaffSwing;
+5 -7
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 36;
Item.height = 40;
Item.damage = 70;
Item.damage = 65;
Item.DamageType = DamageClass.Magic;
Item.mana = 7;
Item.useTime = 12;
@@ -32,16 +32,14 @@ namespace CalamityMod.Items.Weapons.Magic
Item.UseSound = SoundID.Item9;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<Icicle>();
Item.shootSpeed = 15f;
Item.shootSpeed = 16f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (!Main.rand.NextBool(4))
{
Vector2 speed = velocity.RotatedBy(MathHelper.ToRadians(Main.rand.Next(-15, 16)));
speed.Normalize();
speed *= 15f;
Vector2 speed = velocity.RotatedByRandom(MathHelper.Pi / 12f);
speed.Y -= Math.Abs(speed.X) * 0.2f;
int p = Projectile.NewProjectile(source, position, speed, ModContent.ProjectileType<FrostShardFriendly>(), damage, knockback, player.whoAmI);
if (p.WithinBounds(Main.maxProjectiles))
@@ -52,8 +50,8 @@ namespace CalamityMod.Items.Weapons.Magic
SoundEngine.PlaySound(SoundID.Item1, position);
Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 1.2f, velocity.Y * 1.2f, ModContent.ProjectileType<Snowball>(), damage, knockback * 2f, player.whoAmI);
}
velocity.X += Main.rand.Next(-40, 41) * 0.05f;
velocity.Y += Main.rand.Next(-40, 41) * 0.05f;
velocity.X += Main.rand.NextFloat(-2f, 2f);
velocity.Y += Main.rand.NextFloat(-2f, 2f);
return true;
}
}
-1
View File
@@ -42,7 +42,6 @@ namespace CalamityMod.Items.Weapons.Melee
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
{
target.AddBuff(BuffID.Frostburn2, 300);
target.AddBuff(ModContent.BuffType<GlacialState>(), 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 -2
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
public static float MaxThrowReach = 760;
public static float SnapDamageMultiplier = 1.2f; //Extra damage from making the scissors snap
public static float MaxCharge = 15f; // Maximum charge value AKA how much charge you get from a parry
public static float MaxCharge = 16f; // Maximum charge value AKA how much charge you get from a parry
public static float chargeDamageMultiplier = 1.35f; //Extra damage from charge
public static float chainDamageMultiplier = 0.1f;
public static float SnapBoltsDamageMultiplier = 0.1f;
@@ -235,7 +235,7 @@ namespace CalamityMod.Items.Weapons.Melee
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
float barScale = 3f;
float barScale = 4f;
Vector2 barOrigin = barBG.Size() * 0.5f;
float yOffset = 50f;
Vector2 drawPos = position + Vector2.UnitY * scale * (frame.Height - yOffset);
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 56;
Item.height = 56;
Item.damage = 50;
Item.damage = 42;
Item.knockBack = 3f;
Item.useTime = 53;
Item.useAnimation = 53;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 30;
Item.height = 26;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 152;
Item.damage = 115;
Item.knockBack = 7f;
Item.useTime = 20;
Item.useAnimation = 20;
+1 -19
View File
@@ -38,25 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.CursedTorch);
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
if (player.moonLeech || player.lifeSteal <= 0f || target.lifeMax <= 5)
return;
int heal = 5;
player.lifeSteal -= heal;
player.HealPlayer(heal);
}
public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo)
{
if (player.moonLeech || player.lifeSteal <= 0f)
return;
int heal = 5;
player.lifeSteal -= heal;
player.HealPlayer(heal);
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) => player.DoLifestealDirect(target, 5, 0.5f);
public override void AddRecipes()
{
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 76;
Item.height = 76;
Item.damage = 195;
Item.damage = 144;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = Item.useTime = 90; // Yes it's actually supposed to be this slow
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 36;
Item.height = 40;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.damage = 21;
Item.damage = 17;
Item.knockBack = 1.5f;
Item.useTime = 25;
Item.useAnimation = 25;
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 46;
Item.height = 46;
Item.damage = 60;
Item.damage = 48;
Item.DamageType = DamageClass.Melee;
Item.useTurn = true;
Item.useAnimation = 27;
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 60;
Item.height = 30;
Item.damage = 135;
Item.damage = 120;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 5;
Item.useAnimation = 25;
+31 -57
View File
@@ -1,4 +1,5 @@
using Microsoft.Xna.Framework;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
@@ -9,10 +10,13 @@ namespace CalamityMod.Items.Weapons.Ranged
public class FirestormCannon : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
}
// This is intentionally stored on the item instead of the holdout to prevent swapping items to instantly reset the heat
// This could be theoretically exploited using multiple items, but the heat dissipates fast enough that I can't really care
public int BuiltUpHeat = 0;
public const int OverheatLevel = 480;
public const int OverheatCooldown = 180;
public const int OverheatDamage = 20;
public override void SetDefaults()
{
@@ -20,71 +24,41 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.height = 28;
Item.damage = 14;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 12;
Item.useAnimation = 12;
Item.useTime = Item.useAnimation = 11;
Item.knockBack = 1.5f;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.5f;
Item.channel = true;
Item.noUseGraphic = true;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.RarityGreenBuyPrice;
Item.rare = ItemRarityID.Green;
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.Flare;
Item.shoot = ModContent.ProjectileType<FirestormCannonHoldout>();
Item.shootSpeed = 5.5f;
Item.useAmmo = AmmoID.Flare;
Item.Calamity().canFirePointBlankShots = true;
}
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override bool CanConsumeAmmo(Item ammo, Player player) => Main.rand.Next(100) >= 70;
public override bool AltFunctionUse(Player player) => true;
public override float UseSpeedMultiplier(Player player)
public override void HoldItem(Player player)
{
if (player.altFunctionUse == 2)
return 1 / 3f;
return 1f;
player.Calamity().rightClickListener = true;
// Heat decrements if:
// The holdout exists, the player is not firing, the player is not in overheat, and there is heat in the weapon
if (player.ownedProjectileCounts[Item.shoot] > 0 && !Main.mouseLeft && player.Calamity().flareGunOverheat == 0 && BuiltUpHeat > 0)
{
BuiltUpHeat -= player.miscCounter % 2 == 0 ? 3 : 2;
if (BuiltUpHeat < 0)
BuiltUpHeat = 0;
}
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && !player.Calamity().mouseRight;
public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0; // Spawning the holdout cannot consume ammo
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.altFunctionUse == 2)
{
velocity *= 2f;
int flareAmt = Main.rand.Next(4, 6);
for (int index = 0; index < flareAmt; ++index)
{
float SpeedX = velocity.X + (float)Main.rand.Next(-50, 51) * 0.05f;
float SpeedY = velocity.Y + (float)Main.rand.Next(-50, 51) * 0.05f;
int flare = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI);
if (flare.WithinBounds(Main.maxProjectiles))
{
Main.projectile[flare].penetrate = 1;
Main.projectile[flare].timeLeft = 600;
Main.projectile[flare].DamageType = DamageClass.Ranged;
}
}
return false;
}
else
{
int flareAmt = Main.rand.Next(1, 3);
for (int index = 0; index < flareAmt; ++index)
{
float SpeedX = velocity.X + (float)Main.rand.Next(-40, 41) * 0.05f;
float SpeedY = velocity.Y + (float)Main.rand.Next(-40, 41) * 0.05f;
int flare = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI);
if (flare.WithinBounds(Main.maxProjectiles))
{
Main.projectile[flare].DamageType = DamageClass.Ranged;
Main.projectile[flare].timeLeft = 200;
Main.projectile[flare].penetrate = 3;
}
}
return false;
}
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<FirestormCannonHoldout>(), damage, knockback, player.whoAmI);
return false;
}
public override void AddRecipes()
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 40;
Item.height = 26;
Item.damage = 20;
Item.damage = 19;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 22;
Item.useAnimation = 22;
+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public static readonly SoundStyle Fire = new("CalamityMod/Sounds/Item/MagnaCannonShot") { PitchVariance = 0.3f, Volume = 0.4f };
public static int AftershotCooldownFrames = 30;
public static int FullChargeFrames = 138; //126 frames is durration of charge sound
public static int FullChargeFrames = 138; //126 frames is duration of charge sound
public new string LocalizationCategory => "Items.Weapons.Ranged";
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 56;
Item.height = 34;
Item.damage = 30;
Item.damage = 25;
Item.DamageType = DamageClass.Ranged;
Item.useAnimation = Item.useTime = AftershotCooldownFrames;
Item.useStyle = ItemUseStyleID.Shoot;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 48;
Item.height = 24;
Item.damage = 33;
Item.damage = 30;
Item.DamageType = DamageClass.Ranged;
Item.useAnimation = Item.useTime = AftershotCooldownFrames;
Item.useStyle = ItemUseStyleID.Shoot;
+33 -35
View File
@@ -1,4 +1,5 @@
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
@@ -10,56 +11,53 @@ namespace CalamityMod.Items.Weapons.Ranged
public class SpectralstormCannon : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Ranged";
// This is intentionally stored on the item instead of the holdout to prevent swapping items to instantly reset the heat
// This could be theoretically exploited using multiple items, but the heat dissipates fast enough that I can't really care
public int BuiltUpHeat = 0;
public const int OverheatLevel = 540;
public const int OverheatCooldown = 160;
public const int OverheatDamage = 50;
public override void SetDefaults()
{
Item.width = 66;
Item.height = 26;
Item.damage = 48;
Item.damage = 82;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 4;
Item.useAnimation = 12;
Item.useTime = Item.useAnimation = 11;
Item.knockBack = 1.5f;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 1.5f;
Item.channel = true;
Item.noUseGraphic = true;
Item.autoReuse = true;
Item.value = CalamityGlobalItem.RarityRedBuyPrice;
Item.rare = ItemRarityID.Red;
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.Flare;
Item.shootSpeed = 9.5f;
Item.shoot = ModContent.ProjectileType<SpectralstormCannonHoldout>();
Item.shootSpeed = 10f;
Item.useAmmo = AmmoID.Flare;
Item.Calamity().canFirePointBlankShots = true;
}
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
public override bool CanConsumeAmmo(Item ammo, Player player)
public override void HoldItem(Player player)
{
if (Main.rand.Next(0, 100) < 70)
return false;
return true;
player.Calamity().rightClickListener = true;
// Heat decrements if:
// The holdout exists, the player is not firing, the player is not in overheat, and there is heat in the weapon
if (player.ownedProjectileCounts[Item.shoot] > 0 && !Main.mouseLeft && player.Calamity().flareGunOverheat == 0 && BuiltUpHeat > 0)
{
BuiltUpHeat -= 3;
if (BuiltUpHeat < 0)
BuiltUpHeat = 0;
}
}
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[Item.shoot] <= 0 && !player.Calamity().mouseRight;
public override bool CanConsumeAmmo(Item ammo, Player player) => player.ownedProjectileCounts[Item.shoot] > 0; // Spawning the holdout cannot consume ammo
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float SpeedX = velocity.X + (float)Main.rand.Next(-40, 41) * 0.05f;
float SpeedY = velocity.Y + (float)Main.rand.Next(-40, 41) * 0.05f;
int flare = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI);
if (flare.WithinBounds(Main.maxProjectiles))
{
Main.projectile[flare].timeLeft = 200;
Main.projectile[flare].DamageType = DamageClass.Ranged;
}
float SpeedX2 = velocity.X + (float)Main.rand.Next(-20, 21) * 0.05f;
float SpeedY2 = velocity.Y + (float)Main.rand.Next(-20, 21) * 0.05f;
int soul = Projectile.NewProjectile(source, position.X, position.Y, SpeedX2, SpeedY2, ModContent.ProjectileType<LostSoulFriendly>(), damage, knockback, player.whoAmI, 2f, 0f);
if (soul.WithinBounds(Main.maxProjectiles))
{
Main.projectile[soul].timeLeft = 600;
Main.projectile[soul].DamageType = DamageClass.Ranged;
Main.projectile[soul].frame = Main.rand.Next(4);
}
Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType<SpectralstormCannonHoldout>(), damage, knockback, player.whoAmI);
return false;
}
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue
// Terraria seems to really dislike high crit values in SetDefaults
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 4;
public override float StealthDamageMultiplier => 3f;
public override float StealthDamageMultiplier => 1.7f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
+1 -8
View File
@@ -9,11 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class FrostyFlare : RogueWeapon
{
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 99;
}
public override void SetDefaults()
{
Item.width = 10;
@@ -27,12 +22,10 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.knockBack = 2f;
Item.value = Item.buyPrice(0, 0, 8, 0);
Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice;
Item.rare = ItemRarityID.LightPurple;
Item.shoot = ModContent.ProjectileType<FrostyFlareProj>();
Item.shootSpeed = 22f;
Item.maxStack = Item.CommonMaxStack;
Item.consumable = true;
Item.DamageType = RogueDamageClass.Instance;
}
Loaded 100 of 658 files, more files were not shown because too many files have changed in this diff. Show more