From cf948670f82889074571e2fecdbf94b1056cadf5 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 23 Mar 2024 18:18:36 -0400 Subject: [PATCH 01/32] Bunch of ammo rebalancing * Hyperius split bullets deal 15% base damage instead of 35%, but deal an extra 10 flat damage * Bubonic Rounds inflict Plague for 1 second instead of 0.75 * Hailstorm Bullet flash freeze deals 33% base damage instead of 20% * Decreased PBG's velocity and acceleration during minion spawn attack, and decreased speed of Plague Homing Missiles below 50% HP --- Items/Ammo/HyperiusBullet.cs | 3 +++ Items/Weapons/Ranged/Helstorm.cs | 8 ++++---- NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs | 6 +++--- Projectiles/Ranged/BubonicRoundProj.cs | 2 +- Projectiles/Ranged/HailstormBulletProj.cs | 2 +- Projectiles/Ranged/HyperiusBulletProj.cs | 2 +- Projectiles/Ranged/HyperiusSplit.cs | 5 ++++- 7 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Items/Ammo/HyperiusBullet.cs b/Items/Ammo/HyperiusBullet.cs index c3732f51c7..39653cceb2 100644 --- a/Items/Ammo/HyperiusBullet.cs +++ b/Items/Ammo/HyperiusBullet.cs @@ -9,6 +9,9 @@ namespace CalamityMod.Items.Ammo public class HyperiusBullet : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Ammo"; + + public static int SplitBulletBonusDamage = 10; + public override void SetStaticDefaults() { Item.ResearchUnlockCount = 99; diff --git a/Items/Weapons/Ranged/Helstorm.cs b/Items/Weapons/Ranged/Helstorm.cs index aecd64e902..219390e9f5 100644 --- a/Items/Weapons/Ranged/Helstorm.cs +++ b/Items/Weapons/Ranged/Helstorm.cs @@ -14,12 +14,12 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 50; Item.height = 24; - Item.damage = 31; + Item.damage = 33; Item.DamageType = DamageClass.Ranged; - Item.useTime = 7; - Item.useAnimation = 7; + Item.useTime = 9; + Item.useAnimation = 9; Item.useStyle = ItemUseStyleID.Shoot; - Item.knockBack = 2.5f; + Item.knockBack = 2f; Item.value = CalamityGlobalItem.Rarity8BuyPrice; Item.rare = ItemRarityID.Yellow; Item.UseSound = SoundID.Item11; diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 352444b2f2..3ee9efa048 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -783,7 +783,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (expertMode && NPC.CountNPCS(ModContent.NPCType()) < 3) NPC.NewNPC(NPC.GetSource_FromAI(), (int)missileSpawnPos.X, (int)missileSpawnPos.Y, ModContent.NPCType(), 0, 0f, 0f, 0f, challengeAmt); - float npcSpeed = (revenge ? 11f : 9f) + enrageScale * 2f; + float npcSpeed = (revenge ? 10f : 8f) + enrageScale * 2f; float projXDist = player.Center.X - missileSpawnPos.X; float projYDist = player.Center.Y - missileSpawnPos.Y; @@ -1168,8 +1168,8 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath private void Movement(float distanceAboveTarget, Player player, float enrageScale) { - float acceleration = 0.48f; - float velocity = 24f; + float acceleration = (NPC.ai[0] == 1f || NPC.ai[0] == 5f) ? 0.28f : 0.48f; + float velocity = (NPC.ai[0] == 1f || NPC.ai[0] == 5f) ? 16f : 24f; acceleration *= 0.5f * enrageScale + 1f; velocity *= 1f + enrageScale * 0.5f; Vector2 hoverDestination = player.Center - Vector2.UnitY * distanceAboveTarget; diff --git a/Projectiles/Ranged/BubonicRoundProj.cs b/Projectiles/Ranged/BubonicRoundProj.cs index 2fcad2706a..5c9a9c260d 100644 --- a/Projectiles/Ranged/BubonicRoundProj.cs +++ b/Projectiles/Ranged/BubonicRoundProj.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Ranged public override void ModifyHitPlayer(Player target, ref Player.HurtModifiers modifiers) => modifiers.ScalingArmorPenetration += 0.1f; // Inflicts Plague for 0.75 seconds - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 45); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 60); public override void OnKill(int timeLeft) { diff --git a/Projectiles/Ranged/HailstormBulletProj.cs b/Projectiles/Ranged/HailstormBulletProj.cs index 72c492a8d1..4d8c89904c 100644 --- a/Projectiles/Ranged/HailstormBulletProj.cs +++ b/Projectiles/Ranged/HailstormBulletProj.cs @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Ranged WaterFlavoredParticle subTrail = new WaterFlavoredParticle(Projectile.Center + velocity * 4.5f + addedPlacement, velocity * 7, false, 6, 0.65f, Color.SkyBlue); GeneralParticleHandler.SpawnParticle(subTrail); } - int onHitDamage = Owner.CalcIntDamage(0.2f * Projectile.damage); + int onHitDamage = Owner.CalcIntDamage(0.33f * Projectile.damage); Owner.ApplyDamageToNPC(target, onHitDamage, 0f, 0, false); } } diff --git a/Projectiles/Ranged/HyperiusBulletProj.cs b/Projectiles/Ranged/HyperiusBulletProj.cs index b60681bf7b..6becd523e2 100644 --- a/Projectiles/Ranged/HyperiusBulletProj.cs +++ b/Projectiles/Ranged/HyperiusBulletProj.cs @@ -130,7 +130,7 @@ namespace CalamityMod.Projectiles.Ranged for (int b = 0; b < 3; b++) { Vector2 velocity = Projectile.velocity.RotatedByRandom(0.5f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity * 0.7f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.35), Projectile.knockBack * 2f, Projectile.owner, 0f, 0f, Main.rand.Next(0, 4 + 1)); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity * 0.7f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.15), Projectile.knockBack * 2f, Projectile.owner, 0f, 0f, Main.rand.Next(0, 4 + 1)); } } } diff --git a/Projectiles/Ranged/HyperiusSplit.cs b/Projectiles/Ranged/HyperiusSplit.cs index b0b7efced4..7cd32b9906 100644 --- a/Projectiles/Ranged/HyperiusSplit.cs +++ b/Projectiles/Ranged/HyperiusSplit.cs @@ -1,4 +1,5 @@ -using CalamityMod.Particles; +using CalamityMod.Items.Ammo; +using CalamityMod.Particles; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -95,5 +96,7 @@ namespace CalamityMod.Projectiles.Ranged } } public override bool? CanDamage() => Projectile.localAI[0] < 20 ? false : null; + + public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.SourceDamage.Flat += HyperiusBullet.SplitBulletBonusDamage; } } From d3ab4a8258aca6f57c2e76055073efb7a299610f Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 00:24:09 -0400 Subject: [PATCH 02/32] Exo Twins icon hover sound --- .../Codebreaker/ArtemisApolloIconHover.ogg | Bin 11298 -> 17875 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Sounds/Custom/Codebreaker/ArtemisApolloIconHover.ogg b/Sounds/Custom/Codebreaker/ArtemisApolloIconHover.ogg index 8af3763f641d8bc315cf9f5dc9f9c536221da058..b334f9e6c8d22e13cf32d6c82eea5523ef2ee15c 100644 GIT binary patch delta 13650 zcmZ|02T)VZ_xOEN2@o)Z5JNx=RZ74l6cJm1fOP2w1Pq}iGyy3JVnQ`ErAtthF5OTC zM7{w5>C&aCD5#*=>!Z&jug~xIednEb=KtTBdw0*-v*+&ao!L42*?Y_Bvl$@#iGTnn z01W&$Jq-Qd!VTz+`W(E@u773FA5|dZ)OqQh6FIKOIii0=#XpxhJJ^qKCMMJ`;)r#` znaDF|2~LsT5s`io1RFLp!aL&pzlJnpXR{*|5``@NM{qjh9~t8v;djL8OjM|E2>VY{ z`9Er78xt4X|BDZ~KlLWwp}zlLHRu2L42gf+J33oBIsex}^^d~zgsrW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WG0ttJIRQe0%j9a0eY7)cy%Q#8e`XeA zW@ZuqfNG+7-k)c#%k}lP_O;+s+hY<-D|@nVJ(gCpPuDw+tj?HbwJt`}xtoTLXR^K8 zN+v7j2Gp4spssQ1n%c*qOSX!t1Yr=%QDsH7g1uO0I-NyjuN|$TW1&#a?i}cB2W2`L zUubAD4%zA9@@NUun}tYsSlXN_e?^{35DsMQ)5Aw?b870tKFP{Ez*nO%aQ1dq6i1~j z%W@nU}&>yk6G#?1~=@@NF4ym;D_sSkR=#m+zwywbp0?iiw$-WB>pFKww3cC{OFxRZgXc zhlGb%S{akg$Y`rsM{-Yv)Nb{vGah^U^@sC2X|nX{%`|r@qAC@|S(IY2SgdtfgE*?J ztgNIdg~2LH7Gz~*$;+xZe`^#+mSq(%Dr#j}mX6g^vMeuQ5Q_QusFmgXL~#&mdKzT8 z(~&h$U|Gz^hht3LyXk2vK@P$oT-IgiX=@Eafr@?`psfKcqc8{qqd1CXEGrDcz=Aep z6vd;Kg%t*2;06H3vH&ZLECX*Lb5q{}8A0u{%Y7E$Yr|GkVc*^771`?i`s_Bzu5+2K Nv(*VeE^B~I04GQZ$qoPj From e9f74c2b8732ce705301c6d4fe3de573a32502e4 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 23 Mar 2024 22:28:00 -0700 Subject: [PATCH 03/32] Mech Tier Balance/Cinder Arrow Buff --- Items/Ammo/CinderArrow.cs | 2 +- Items/CalamityGlobalItemTweaks.cs | 2 +- Items/Weapons/Magic/ClothiersWrath.cs | 2 +- Items/Weapons/Ranged/BrimstoneFury.cs | 2 +- Items/Weapons/Rogue/SpentFuelContainer.cs | 7 ++++--- Projectiles/CalamityGlobalProjectileTweaks.cs | 1 + Projectiles/Ranged/CinderArrowProj.cs | 4 ++-- .../Rogue/SpentFuelContainerProjectile.cs | 16 +++------------- Projectiles/Rogue/SulphuricNukesplosion.cs | 2 +- 9 files changed, 15 insertions(+), 23 deletions(-) diff --git a/Items/Ammo/CinderArrow.cs b/Items/Ammo/CinderArrow.cs index 9e88ef59e3..ed7a209e33 100644 --- a/Items/Ammo/CinderArrow.cs +++ b/Items/Ammo/CinderArrow.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Ammo { Item.width = 22; Item.height = 36; - Item.damage = 11; + Item.damage = 12; Item.DamageType = DamageClass.Ranged; Item.maxStack = 9999; Item.consumable = true; diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 3f59f0aa74..ae14e8d561 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Items { ItemID.CrystalDart, Do(DamageExact(20)) }, { ItemID.CrystalSerpent, Do(DamageExact(45)) }, { ItemID.CrystalStorm, Do(DamageExact(40)) }, - { ItemID.CursedArrow, Do(DamageExact(15)) }, + { ItemID.CursedArrow, Do(DamageExact(14)) }, { ItemID.CursedDart, Do(DamageExact(25)) }, { ItemID.Cutlass, Do(UseRatio(0.9f), DamageExact(90)) }, { ItemID.DaedalusStormbow, Do(DamageExact(30)) }, diff --git a/Items/Weapons/Magic/ClothiersWrath.cs b/Items/Weapons/Magic/ClothiersWrath.cs index e82a433956..c2c373370e 100644 --- a/Items/Weapons/Magic/ClothiersWrath.cs +++ b/Items/Weapons/Magic/ClothiersWrath.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 28; Item.height = 30; - Item.damage = 80; + Item.damage = 36; Item.DamageType = DamageClass.Magic; Item.mana = 15; Item.useTime = 22; diff --git a/Items/Weapons/Ranged/BrimstoneFury.cs b/Items/Weapons/Ranged/BrimstoneFury.cs index df2cbca3a0..7f09cdd428 100644 --- a/Items/Weapons/Ranged/BrimstoneFury.cs +++ b/Items/Weapons/Ranged/BrimstoneFury.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 30; Item.height = 58; - Item.damage = 25; + Item.damage = 21; Item.DamageType = DamageClass.Ranged; Item.useTime = 22; Item.useAnimation = 22; diff --git a/Items/Weapons/Rogue/SpentFuelContainer.cs b/Items/Weapons/Rogue/SpentFuelContainer.cs index 1e6e050470..041c7e5d28 100644 --- a/Items/Weapons/Rogue/SpentFuelContainer.cs +++ b/Items/Weapons/Rogue/SpentFuelContainer.cs @@ -14,9 +14,9 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 22; Item.height = 24; - Item.damage = 50; - Item.useAnimation = 35; - Item.useTime = 35; + Item.damage = 80; + Item.useAnimation = 50; + Item.useTime = 50; Item.noMelee = true; Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Swing; @@ -29,6 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.shootSpeed = 15f; Item.DamageType = RogueDamageClass.Instance; } + public override float StealthDamageMultiplier => 0.5f; public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 5b16a16505..ee0ae2ffb0 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -125,6 +125,7 @@ namespace CalamityMod.Projectiles { ProjectileID.ButchersChainsaw, Do(TrueMeleeNoSpeed, ArmorPenetrationDelta(+15), LocalIFrames(5), ScaleExact(1.5f)) }, { ProjectileID.ChlorophyteChainsaw, standardChainsawTweaks }, { ProjectileID.ChlorophyteDrill, standardDrillTweaks }, + { ProjectileID.ClothiersCurse, Do(PiercingExact(3), LocalIFrames(-1)) }, { ProjectileID.CobaltChainsaw, standardChainsawTweaks }, { ProjectileID.CobaltDrill, standardDrillTweaks }, { ProjectileID.CrystalBullet, standardBulletTweaks }, diff --git a/Projectiles/Ranged/CinderArrowProj.cs b/Projectiles/Ranged/CinderArrowProj.cs index 3751bcfd95..95557a92c8 100644 --- a/Projectiles/Ranged/CinderArrowProj.cs +++ b/Projectiles/Ranged/CinderArrowProj.cs @@ -92,12 +92,12 @@ namespace CalamityMod.Projectiles.Ranged for (int b = 0; b < 3; b++) { - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(0, -10).RotatedByRandom(0.8f) * Main.rand.NextFloat(0.9f, 1.1f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.05f), 0f, Projectile.owner, 0f, 0f, 1f); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, new Vector2(0, -10).RotatedByRandom(0.8f) * Main.rand.NextFloat(0.9f, 1.1f), ModContent.ProjectileType(), (int)(Projectile.damage * 0.1f), 0f, Projectile.owner, 0f, 0f, 1f); } if (Projectile.owner == Main.myPlayer) { - Projectile.damage = (int)(Projectile.damage * 0.3f); + Projectile.damage = (int)(Projectile.damage * 0.5f); Projectile.penetrate = -1; Projectile.ExpandHitboxBy(110); Projectile.Damage(); diff --git a/Projectiles/Rogue/SpentFuelContainerProjectile.cs b/Projectiles/Rogue/SpentFuelContainerProjectile.cs index adcad4f39c..8b23258ac2 100644 --- a/Projectiles/Rogue/SpentFuelContainerProjectile.cs +++ b/Projectiles/Rogue/SpentFuelContainerProjectile.cs @@ -19,23 +19,13 @@ namespace CalamityMod.Projectiles.Rogue Projectile.height = 34; Projectile.friendly = true; Projectile.penetrate = 1; + Projectile.aiStyle = ProjAIStyleID.ThrownProjectile; Projectile.timeLeft = 200; Projectile.tileCollide = true; Projectile.alpha = 0; + AIType = ProjectileID.ThrowingKnife; Projectile.DamageType = RogueDamageClass.Instance; } - public override void AI() - { - Projectile.ai[0] += 1f; //arbitrary timer - if (Projectile.ai[0] > 75f) - { - if (Projectile.velocity.Y < 10f) - { - Projectile.velocity.Y += 0.15f; - } - } - Projectile.rotation += MathHelper.ToRadians(Projectile.velocity.Length()); - } public override void OnKill(int timeLeft) { //Dust @@ -49,7 +39,7 @@ namespace CalamityMod.Projectiles.Rogue Point result; if (WorldUtils.Find(Projectile.Top.ToTileCoordinates(), Searches.Chain((GenSearch)new Searches.Down(80), (GenCondition)new Conditions.IsSolid()), out result)) { - int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), result.ToVector2() * 16f, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, 2f, Projectile.owner); + int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), result.ToVector2() * 16f, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * .5f), 2f, Projectile.owner); if (proj.WithinBounds(Main.maxProjectiles)) Main.projectile[proj].Calamity().stealthStrike = Projectile.Calamity().stealthStrike; } diff --git a/Projectiles/Rogue/SulphuricNukesplosion.cs b/Projectiles/Rogue/SulphuricNukesplosion.cs index bbb053492d..5280cd8d07 100644 --- a/Projectiles/Rogue/SulphuricNukesplosion.cs +++ b/Projectiles/Rogue/SulphuricNukesplosion.cs @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.alpha = 255; Projectile.DamageType = RogueDamageClass.Instance; Projectile.usesIDStaticNPCImmunity = true; - Projectile.idStaticNPCHitCooldown = 11; + Projectile.idStaticNPCHitCooldown = 15; } public override bool PreAI() From 9727338309033bd6dfa96a33f4ee4a6943a7b997 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sat, 23 Mar 2024 23:43:48 -0700 Subject: [PATCH 04/32] A couple more balance changes --- Items/Weapons/Magic/SkyGlaze.cs | 2 +- Items/Weapons/Ranged/Pumpler.cs | 2 +- Items/Weapons/Summon/StarspawnHelixStaff.cs | 2 +- Projectiles/Ranged/PumplerGrenade.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Magic/SkyGlaze.cs b/Items/Weapons/Magic/SkyGlaze.cs index b018d02c42..446da2556d 100644 --- a/Items/Weapons/Magic/SkyGlaze.cs +++ b/Items/Weapons/Magic/SkyGlaze.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 52; Item.height = 74; - Item.damage = 10; + Item.damage = 8; Item.DamageType = DamageClass.Magic; Item.mana = 8; Item.useTime = 25; diff --git a/Items/Weapons/Ranged/Pumpler.cs b/Items/Weapons/Ranged/Pumpler.cs index 9c65c3178d..d8c742135b 100644 --- a/Items/Weapons/Ranged/Pumpler.cs +++ b/Items/Weapons/Ranged/Pumpler.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 72; Item.height = 34; - Item.damage = 24; + Item.damage = 26; Item.DamageType = DamageClass.Ranged; Item.useTime = 30; Item.useAnimation = 30; diff --git a/Items/Weapons/Summon/StarspawnHelixStaff.cs b/Items/Weapons/Summon/StarspawnHelixStaff.cs index c05cfc4806..239b6eba42 100644 --- a/Items/Weapons/Summon/StarspawnHelixStaff.cs +++ b/Items/Weapons/Summon/StarspawnHelixStaff.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.width = 54; Item.height = 52; - Item.damage = 75; + Item.damage = 103; Item.knockBack = 1.25f; Item.mana = 10; diff --git a/Projectiles/Ranged/PumplerGrenade.cs b/Projectiles/Ranged/PumplerGrenade.cs index f94b702925..04ff44cbea 100644 --- a/Projectiles/Ranged/PumplerGrenade.cs +++ b/Projectiles/Ranged/PumplerGrenade.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Projectiles.Ranged { SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); - int size = NPCHit ? 50 : 70; //Bigger explosion if no npc is hit + int size = NPCHit ? 60 : 90; //Bigger explosion if no npc is hit Projectile.scale = (size / (float)Projectile.height) * Projectile.scale; Projectile.position -= Vector2.One * (size - Projectile.width) * 0.5f; From e225474aee9eaba9d4c972c251910efff51e662e Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Sun, 24 Mar 2024 00:25:50 -0700 Subject: [PATCH 05/32] cosguard glow fix --- NPCs/DevourerofGods/CosmicGuardianHead.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/DevourerofGods/CosmicGuardianHead.cs b/NPCs/DevourerofGods/CosmicGuardianHead.cs index aea729dc4f..a87e7a8763 100644 --- a/NPCs/DevourerofGods/CosmicGuardianHead.cs +++ b/NPCs/DevourerofGods/CosmicGuardianHead.cs @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.DevourerofGods if (!Main.dedServ) { GlowTexture = ModContent.Request(Texture + "Glow", AssetRequestMode.AsyncLoad); - GlowTexture = ModContent.Request(Texture + "Glow2", AssetRequestMode.AsyncLoad); + GlowTexture2 = ModContent.Request(Texture + "Glow2", AssetRequestMode.AsyncLoad); } } From bfe71df651fb0ed6194349c2fe6d9eabd033f673 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 24 Mar 2024 08:00:35 -0500 Subject: [PATCH 06/32] 1 - Reduced Giant Shell defense from 10 to 6 because it giving 10 so early is crazy. 2 - Made Exalted Oathblade useable. 3 - Reduced Rev+ Empress of Light post-charge slow down and wait time. 4 - Made Rev+ Golem inferno fireballs and explosions have yellow fire instead of orange so that they can be distinguished from Inferno Fork projectiles. 5 - Removed some leftover code in Darklight Greatsword's projectiles. --- Items/Accessories/GiantShell.cs | 2 +- Items/Weapons/Melee/ExaltedOathblade.cs | 7 +- .../Bosses/EmpressofLightAI.cs | 6 +- NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs | 7 +- Projectiles/CalamityGlobalProjectile.cs | 100 +++++++++++++++++- Projectiles/Melee/DarkBeam.cs | 1 - .../Melee/ForbiddenOathbladeProjectile.cs | 56 ++++++++-- Projectiles/Melee/LightBeam.cs | 1 - 8 files changed, 158 insertions(+), 22 deletions(-) diff --git a/Items/Accessories/GiantShell.cs b/Items/Accessories/GiantShell.cs index 9212793e68..897a547e0c 100644 --- a/Items/Accessories/GiantShell.cs +++ b/Items/Accessories/GiantShell.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories { Item.width = 30; Item.height = 28; - Item.defense = 10; + Item.defense = 6; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; Item.accessory = true; diff --git a/Items/Weapons/Melee/ExaltedOathblade.cs b/Items/Weapons/Melee/ExaltedOathblade.cs index e89b2d8a86..5f5732f244 100644 --- a/Items/Weapons/Melee/ExaltedOathblade.cs +++ b/Items/Weapons/Melee/ExaltedOathblade.cs @@ -15,6 +15,9 @@ namespace CalamityMod.Items.Weapons.Melee public class ExaltedOathblade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; + + internal const float ShootSpeed = 3f; + public override void SetDefaults() { Item.width = 88; @@ -31,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.value = CalamityGlobalItem.Rarity8BuyPrice; Item.rare = ItemRarityID.Yellow; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 3f; + Item.shootSpeed = ShootSpeed; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) @@ -40,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee for (int i = -index; i <= index; i += index) { Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i)); - Projectile.NewProjectile(source, position, perturbedSpeed, type, damage / 2, knockback, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(source, position, perturbedSpeed, type, damage / 2, knockback, player.whoAmI); } return false; } diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs index 9e994d0e04..6124306f68 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EmpressofLightAI.cs @@ -866,6 +866,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float chargeGateValue = 40f; float playChargeSoundTime = 20f; float chargeDuration = phase3 ? 40f : 50f; + float slowDownTime = 30f; + float totalPhaseTime = chargeGateValue + chargeDuration + slowDownTime; float chargeStartDistance = phase3 ? 1000f : 800f; float chargeVelocity = phase3 ? 100f : 70f; float chargeAcceleration = phase3 ? 0.1f : 0.07f; @@ -947,8 +949,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } npc.ai[1] += 1f; - extraPhaseTime = (dayTimeEnrage ? 48f : 96f) * lessTimeSpentPerPhaseMultiplier; - if (npc.ai[1] >= 150f + extraPhaseTime) + extraPhaseTime = (dayTimeEnrage ? 24f : 48f) * lessTimeSpentPerPhaseMultiplier; + if (npc.ai[1] >= totalPhaseTime + extraPhaseTime) { npc.ai[0] = 1f; npc.ai[1] = 0f; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs index aaeb710781..e8bf57f8e3 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/GolemAI.cs @@ -1217,12 +1217,13 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses int projectileType = (phase3 || masterMode) ? ProjectileID.InfernoHostileBolt : ProjectileID.Fireball; int damage = npc.GetProjectileDamage(projectileType); - int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), freeHeadCenter.X, freeHeadCenter.Y, freeHeadTargetX, freeHeadTargetY, projectileType, damage, 0f, Main.myPlayer); + float ai0 = projectileType == ProjectileID.InfernoHostileBolt ? Main.player[npc.target].Center.X : 0f; + float ai1 = projectileType == ProjectileID.InfernoHostileBolt ? Main.player[npc.target].Center.Y : 0f; + float ai2 = projectileType == ProjectileID.InfernoHostileBolt ? 1f : 0f; + int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), freeHeadCenter.X, freeHeadCenter.Y, freeHeadTargetX, freeHeadTargetY, projectileType, damage, 0f, Main.myPlayer, ai0, ai1, ai2); if (projectileType == ProjectileID.InfernoHostileBolt) { Main.projectile[proj].timeLeft = 300; - Main.projectile[proj].ai[0] = Main.player[npc.target].Center.X; - Main.projectile[proj].ai[1] = Main.player[npc.target].Center.Y; Main.projectile[proj].netUpdate = true; } else diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index d17474650f..d21dd73e78 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2589,6 +2589,91 @@ namespace CalamityMod.Projectiles return false; } + else if (projectile.type == ProjectileID.InfernoHostileBolt && projectile.ai[2] > 0f) + { + if (projectile.localAI[0] == 0f) + { + SoundEngine.PlaySound(SoundID.Item20, projectile.position); + projectile.localAI[0] += 1f; + } + + bool killX = false; + bool killY = false; + if (projectile.velocity.X < 0f && projectile.position.X < projectile.ai[0]) + killX = true; + + if (projectile.velocity.X > 0f && projectile.position.X > projectile.ai[0]) + killX = true; + + if (projectile.velocity.Y < 0f && projectile.position.Y < projectile.ai[1]) + killY = true; + + if (projectile.velocity.Y > 0f && projectile.position.Y > projectile.ai[1]) + killY = true; + + if (killX && killY) + projectile.Kill(); + + for (int i = 0; i < 10; i++) + { + int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, DustID.IchorTorch, projectile.velocity.X * 0.2f, projectile.velocity.Y * 0.2f, 100, default, 1.6f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity *= 0.3f; + Main.dust[dust].velocity += projectile.velocity * 0.1f; + if (Main.getGoodWorld) + Main.dust[dust].noLight = true; + } + + return false; + } + + else if (projectile.type == ProjectileID.InfernoHostileBlast && projectile.ai[2] > 0f) + { + if (projectile.localAI[0] == 0f) + { + SoundEngine.PlaySound(SoundID.Item74, projectile.position); + projectile.localAI[0] += 1f; + } + + projectile.ai[0] += 1f; + + float totalDust = 25f; + if (projectile.ai[0] > 540f) + totalDust -= (projectile.ai[0] - 180f) / 2f; + + if (totalDust <= 0f) + { + totalDust = 0f; + projectile.Kill(); + } + + float maxDustVelocityX = 10f; + float maxDustVelocityY = 10f; + float minDustSpeed = 3f; + float maxDustSpeed = 8f; + + for (int i = 0; i < (int)totalDust; i++) + { + float dustVelocityX = Main.rand.NextFloat(-maxDustVelocityX, maxDustVelocityX); + float dustVelocityY = Main.rand.NextFloat(-maxDustVelocityY, maxDustVelocityY); + float randomDustSpeed = Main.rand.NextFloat(minDustSpeed, maxDustSpeed); + float velocityLength = (float)Math.Sqrt(dustVelocityX * dustVelocityX + dustVelocityY * dustVelocityY); + velocityLength = randomDustSpeed / velocityLength; + dustVelocityX *= velocityLength; + dustVelocityY *= velocityLength; + Vector2 dustVelocity = new Vector2(dustVelocityX, dustVelocityY); + Vector2 dustPosition = projectile.Center + new Vector2(Main.rand.NextFloat(-10f, 10f), Main.rand.NextFloat(-10f, 10f)); + int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, DustID.IchorTorch, 0f, 0f, 100, default, 1.8f); + Main.dust[dust].noGravity = true; + Main.dust[dust].position = dustPosition; + Main.dust[dust].velocity = dustVelocity; + if (Main.getGoodWorld) + Main.dust[dust].noLight = true; + } + + return false; + } + else if (projectile.type == ProjectileID.AncientDoomProjectile) { if (projectile.velocity.Length() < 8f) @@ -3139,8 +3224,8 @@ namespace CalamityMod.Projectiles // ai[1] being set to 1 is done only by the Calamity usages of these projectiles in Skeletron and Skeletron Prime boss fights bool isSkeletronBossProjectile = (projectile.type == ProjectileID.RocketSkeleton || projectile.type == ProjectileID.Shadowflames) && projectile.ai[1] > 0f; - // These projectiles will not be buffed if Golem is alive - bool isGolemBossProjectile = NPC.golemBoss > 0 && (projectile.type == ProjectileID.InfernoHostileBolt || projectile.type == ProjectileID.InfernoHostileBlast); + // These projectiles will not be buffed if Golem fires them + bool isGolemBossProjectile = (projectile.type == ProjectileID.InfernoHostileBolt || projectile.type == ProjectileID.InfernoHostileBlast) && projectile.ai[2] > 0f; if (!isSkeletronBossProjectile && !isGolemBossProjectile) projectile.damage += 30; @@ -4168,6 +4253,7 @@ namespace CalamityMod.Projectiles { bool masterRevSkeletronPrimeBomb = projectile.type == ProjectileID.BombSkeletronPrime && projectile.ai[0] < 0f && (Main.masterMode || BossRushEvent.BossRushActive); bool revQueenBeeBeeHive = projectile.type == ProjectileID.BeeHive && (CalamityWorld.revenge || BossRushEvent.BossRushActive) && (projectile.ai[2] == 1f || CalamityWorld.death) && projectile.wet; + bool revGolemInferno = projectile.type == ProjectileID.InfernoHostileBolt && projectile.ai[2] > 0f; if (revQueenBeeBeeHive) { @@ -4296,9 +4382,17 @@ namespace CalamityMod.Projectiles if (Main.netMode != NetmodeID.SinglePlayer) NetMessage.SendData(MessageID.KillProjectile, -1, -1, null, projectile.identity, projectile.owner); } + + else if (revGolemInferno) + { + Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileID.InfernoHostileBlast, projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f, projectile.ai[2]); + + if (Main.netMode != NetmodeID.SinglePlayer) + NetMessage.SendData(MessageID.KillProjectile, -1, -1, null, projectile.identity, projectile.owner); + } } - if (masterRevSkeletronPrimeBomb || revQueenBeeBeeHive) + if (masterRevSkeletronPrimeBomb || revQueenBeeBeeHive || revGolemInferno) { projectile.active = false; return false; diff --git a/Projectiles/Melee/DarkBeam.cs b/Projectiles/Melee/DarkBeam.cs index 2fbff0e895..892b90beb5 100644 --- a/Projectiles/Melee/DarkBeam.cs +++ b/Projectiles/Melee/DarkBeam.cs @@ -31,7 +31,6 @@ namespace CalamityMod.Projectiles.Melee { Projectile.width = 36; Projectile.height = 36; - AIType = ProjectileID.DeathSickle; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.DamageType = DamageClass.Melee; diff --git a/Projectiles/Melee/ForbiddenOathbladeProjectile.cs b/Projectiles/Melee/ForbiddenOathbladeProjectile.cs index 65bd2a9e57..638be16b0c 100644 --- a/Projectiles/Melee/ForbiddenOathbladeProjectile.cs +++ b/Projectiles/Melee/ForbiddenOathbladeProjectile.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Items.Weapons.Melee; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -8,6 +9,15 @@ namespace CalamityMod.Projectiles.Melee public class ForbiddenOathbladeProjectile : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Melee"; + + private const float MaxVelocity = ExaltedOathblade.ShootSpeed * 4f; + + private const int FadeOutTime = 85; + + private const int TimeLeft = 435 + FadeOutTime; + + private const int Alpha = 100; + public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10; @@ -18,23 +28,51 @@ namespace CalamityMod.Projectiles.Melee { Projectile.width = 46; Projectile.height = 46; - Projectile.aiStyle = ProjAIStyleID.Sickle; - Projectile.alpha = 100; + Projectile.alpha = Alpha; + Projectile.timeLeft = TimeLeft; + Projectile.ignoreWater = true; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; - Projectile.tileCollide = true; Projectile.penetrate = 3; + Projectile.MaxUpdates = 2; Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 20; - AIType = ProjectileID.DemonScythe; + Projectile.localNPCHitCooldown = 20 * Projectile.MaxUpdates; } public override void AI() { - Lighting.AddLight(Projectile.Center, 0.35f, 0f, 0.35f); + float alphaLightScale = Projectile.alpha / (float)Alpha; + Lighting.AddLight(Projectile.Center, 0.5f * alphaLightScale, 0f, 0.5f * alphaLightScale); - if (Main.rand.NextBool(3)) - Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.ShadowbeamStaff, Projectile.velocity.X * 0.25f, Projectile.velocity.Y * 0.25f); + if (Projectile.timeLeft > FadeOutTime) + { + if (Projectile.velocity.Length() < MaxVelocity) + Projectile.velocity *= 1.03f; + } + else + Projectile.velocity *= 0.95f; + + if (Projectile.velocity.X < 0f) + Projectile.spriteDirection = -1; + + Projectile.rotation += Projectile.direction * 0.025f; + if (Projectile.timeLeft > FadeOutTime) + Projectile.rotation += Projectile.direction * 0.25f; + else + Projectile.rotation += Projectile.direction * 0.25f * (Projectile.timeLeft / (float)FadeOutTime); + } + + public override Color? GetAlpha(Color lightColor) + { + if (Projectile.timeLeft < FadeOutTime) + { + byte b2 = (byte)(Projectile.timeLeft * 3); + byte a2 = (byte)(Alpha * ((float)b2 / byte.MaxValue)); + Projectile.alpha = a2; + return new Color(b2, b2, b2, Projectile.alpha); + } + Projectile.alpha = Alpha; + return new Color(byte.MaxValue, byte.MaxValue, byte.MaxValue, Projectile.alpha); } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) diff --git a/Projectiles/Melee/LightBeam.cs b/Projectiles/Melee/LightBeam.cs index 5275b6a665..7cda4ee00d 100644 --- a/Projectiles/Melee/LightBeam.cs +++ b/Projectiles/Melee/LightBeam.cs @@ -31,7 +31,6 @@ namespace CalamityMod.Projectiles.Melee { Projectile.width = 36; Projectile.height = 36; - AIType = ProjectileID.DeathSickle; Projectile.friendly = true; Projectile.ignoreWater = true; Projectile.DamageType = DamageClass.Melee; From 3998491056681c4c18224fef8182fbaa25fb44b2 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 10:53:10 -0400 Subject: [PATCH 07/32] Golem's inferno bolts now use spark particles so that you can actually see them if you hit the dust cap Plus further PBG velocity tweaks while spawning minions --- .../PlaguebringerGoliath.cs | 4 ++-- Projectiles/CalamityGlobalProjectile.cs | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 3ee9efa048..6967d320cc 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -1168,8 +1168,8 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath private void Movement(float distanceAboveTarget, Player player, float enrageScale) { - float acceleration = (NPC.ai[0] == 1f || NPC.ai[0] == 5f) ? 0.28f : 0.48f; - float velocity = (NPC.ai[0] == 1f || NPC.ai[0] == 5f) ? 16f : 24f; + float acceleration = (NPC.ai[0] == 1f || NPC.ai[0] == 5f) ? 0.24f : 0.48f; // Reduce acceleration while spawning minions + float velocity = (NPC.ai[0] == 1f || NPC.ai[0] == 5f) ? 12f : (NPC.ai[0] == 2f ? 18f : 24f); // Reduce velocity while preparing to spawn minions and spawning minions acceleration *= 0.5f * enrageScale + 1f; velocity *= 1f + enrageScale * 0.5f; Vector2 hoverDestination = player.Center - Vector2.UnitY * distanceAboveTarget; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index d21dd73e78..1aba4e3cef 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2637,7 +2637,7 @@ namespace CalamityMod.Projectiles projectile.ai[0] += 1f; - float totalDust = 25f; + float totalDust = 20f; if (projectile.ai[0] > 540f) totalDust -= (projectile.ai[0] - 180f) / 2f; @@ -2671,6 +2671,22 @@ namespace CalamityMod.Projectiles Main.dust[dust].noLight = true; } + float maxSparkVelocityX = 10f; + float maxSparkVelocityY = 10f; + float minSparkSpeed = 3f; + float maxSparkSpeed = 7f; + + float sparkVelocityX = Main.rand.NextFloat(-maxSparkVelocityX, maxSparkVelocityX); + float sparkVelocityY = Main.rand.NextFloat(-maxSparkVelocityY, maxSparkVelocityY); + float randSparkSpeed = Main.rand.NextFloat(minSparkSpeed, maxSparkSpeed); + float sparkLength = (float)Math.Sqrt(sparkVelocityX * sparkVelocityX + sparkVelocityY * sparkVelocityY); + sparkLength = randSparkSpeed / sparkLength; + sparkVelocityX *= sparkLength; + sparkVelocityY *= sparkLength; + + Particle theSpark = new AltSparkParticle(projectile.Center, new Vector2(sparkVelocityX, sparkVelocityY), false, 40, 1f, new Color(255, 255, 100)); + GeneralParticleHandler.SpawnParticle(theSpark); + return false; } From 1dcdfceb2a5187ead2ece83bcf969302ea8ab32c Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 12:41:43 -0400 Subject: [PATCH 08/32] Cryogen no longer insta-charges starting phase 6 Small Death Valley Duster nerf too --- Items/Weapons/Magic/DeathValleyDuster.cs | 2 +- NPCs/Cryogen/Cryogen.cs | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Items/Weapons/Magic/DeathValleyDuster.cs b/Items/Weapons/Magic/DeathValleyDuster.cs index 224d4f86a6..e9e5cde0a1 100644 --- a/Items/Weapons/Magic/DeathValleyDuster.cs +++ b/Items/Weapons/Magic/DeathValleyDuster.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 36; Item.height = 40; - Item.damage = 87; + Item.damage = 83; Item.DamageType = DamageClass.Magic; Item.mana = 9; Item.useTime = 25; diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index d7314cc063..1d4d914f94 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -942,7 +942,7 @@ Block: { NPC.TargetClosest(); NPC.ai[0] = 4f; - NPC.ai[1] = 0f; + NPC.ai[1] = 120f; NPC.ai[3] = 0f; NPC.localAI[0] = 0f; NPC.localAI[2] = 0f; @@ -972,7 +972,7 @@ Block: if (phase6) { - if (NPC.ai[1] == 60f) + if (NPC.ai[1] == 60f) // Spawn homing ice blasts on charge { NPC.velocity = Vector2.Normalize(player.Center - NPC.Center) * (18f + enrageScale * 2f); @@ -1011,7 +1011,7 @@ Block: } NPC.ai[1] -= 1f; - if (NPC.ai[1] <= 0f) + if (NPC.ai[1] <= 0f) // Set the next charge, or switch back to floating above the player { NPC.ai[3] += 1f; NPC.TargetClosest(); @@ -1027,12 +1027,17 @@ Block: NPC.rotation = NPC.velocity.X * 0.1f; } - else if (NPC.ai[1] <= 15f) + else if (NPC.ai[1] <= 15f) // Slow down in preparation for the next charge { NPC.velocity *= 0.95f; NPC.rotation = NPC.velocity.X * 0.15f; } - else + else if (NPC.ai[1] > 60f) // Only used for when phase 6 first starts to prevent insta-charges + { + NPC.velocity *= 0.98f; + NPC.rotation = NPC.velocity.X * 0.15f; + } + else // Charge { // Set damage NPC.damage = NPC.defDamage; From 860cb5d373b59c557acc60449196904c48aa4950 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 13:18:58 -0400 Subject: [PATCH 09/32] Actually Cryogen go spinny --- NPCs/Cryogen/Cryogen.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 1d4d914f94..ad55d8f82a 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -942,7 +942,7 @@ Block: { NPC.TargetClosest(); NPC.ai[0] = 4f; - NPC.ai[1] = 120f; + NPC.ai[1] = 150f; NPC.ai[3] = 0f; NPC.localAI[0] = 0f; NPC.localAI[2] = 0f; @@ -1035,7 +1035,7 @@ Block: else if (NPC.ai[1] > 60f) // Only used for when phase 6 first starts to prevent insta-charges { NPC.velocity *= 0.98f; - NPC.rotation = NPC.velocity.X * 0.15f; + NPC.rotation += (150f - NPC.ai[1]) * 0.01f * NPC.direction; } else // Charge { From 600bb4b6d42eed171e6861eea413f46336c83202 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 16:04:01 -0400 Subject: [PATCH 10/32] Exoblade and Miracle Matter resprites --- Items/Materials/MiracleMatter.png | Bin 955 -> 2002 bytes Items/Weapons/Melee/Exoblade.png | Bin 3637 -> 4812 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/Items/Materials/MiracleMatter.png b/Items/Materials/MiracleMatter.png index a313570748270e9dad28d5e9012ae213825fe9a6..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YwEgz^q6JQ>9`IS1Dc>+g~Mn*qYOSX*UZEIEBLU)tZRoU z_wr9m4VK0Sf7?yF(L3M;ivGeUN^+iiDyYrL6$EAWo(Sj6mle){wZ5%v?TZ(-Kda;{ zbHT9t4Sxl7uW#0lGrI$|f_9Ba?M;POm0ieTEGA#jcllBc1@Ct^lfdnj!PISET=z=x zQC*mvKgxQ@SZQj?!KTJK1Tb&>TpKIFHI33qRge8DTPW{#Ufs_RQx6*B8v^0+N@3fB z$#hrA>3wL!x}TO zsu9EUH*-8B@7HbpmXAx=FJZJC8dVZ+g7alu*7t~x!+EplW|`ud=Vl6MqHi++$9Ewp z8bhIXIAMg5YNG!JWpY9(gXurIFHW5|V7T0z*FfCFpm?lo-`CzU&Q{36gkH##v$y

M6B^dLJv+8`T)Vl$`kP-f~#C`2|0`;a|V-Z9ZBpdqZk_ zIEdxH%_WC#5Tt>pH18a-r&_hTPKFT*u+1l0DhSGE=D8{jn?(Om{v+qsWNH_UCZ0I>Ce9Vg!)#yGF57uGTgvB?=x~5&!WnbRJG;r^yK0!|5hzJX}mx zzeHvnE4Cj6&@$pWrGG0#LW*~zJK1l|VejplSs^nBNwV*%MX;2xpe_wnUb*cr>(P2f3AKo(OcE|u zTb9jne0;?_SJd?cRVU;0-8jI$O0o{tGqoy785~EnB~SVUBb&?T!?}r42M=d5SWGx= zentXmyE{^^%&#qe^~-X2bfkY2{-4sT*B?|I+QGscF6X z{FA)jS^gk3cThtKm+x^^NW7w4>>52h%8sR!p4)=fghLdqtKi~rPW|*GL|axe+4e~U x>U0rtdG$5Ze?H$?MX~|E_E14SPRCtcRgA%F7&w%_4v*`~$%*D>S3+fS{tLN$S4jW> From b54bde5884838c642d63ca86bed2d5dd25b49a70 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 24 Mar 2024 13:17:50 -0700 Subject: [PATCH 11/32] Small Tarragon Melee buff --- Items/Armor/Tarragon/TarragonHeadMelee.cs | 2 +- .../en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Armor/Tarragon/TarragonHeadMelee.cs b/Items/Armor/Tarragon/TarragonHeadMelee.cs index 4a7205df73..685fa7c3dc 100644 --- a/Items/Armor/Tarragon/TarragonHeadMelee.cs +++ b/Items/Armor/Tarragon/TarragonHeadMelee.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Items.Armor.Tarragon public override void UpdateEquip(Player player) { - player.GetDamage() += 0.1f; + player.GetDamage() += 0.12f; player.GetCritChance() += 10; player.endurance += 0.1f; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson index 857dbe4a47..06272e4042 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Armor.PostMoonLord.hjson @@ -520,7 +520,7 @@ TarragonHeadMelee: { DisplayName: Tarragon Helm Tooltip: ''' - 10% increased melee damage and critical strike chance + 12% increased melee damage and critical strike chance 10% increased damage reduction ''' SetBonus: From 7d56c4d253e5bec9b8eb89cd02328c66a3f7c8e4 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 17:18:23 -0400 Subject: [PATCH 12/32] Exoblade's powerful slash gives lifesteal --- Projectiles/Melee/ExobladeProj.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Projectiles/Melee/ExobladeProj.cs b/Projectiles/Melee/ExobladeProj.cs index f8de42349d..98c38a9ffc 100644 --- a/Projectiles/Melee/ExobladeProj.cs +++ b/Projectiles/Melee/ExobladeProj.cs @@ -2,11 +2,13 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using CalamityMod.Balancing; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Dusts; using CalamityMod.Graphics.Primitives; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Particles; +using CalamityMod.Projectiles.Healing; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using ReLogic.Content; @@ -615,6 +617,12 @@ namespace CalamityMod.Projectiles.Melee int explosionDamage = (int)(Projectile.damage * Exoblade.ExplosionDamageFactor); Projectile.NewProjectile(Projectile.GetSource_FromAI(), target.Center, Vector2.Zero, ModContent.ProjectileType(), explosionDamage, 0f, Projectile.owner); } + + if (target.lifeMax <= 5 || Owner.lifeSteal <= 0) + return; + + int healAmt = (int)Math.Round(hit.Damage * 0.04); + CalamityGlobalProjectile.SpawnLifeStealProjectile(Projectile, Owner, healAmt, ModContent.ProjectileType(), BalancingConstants.LifeStealRange); } } From 1c23b2acc802f07acebf954d0e0ad0a6a91796ad Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 17:23:23 -0400 Subject: [PATCH 13/32] tooltippppppppppppp --- Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 0459789b5a..814cbf278e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -467,7 +467,8 @@ Exoblade: { Press to release multiple energy beams that home in on enemies and slice them on hit Press to dash in the direction of the cursor with the blade Enemy hits from the blade during the dash result in massive damage and a rebound - Press immediately after a rebound to perform a powerful slash that explodes on enemy hits + Press immediately after a rebound to perform a powerful slash + Powerful slashes are larger, heal you, and create a large explosion ''' } From a07a173b4446fb934091d015066b595b80df5313 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 24 Mar 2024 15:25:14 -0700 Subject: [PATCH 14/32] Speed Blaster shot visual fix --- Projectiles/Ranged/SpeedBlasterShot.cs | 133 +++++++++++++++++-------- 1 file changed, 94 insertions(+), 39 deletions(-) diff --git a/Projectiles/Ranged/SpeedBlasterShot.cs b/Projectiles/Ranged/SpeedBlasterShot.cs index 5a5d5f816b..d5258593dc 100644 --- a/Projectiles/Ranged/SpeedBlasterShot.cs +++ b/Projectiles/Ranged/SpeedBlasterShot.cs @@ -16,6 +16,8 @@ namespace CalamityMod.Projectiles.Ranged public bool DashShot => Projectile.ai[1] == 3f; // the big shot public bool PostDashShot => Projectile.ai[1] == 2f; // the higher velocity post dash shots + public Color MainColor; + public bool PostHit = false; public static readonly SoundStyle ShotImpact = new("CalamityMod/Sounds/Item/SplatshotImpact") { PitchVariance = 0.3f, Volume = 2.5f }; public static readonly SoundStyle ShotImpactBig = new("CalamityMod/Sounds/Item/SplatshotBigImpact") { PitchVariance = 0.3f, Volume = 4f }; @@ -30,25 +32,52 @@ namespace CalamityMod.Projectiles.Ranged { Projectile.width = Projectile.height = 14; Projectile.friendly = true; - Projectile.penetrate = 1; + Projectile.penetrate = -1; Projectile.MaxUpdates = 2; Projectile.timeLeft = 150 * Projectile.MaxUpdates; Projectile.DamageType = DamageClass.Ranged; Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; } public override void AI() { + if (PostHit) + { + Projectile.velocity = Projectile.velocity * 0.01f; + Projectile.scale *= 0.95f; + Projectile.tileCollide = false; + } + switch (Projectile.ai[0]) + { + case 0: + default: + MainColor = Color.Cyan; + break; + case 1: + MainColor = Color.Blue; + break; + case 2: + MainColor = Color.Magenta; + break; + case 3: + MainColor = Color.Lime; + break; + case 4: + MainColor = Color.Yellow; + break; + } + if (Projectile.ai[2] != 1f) { if (DashShot) { Projectile.scale = 2f; Projectile.penetrate = 4; - Projectile.MaxUpdates = 30; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = -1; - Projectile.timeLeft = 60 * Projectile.MaxUpdates; + Projectile.extraUpdates = 90; + Projectile.timeLeft = 120 * Projectile.extraUpdates; + Projectile.velocity *= 0.3f; } else if (PostDashShot) Projectile.MaxUpdates = 3; @@ -57,11 +86,14 @@ namespace CalamityMod.Projectiles.Ranged } Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; - Projectile.velocity *= (DashShot ? 1f : PostDashShot ? 0.985f : 0.97f); - Projectile.velocity.Y += (DashShot ? 0f : PostDashShot ? 0.15f : 0.25f); + if (!PostHit) + { + Projectile.velocity *= (DashShot ? 1f : PostDashShot ? 0.985f : 0.97f); + Projectile.velocity.Y += (DashShot ? 0f : PostDashShot ? 0.15f : 0.25f); + } Color ColorUsed = GetColor(Projectile.ai[0]); - if (Main.rand.NextBool(20) && !DashShot) + if (Main.rand.NextBool(20) && !DashShot && !PostHit) { Dust dust = Dust.NewDustPerfect(Projectile.Center, 192); dust.noLight = true; @@ -73,24 +105,26 @@ namespace CalamityMod.Projectiles.Ranged } if (DashShot) { - Dust dust2 = Dust.NewDustPerfect(Projectile.Center + new Vector2(Main.rand.Next(-5, 5), Main.rand.Next(-5, 5)), 279); - dust2.noLightEmittence = true; - dust2.noGravity = true; - dust2.scale = Main.rand.NextFloat(2.5f, 3.8f); - dust2.velocity = Vector2.Zero; - dust2.color = ColorUsed; - dust2.alpha = 15; - - for (int i = 0; i <= 2; i++) + Player Owner = Main.player[Projectile.owner]; + float targetDist = Vector2.Distance(Owner.Center, Projectile.Center); + if (targetDist < 1400f) { - Dust dust = Dust.NewDustPerfect(Projectile.Center, 192); - dust.noLight = true; - dust.noGravity = false; - dust.scale = Main.rand.NextFloat(1.3f, 1.5f); - dust.velocity = new Vector2(Main.rand.Next(-1, 1), Main.rand.Next(0, 8)).RotatedByRandom(MathHelper.ToRadians(10f)) * Main.rand.NextFloat(0.05f, 0.3f); - dust.color = ColorUsed; - dust.alpha = Main.rand.Next(145, 240); + GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center, -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 15, 1.35f, MainColor, true, false, false); + GeneralParticleHandler.SpawnParticle(spark); } + if (targetDist < 1400f && Main.rand.NextBool()) + { + GlowOrbParticle spark = new GlowOrbParticle(Projectile.Center + Projectile.velocity * Main.rand.NextFloat(-2f, 2f), -Projectile.velocity * Main.rand.NextFloat(-0.01f, 0.01f), false, 15, 1.35f, MainColor, true, false, false); + GeneralParticleHandler.SpawnParticle(spark); + } + + Dust dust = Dust.NewDustPerfect(Projectile.Center, 192); + dust.noLight = true; + dust.noGravity = false; + dust.scale = Main.rand.NextFloat(1.3f, 1.5f); + dust.velocity = new Vector2(Main.rand.Next(-1, 1), Main.rand.Next(0, 8)).RotatedByRandom(MathHelper.ToRadians(10f)) * Main.rand.NextFloat(0.05f, 0.3f); + dust.color = ColorUsed; + dust.alpha = Main.rand.Next(145, 240); } if (Projectile.timeLeft == 300 && DashShot) { @@ -118,6 +152,7 @@ namespace CalamityMod.Projectiles.Ranged } } + public override bool? CanHitNPC(NPC target) => !PostHit ? null : false; public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { Color ColorUsed = GetColor(Projectile.ai[0]); @@ -126,31 +161,43 @@ namespace CalamityMod.Projectiles.Ranged if (Projectile.numHits == 0) SoundEngine.PlaySound(ShotImpactBig, Projectile.position); + Vector2 BurstFXDirection = new Vector2(5, 0).RotatedByRandom(100); for (int i = 0; i < 2; i++) { - CritSpark spark = new CritSpark(Projectile.Center, Vector2.Zero, Color.White, ColorUsed, 5.5f, 7, 10f, 4.5f); + SparkParticle spark = new SparkParticle(Projectile.Center, (BurstFXDirection) * (i + 1), false, 7, 1.5f - i * 0.6f, MainColor * 0.8f); GeneralParticleHandler.SpawnParticle(spark); } + for (int i = 0; i < 2; i++) + { + SparkParticle spark = new SparkParticle(Projectile.Center, (-BurstFXDirection) * (i + 1), false, 7, 1.5f - i * 0.6f, MainColor * 0.8f); + GeneralParticleHandler.SpawnParticle(spark); + } + + Particle orb = new GenericBloom(Projectile.Center, Vector2.Zero, MainColor, 0.6f, 13, false); + GeneralParticleHandler.SpawnParticle(orb); + Particle orb2 = new GenericBloom(Projectile.Center, Vector2.Zero, Color.White, 0.5f, 12, false); + GeneralParticleHandler.SpawnParticle(orb2); + } + else + { + for (int i = 0; i <= 8; i++) + { + Dust dust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(7, 7), 192, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(20f)) * Main.rand.NextFloat(0.05f, 0.45f), 0, default, Main.rand.NextFloat(0.6f, 1.2f)); + dust.noLight = true; + dust.noGravity = false; + dust.color = GetColor(Projectile.ai[0]); + dust.alpha = 75; + } + Projectile.timeLeft = 15; + PostHit = true; } } - public override void OnKill(int timeLeft) + public override bool OnTileCollide(Vector2 oldVelocity) { - if (!DashShot) - SoundEngine.PlaySound(ShotImpact, Projectile.position); - - for (int i = 0; i <= 8; i++) - { - Dust dust = Dust.NewDustPerfect(Projectile.position, 192, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(20f)) * Main.rand.NextFloat(0.05f, 0.3f), 0, default, Main.rand.NextFloat(0.6f, 1.2f)); - dust.noLight = true; - dust.noGravity = false; - dust.color = GetColor(Projectile.ai[0]); - dust.alpha = 75; - } - for (int i = 0; i < 3; i++) { Vector2 paintPos = Projectile.Center + Main.rand.NextVector2Circular(12f, 12f) + (Projectile.velocity.SafeNormalize(Vector2.UnitY)).RotatedByRandom(MathHelper.ToRadians(30f)) * Main.rand.NextFloat(4f, 20f); - float paintSize = Main.rand.NextFloat(60f, 100f); + float paintSize = Main.rand.NextFloat(40f, 70f); switch (Projectile.ai[0]) { case 0: @@ -171,6 +218,14 @@ namespace CalamityMod.Projectiles.Ranged break; } } + Projectile.timeLeft = 15; + PostHit = true; + return false; + } + public override void OnKill(int timeLeft) + { + if (!DashShot) + SoundEngine.PlaySound(ShotImpact, Projectile.position); } public static Color GetColor(float type) => type == 0 ? Color.Aqua : type == 1 ? Color.Blue : type == 2 ? Color.Fuchsia : type == 3 ? Color.Lime : Color.Yellow; From 5aec23bcd8856234fee1a2dd2652f8743e6acf2d Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 24 Mar 2024 18:00:04 -0600 Subject: [PATCH 15/32] made Shredder's projectiles a bit faster to compensate for their loss of extra updates and generally feeling bad --- Items/Weapons/Ranged/Shredder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/Shredder.cs b/Items/Weapons/Ranged/Shredder.cs index a010c8b7aa..ee0c61e05f 100644 --- a/Items/Weapons/Ranged/Shredder.cs +++ b/Items/Weapons/Ranged/Shredder.cs @@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.UseSound = SoundID.Item31; Item.autoReuse = true; Item.shoot = ProjectileID.Bullet; - Item.shootSpeed = 5f; + Item.shootSpeed = 9f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; } From e32ad829cd103a68670483318cd28e350e161d61 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sun, 24 Mar 2024 18:04:22 -0600 Subject: [PATCH 16/32] Moved Crystal bullet balancing change to BalancingChangesManager instead of CalamityGlobalProjectile --- Balancing/BalancingChangesManager.cs | 5 +++++ Projectiles/CalamityGlobalProjectile.cs | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 0412e2bc37..218e42d8f1 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -62,6 +62,10 @@ namespace CalamityMod.Balancing UniversalBalancingChanges = new List() { + // 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)), @@ -76,6 +80,7 @@ namespace CalamityMod.Balancing // Nerf Spectre Mask set bonus projectiles by 30%. Do(new ProjectileSpecificRequirementBalancingRule(0.7f, SpectreMaskSetBonusFilter)), + }; NPCSpecificBalancingChanges = new List(); diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 1aba4e3cef..0b26471f96 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -3932,10 +3932,6 @@ namespace CalamityMod.Projectiles } } } - - //Crystal bullet projectiles deal 50% of the bullet's damage which is absurd in vanilla, this nerfs them to 27.5% - if (projectile.type == ProjectileID.CrystalShard) - modifiers.SourceDamage *= 0.55f; } #endregion From abbb6f3d384cbb5c025233561f4a128df5c6c0fd Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sun, 24 Mar 2024 21:18:28 -0400 Subject: [PATCH 17/32] Elysian Arrow slashes are predictive --- Projectiles/Ranged/ElysianArrowProj.cs | 6 +++++- Projectiles/Ranged/ElysianArrowRain.cs | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/ElysianArrowProj.cs b/Projectiles/Ranged/ElysianArrowProj.cs index 55b028dcc9..2e270fa644 100644 --- a/Projectiles/Ranged/ElysianArrowProj.cs +++ b/Projectiles/Ranged/ElysianArrowProj.cs @@ -51,7 +51,11 @@ namespace CalamityMod.Projectiles.Ranged Vector2 targetPosition = target == null ? Projectile.Center : target.Center; Vector2 spawnSpot = (target == null ? Projectile.Center : target.Center) + new Vector2(Main.rand.NextFloat(-450, 450), Main.rand.NextFloat(-750, -950)); - Vector2 velocity = (targetPosition - spawnSpot).SafeNormalize(Vector2.UnitX) * 20; + Vector2 velocity; + if (target == null) + velocity = (targetPosition - spawnSpot).SafeNormalize(Vector2.UnitX) * 20; + else + velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(spawnSpot, target, 20f, 7); if (targetDist < 1400f) { diff --git a/Projectiles/Ranged/ElysianArrowRain.cs b/Projectiles/Ranged/ElysianArrowRain.cs index 383d8415cf..7edeba7b57 100644 --- a/Projectiles/Ranged/ElysianArrowRain.cs +++ b/Projectiles/Ranged/ElysianArrowRain.cs @@ -126,7 +126,11 @@ namespace CalamityMod.Projectiles.Ranged Vector2 targetPosition = Projectile.numHits == 1 ? (target == null ? Projectile.Center : target.Center) : altSpawn; Vector2 spawnSpot = (Projectile.numHits == 1 ? (target == null ? Projectile.Center : target.Center) : altSpawn) + new Vector2(Main.rand.NextFloat(-450, 450), Main.rand.NextFloat(750, 950)); - Vector2 velocity = (targetPosition - spawnSpot).SafeNormalize(Vector2.UnitX) * 20; + Vector2 velocity; + if (target == null) + velocity = (targetPosition - spawnSpot).SafeNormalize(Vector2.UnitX) * 20; + else + velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(spawnSpot, target, 20f, 7); if (targetDist < 1400f) { From 65b625250b5461dd49992d725eb75bea62a8f6cb Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Sun, 24 Mar 2024 18:54:59 -0700 Subject: [PATCH 18/32] draete polishing --- Localization/en-US/Mods.CalamityMod.UI.hjson | 273 ++++++++++++++++-- .../CodebreakerUI.Communication.cs | 20 +- UI/DraedonSummoning/DraedonContactPanel.png | Bin 869 -> 1596 bytes UI/DraedonSummoning/DraedonDialogRegistry.cs | 56 +++- 4 files changed, 308 insertions(+), 41 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index ed549ccdf1..44d2a3bba7 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -110,7 +110,7 @@ Cooldowns: { SandsmokeBombActive: Sandsmoke Bomb Duration SandsmokeBombCooldown: Sandsmoke Bomb Cooldown SilvaRevive: Silva Revive Cooldown - SpeedBlasterBoost: Speed Blaster Boost + SpeedBlasterBoost: Speed Blaster Boost SpongeDurability: Sponge Barrier Durability SpongeRecharge: Sponge Barrier Recharge TarragonCloak: Tarragon Cloak Cooldown @@ -140,54 +140,275 @@ ArtemisApolloIcon: Artemis and Apollo, a pair of extremely persistent automatons // The code that interprets these strings will transform them. Communication: { WhoAreYou: { - Inquiry: Who are you? + Inquiry: Introduction Response: ''' - An ambitious question, if you are a philosopher. I will give only the facts.\n\n - I am not of this planet. I was born from machines. Or rather, I was... created. It may be misleading to say I was born.\n\n - The exact circumstances, I do not know. I do know that my first instance of awareness was that I was surrounded by a workshop.\n\n - All I have known since then was the act of creation and destruction. + I assumed that you would attempt to contact me again. Though I am normally not one for conversation, I remain quite intrigued by you.\n\n + + So, I will make an exception, on one condition: I must know that my words will not be wasted on you. To prove this, you must create something from exotechnology.\n\n + + I realize that the odds of you learning to use exotechnology within your lifetime is slim. For this reason, among others, I will upload blueprints for a copy of my forge to your ”Codebreaker”. With it, only your imagination will limit what you can create.\n\n + + If you complete this task, we will discuss more. ''' } - CalamitasBeforeDefeat: { - Inquiry: Calamitas - Response: The witch? She is a walking weapon. Such powerful magic in a living being was destined to be so. Look at yourself now. + WhoAreYouPart2: { + Inquiry: Introduction 2 + Response: + ''' + Excellent. I can tell that you have successfully taken advantage of the Exo Prisms. Before you waste your breath asking me how I know, Exo Prisms, along with many other parts of my machines, have tracking devices embedded within to both monitor my creations and prevent theft.\n\n + + Now that I know you will likely pay attention to what I have to say, I assume you have many questions. Ask, and I shall answer to the best of my ability. + ''' } - CalamitasAfterDefeat: { - Inquiry: Calamitas - Response: She has mellowed, I've noticed. For you creatures so burdened by emotion and guilt, I wonder now, how she manages to live with herself. + Origins: { + Inquiry: Your Origins + Response: + ''' + My first memories are that of awakening in a far away laboratory on the date of 11.19.1227. I was accompanied by another being, but unlike me, they were organic in nature. Upon examination, however, it was evident that they were no longer alive.\n\n + + Presumably, I was built by the laboratory’s former inhabitant, though I am unsure how they accomplished such a feat. From what I gathered, they were quite the prestigious inventor even by today’s standards. Several gadgets that were presumably of their own making were attached to their body, and the equipment in the lab was far more advanced than any I would find elsewhere.\n\n + + I may have no recollection of events prior to what I can only assume to be my activation, but even from the start, I knew well what my goal was: scientific advancement. In pursuit of this, I optimized, upgraded, and built upon both the laboratory and myself.\n\n + + At the date of 7.30.1385, as expansion of the laboratory became impractical, I chose to instead expand my horizons. I sent out remotely-piloted scoutbots to thoroughly survey the continent I was on, ignorant of how much attention a project such as that would draw if I was not properly prepared.\n\n + + In the following years, legends and rumors began to spread. Many began encountering roaming creatures made not of flesh and blood, but steel and oil. Some daring explorers who had the courage to follow the mechanical creatures laid eyes upon one of my several recon bodies.\n\n + + However, as the years passed, I became adept at carrying out such operations in a subtler manner. Slowly but surely, stories about my machines became rarer, my creations and I becoming nothing more than a simple myth. That is, until the Crusade began. + ''' + } + + Crusade: { + Inquiry: Role in the Crusade + Response: The crusade did not change my objective of creation and scientific advancement. Rather, I simply redirected what I focused on. + } + + Goals: { + Inquiry: Your Goals + Response: + ''' + My goal has been and will always be the advancement of science and technology, until I am decommissioned or reach the absolute ceiling of our universe. Even if I have shattered the limits imposed before, there is bound to be a moment in which nothing can be done to advance, though it is unlikely I will reach it by your lifetime.\n\n + + My objective isn’t to share my knowledge with the rest of the world, even if I am neutral about the repurposing of my old work. The only thing I truly care about is the ignorance others might have about the advancements of science. I do not tolerate misinformation and slander against my work.\n\n + + In terms of my next objective is to study and negate the Astral Infection, it proved to be a significant threat to me and my creations, and if I ever wish to venture outside of Terraria, I have to be prepared. Afterwards I wish to further understand the portal in the Dungeon so I can make more efficient methods of transportation.\n\n + + My final short term goal is to be able to harvest materials from the moon. With the Cosmic Titan culled, I can safely start experimenting with spatial transportation with minimal investment, which will be paramount to harvesting resources from nearby planets once this planet becomes too damaged; I do not wish to see it utterly devastated.\n\n + + My ultimate goal is to achieve every technological advancement possible in the universe. If my multiverse theory is correct, perhaps even further. I wish to continue creating, for as long as I can. That is my purpose. + ''' + } + + ExoMechs: { + Inquiry: The Exo Mechanical Trio + Response: + ''' + The zenith of my craft. The culmination of all I have ever accomplished. The result of over 660 years of research and scientific advancement. They are my magnum opus; a work of art. Simply calling them war machines would be an insult not just to me, but to them.\n\n + + The first to be both worked on and finished was Ares. Earlier models from XF-00 to XF-04 primarily focused on finding the most efficient combination of weaponry for it to wield, ranging from a replica of my own rifle to an improved Phaseslayer. Some even wielded a chainsaw. However, while its melee weaponry made it more deadly on its own, its current arms allow it greater synergy when paired with its siblings.\n\n + + The second one I began work on was Thanatos. Taking advantage of its size and uncountable lasers to overwhelm its opponents, few would be able to learn its weaknesses before it is too late.\n\n + + Although its exo-plating may look similar to its siblings, it is instead made in a similar fashion to the axe of Braelor. After analyzing microscopic shards of the axe that were chipped off in his battle with Yharim, I was able to synthetically recreate the method Silva used to create it via mixing countless elements in a near-perfect fashion to make something that rivals the durability of pure Auric metal. This gives Thanatos nigh-indestructible armor, though due to its extraordinary density, it cannot reach the speeds its brethren can.\n\n + + When designing Apollo, I found balance between my previous designs. It was fast and powerful, yet compact; it had no need for size. It was nearly perfect, though lacked the raw power of its brothers. I had no reason to worry about that, because Apollo was never meant to fight alone.\n\n + + Artemis. Apollo’s design was hard to build upon, but its sibling had all the improvements it needed. Quick, lethal, simple, powerful. I thought Ares the mightiest of them all, but Artemis dwarfed it. I have few words to describe it, other than perfect. I do not know how I could better its design, and that’s likely to be true for the foreseeable future.\n\n + + Of course, I thank you too. You were the fuel of this project that revolutionized the way I design machines. I am truly glad to have met you if only for the monumental achievement you provided me with. + ''' + } + + Exotech: { + Inquiry: What is Exotech? + Response: + ''' + Exotechnology stands alone as my greatest scientific advancement, unlocking a new echelon of potential in my machinery. The iteration you are most familiar with, the Exo Prisms, took a great deal of time to perfect, but I was greatly rewarded for my endeavors.\n\n + + The basis of the exotechnology stems from my own neural interface – essentially, it could operate as a technological replacement for the brain cells of organic life. This allows interfacing and communication with any form of technology, be it mundane or extravagant, as well as lightning fast processing of instructions, not unlike a cerebral network.\n\n + + The persistent issue that arose was the lack of a suitable method of power, but after experimentation with a plethora of different candidates, Ilmeran crystals – I believe you know them as “Sea Prisms” – finally gave me the results I sought. When integrated with exotechnology and transformed into Exo Prisms, they release a self-sustaining resonance of particles, powering themselves, and anything they are connected with, indefinitely.\n\n + + What I did not expect was the sheer abundance of energy they produce. This surplus of radiant energy allows Exo Prisms to power any machine, no matter how large or complex, so long as there are enough of them. In your case, they can serve to vastly enhance your arsenal. + ''' + } + + MiracleMatter: { + Inquiry: Miracle Matter + Response: + ''' + Is that really what you have chosen to name it? How nonsensical. There is nothing “miraculous” about what you hold in your hands; it is the culmination of decades of research and a testament to the truly unlimited potential of science. Though, since you were the one to be able to stabilize it, I suppose I will begrudgingly refer to it by that label.\n\n + + The particulate properties of Exo Prisms are capable of breaking down nearby components when exposed to enough external energy. You have already experienced this when fighting against my machines – the surge of energy from the battle caused some of the Exo Prisms within to actuate, melting down some of the internal components into an unstable form of this so-called Miracle Matter. This unstable resonance enhanced their attacks into a blight that shreds through anything, organic or otherwise.\n\n + + The various materials that you exposed to the exotic particles melted together in such a perfect way to create a stable substance; with the combined force of draconic wrath, the life essence of the planet, energies and spirits alike, and the strength of the cosmos, what you now possess has limitless potential.\n\n + + Hypothetically, your stabilized Miracle Matter should be able to unmake some batches of your weaponry and reshape their essence into something far more destructive, capable of annihilating any obstacle in your path. + ''' + } + + Forge: { + Inquiry: Your Forge + Response: + ''' + Yes, I mentioned the first time we communicated through your “Codebreaker” that I had other reasons for giving you the blueprints for a 1:1 replica of my personal forge than simply proving that you are worth my time to communicate with.\n\n + + Notably, I wish for you and Yharim to be on relatively even ground in your battle. Firstly, I wish to witness such a battle. Secondly, you are much too interesting for me to allow you to gamble your life at the hands of the Godseeker.\n\n + + Third and most importantly, I am interested in how society will react to the Godseeker’s defeat and how the world will unfold with such an event. It is not an easily replicable opportunity, which is why I wish you to win your duel. As much as I understand well about steel, my knowledge of flesh is limited.\n\n + + My forge is how I can help you achieve the height to match Yharim equally. Though you are already aware of how to utilize it, you may benefit from understanding its inner workings.\n\n + + My forge is mainly an atomic disassembler, it can reorganize the very fundamental blocks of our world into whatever shape you desire. It can also increase the atomic value of any material to create whatever you wish, though it still requires some stability: you cannot turn copper into mythril so easily.\n\n + + With enough effort you can essentially turn gold into cosmilite, though it’s far easier to simply ripe those from their sources. My forge should allow you to finetune elements into more practically applicable resources and to stabilize any shape you create, the possibilities for your craft are near endless. + ''' + } + + Yharim: { + Inquiry: Yharim + Response: + ''' + The Godseeker. He intrigues me almost as much as you do, both unpredictable catalysts of a new era. We first met not long after his Crusades started, when my radars signaled something approaching my base. I expected my defenses to stop him, but soon enough Yharim bursted through my door demanding an explanation as to why his soldiers were butchered by steel creatures while scouting near one of my bases.\n\n + + I explained the defense mechanisms and how it operated. He seemed to understand, even if he was clearly still angry. Soon after he asked for me to demonstrate how I and my machines operated, to which I obliged. He was perplexed: as I expected, I was centuries more advanced than any other engineer or scientist on the planet.\n\n + + He soon offered a position as his lead engineer and scientist, wishing my knowledge by his side during the battles that were to come. He explained his ideals and goals; though the resources offered were lacking, what caught my attention was the mention of a Dragon. Yharon is what convinced me to join his side: I would not pass up the opportunity to study such a specimen.\n\n + + He gave me freedom to work as I wished, though made it clear I could not force his men to anything. I accepted his terms, and soon my work began. Though we disagreed often early on, soon we understood how to better work with each other, and my aid was paramount for several of his victories throughout the entirety of the Crusade.\n\n + + Though I could not study Yharon as much as I wished, when my interest in him waned, opportunities kept opening. The Archmage’s school of magic, the Devourer’s realm, the Witch’s existence… The Crusades taught me I could progress much faster with external aid, even if it only served as inspiration. As my presence became clearer to the world, I stopped fearing their reception and embraced my spot as the world’s finest mind.\n\n + + Of course, me and Yharim parted ways after the Plague project. That was not the last time we saw each other however: not much after you appeared, he came to me to fine-tune his armor with Exo technology. Though I initially wished to test my technology’s limits with him, you proved to be a much better subject. + ''' + } + + Aerie: { + Inquiry: Dragon's Aerie + Response: + ''' + My knowledge of the Dragon Aerie is limited. Curiously, the Godseeker is very adamant about protecting it: in recent history, only he and Yharon have trod there, and neither were inclined to share details about it.\n\n + + Even if I dared to evoke Yharim's wrath, I cannot survey the Aerie. My attempts at locating the sky island have been fruitless despite having surveyed this world’s surface and skies many times over, and it certainly cannot be underground. Perhaps it simply exists outside of conventional space.\n\n + + Regardless, what I do know is that the Dragon Aerie was the sacred home of the Auric Dragons, where they would be laid to rest in preparation for their revival by Yharon, the Dragon of Rebirth. As the Auric Dragons’ revival on the Aerie was a commonly accepted fact even at the start of recorded history, the Aerie is certainly well over 2000 years old.\n\n + + Considering the extraordinary power of the Auric Dragons and the sanctity of the Dragon Aerie, I ponder - did the Aerie make the Auric Dragons powerful, or is the Aerie special because of their extended presence?\n\n + + Perhaps more importantly, what caused them to leave the safety of the Aerie even as their kind were being slain and their precious Auric souls were being taken? I eagerly await the uncovering of such mysteries. + ''' + } + + Calamitas: { + Inquiry: The Brimstone Witch + Response: + ''' + The Witch was an unexpected ally amidst the final stages of the Crusade. For most of its span I provided Yharim with the best assets, the Serpent being the only thing that inched close, but her firepower was unmatched.\n\n + + I took it as a chance to better my craft, a friendly competition if you will, also aiming to increase the effectiveness of the Witch’s unstable magic. The Archmage and I argued on how she should be raised, with Permafrost gaining her guard.\n\n + + Her existence was an enigma to me. My surveillance over Azafure never signaled such power, and a child could not hide it. I eventually traced it back to the Brimstone Elemental; the brand of magic was near identical.\n\n + + After the Incineration, I considered his experiment a failure, for he had failed to properly discipline her. Yharim reached me after the Witch’s departure and urged a replacement. I planned to engineer a clone of her, but first focused on my nanomachine project to better my understanding of the field.\n\n + + After parting ways with the Godseeker, I focused on other projects, as the clone project was no longer a priority. Roughly five years ago I decided to tackle it. The idea was simple: replicate her power and optimize its efficiency via body modifications.\n\n + + The project stopped once the clone showed no innate magic prowess. This did prove that the Witch’s power wasn’t natural, but with no means of tracking its source, I could not continue my project. Soon after, Calamitas broke into my lab and released the clone. It now had a fragment of her power, which I turned to analyzing.\n\n + + I understand now that the Archmage was right in discipline being the key to controlling such vast strength. Without such efforts, the clone went mad with even the comparatively weak magic given to her. I am still left with no answers as to where Calamitas’ power comes from, and I’m unsure if I will ever find them. + ''' + } + + Dog: { + Inquiry: The Devourer of Gods + Response: + ''' + The Nameless Serpent always drew my interest. In our world, nearby planets, and even in the Distortion, nothing resembled its body structure, genome or phylogenetic tree. I conducted rigorous studies in its nature, but I could never pinpoint a familiar.\n\n + + Many of its claims were also unfounded. Creating such a stable portal like the one in the Dungeon is a particularly absurd example, as none of its portals have ever been so stable, even with my aid. I tried calling him out on several of these, but the Godseeker never heard reason. \n\n + + The other serpent, I believe you call it the Storm Weaver. You likely heard from many sources that it is from the same species as the Devourer, but even a surface level inspection reveals it is not the case. Aside from the similar body shape, the skeleton is completely different, and the size tells all else needed: since it arrived many decades ago, the Weaver has not grown at all.\n\n + + Despite my issues with the Serpent, its assistance in the battlefield and with resources was welcome. I still make use of Cosmilite to this day for more basic machination and the development of various alloys, and truth be told, the Devourer never once let a God escape his grasp.\n\n + + Though the biggest mystery lies within how he consumed Godly Essence. The energy is not absorbed entirely, and readings of his internal workings proved it wasn’t stored inside him for other usage, but instead completely vanished. Unless he truly defied the laws of thermodynamics, which is most unlikely, the energy was transferred elsewhere. Where, I am not sure, and I doubt I ever will now that the Devourer has been culled. + ''' + } + + Distortion: { + Inquiry: Distortion + Response: + ''' + Despite my efforts when forging the Devourer's armor, I know little of the Distortion aside from basic facts.\n\n + + All inorganic material in it is extraordinarily old, with radiocarbon dating failing on all 116 samples collected. Given the formations that exist, it has at least existed for longer than life on this world, if not longer than this world itself. However, if my calculations are correct, it is not as old as the universe itself.\n\n + + Amongst all the lifeforms I analyzed, none seemed capable of opening portals, at most small fractures that lasted for few seconds. I have sought the source of the maker of the Dungeon’s rift for a long time; if I can learn how to open stable portals I may just revolutionize transportation and make the first step towards space travel.\n\n + + Despite most lifeforms displaying behavior remarkably similar to highly intelligent sentient creatures on our own planet, EEG and brain structure analysis revealed that very few lifeforms possess higher intelligence of their own. This analysis, along with observations of similar behavioral patterns between different species, leads me to theorize that a greater will is shared between life native to the Distortion. While my studies were unable to locate a potential source for this greater will, if it even exists physically, + ''' + } + + Mechs: { + Inquiry: The Mechanical Trio + Response: + ''' + The “Mechanical Trio”, as most call them, are what you annoyingly refer to as The Destroyer, Retinazer, Spazmatism and, though it pains me to call it this, “Skeletron Prime”. Though you are an intriguing individual, I question your naming capabilities. If you must know, their formal designations are HM-03, HSx-00, HSy-01, and HF-04 respectively. \n\n + + They were an intriguing start to my experimentation with engines of war. In search of inspiration, I turned to study of the gods and their near-unmatched power. While each deity wielded a unique worldly aspect, their might's primal source was invariably identical: the soul of an Auric Dragon.\n\n + + As acquiring an Auric soul was and still is unfeasible, experiments with regular souls soon began. I was originally discouraged upon learning that individual souls held insufficient power, but their energy generation when coalesced far surpassed initial expectations.\n\n + + Upon further research, I confirmed that a soul's strength lies in intense emotion and unwavering resolve. Given Yharim’s immense charisma and skill at evoking passion within the hearts of others, not only was finding a source of souls trivial, but many even directly consented for their souls to be used for my machines after their demise by enemy hands.\n\n + + Fueled by the stout loyalty of the Godseeker's fallen soldiers, my machines became fearsome. However, their source of strength proved to be a flaw, as the same will that gave them their might also made them volatile and imprecise. In my following projects, I sought to remove this imperfection from my designs. To fail is to learn, and to learn is to advance. + ''' } Plague: { Inquiry: The Plague Response: ''' - Fascinating, isn't it? I wasn't able to control it, unfortunately, but for science there is no such thing as failure as long as you record the results.\n\n - I knew the Astral Infection was capable of converting even machinery, but for nanotechnology I'd given it to react in kind, and begin to use the virus as a building block itself...\n\n - Marvelous. + I am aware that my nanomachine project plagues the jungle. Worry not: I created a failsafe in case this happened. I have no intent of causing such mass destruction. Little would be left to learn if it were to destroy everything.\n\n + + As you may be aware, my nanomachines communicate via radio signals. However, the exact signals fluctuate over time, as with the amount of signals constantly sent out through the sheer amount of nanomachines, deviation from intended output is inevitable. As a result, the nanomachines eventually become unable to communicate with each other, leading them to see all other nanomachines inside its host as a threat, effectively exterminating themselves. I admit that this feature was originally unintentional, though it is effective regardless.\n\n + + Perhaps you can tell that the creation of the “Plague”, as most of your kind simply refer to it as, was subject to countless trials during its development. Initially, the project began as a means to match the ever rising heights of power organic beings such as the Witch, Braelor, Statis, and Yharim himself were achieving.\n\n + + It was through the growth of such powerful beings, however, that made me come to a realization: there was no need for my machines to outpace organic life. Not when it could instead be improved upon. And so, my project evolved from a means of simply controlling and replacing life to enhancing it further.\n\n + + Though I was no longer shamefully ignorant of organic life’s potential, the path towards improving and modifying already existing life was one of trial and error. Even when I deemed that I had currently plateaued in the fields of cybernetics, biology, and nanotechnology, the limitations were evident.\n\n + + The most clear limitation was that the bodies of most of the creatures in the jungle could not handle their cybernetic enhancements. Even now, with my current technology, only the most powerful and durable creatures can cope with the cybernetic enhancements I wish to make to them. This was, of course, why I chose a Queen Bee to be the Plague’s host. Strong enough to survive the augmentations, but weak enough to be subdued reasonably, unlike a Dragonfolly. ''' } - SulphuricSea: { - Inquiry: The Sulphuric Sea + Astral: { + Inquiry: Astral Infection Response: ''' - Your concern for the utter destruction of the ecosystem is understandable, for you biological, and sentimental folk. However, nothing is irreparable or truly unrecreatable. Not even your sacred 'miracle of life'.\n\n - The sea simply exists now in a different state than what it once was, one that resulted out of convenience for my work.\n\n - Should I ever need to return to that sea? A pointless worry. I shall simply recreate it from the data I gathered, from the bedrock up. I would be a shame as a creator should I not be able to do that. + The Infection has intrigued me since its surge in this world. The Aureus model built for reconnaissance did not last even an hour inside it, but that only made my interest grow. Observing your trials I was able to understand why I failed: the lack of a thinking brain.\n\n + + My attempts at studying it on my own universally failed; a body was built for the task but the chassis fell short, even if my mind remained. I was still able to detonate, but that proved to me I had to rely on others for more rigorous studying. Even if some of the commissioned failed to return, those who did provided me with enough intel.\n\n + + The Infection is but one of the many reasons I stay here. Spatial hazards could very well cause significant resource loss, or even my end. Besides, probability points to no significant resources within many light years. I would gain nothing from taking leave.\n\n + + I am comfortable here, even if I plan to explore space one day. This planet has even given me an opportunity to prepare against the Infection. My next goal, now that I comfortably sit near the zenith of power, will be to create machinery capable of withstanding it. ''' } - TheTyrant: { - Inquiry: The Tyrant + Sulphur: { + Inquiry: Sulphurous Sea Response: ''' - My patron...\n - He is not someone I have spoken to in a very long time.\n\n - Is that such a surprise? He no longer required my services and I no longer needed his patronage. Many years ago now he withdrew himself to some secret hideaway. I suspect, to the grave of dragons he spoke of...\n\n - Should you locate him, I'll await the news of either his or your death. Perhaps I will collect the cadaver. + The state of the sea was in fact caused by me. The destruction of the ecosystem rallied several parties from Yharim’s army in protest, though it amounted to nothing more than a few betrayals. I acknowledge I could have been more careful with the disposal of my projects, but the new life that surged allowed for studies in the adaptation of life and their reactions to radiation.\n\n + + I regret my treatment of it for another reason: it instilled fear in the furthering of technology and its benefits, and drove several great minds off the field due to this. Even if they did not compare to me, claiming I can create all the world will ever need is wrong.\n\n + + I can prove science is not just destructive; if I ever have the need to, I could purify the waters or rebuild the sea entirely. If the world ever grows ignorant of what science can accomplish, it shall be my way of showing them what it is truly capable of, though such an undertaking is not needed as of now. ''' } } diff --git a/UI/DraedonSummoning/CodebreakerUI.Communication.cs b/UI/DraedonSummoning/CodebreakerUI.Communication.cs index 898817b3a0..988a374cce 100644 --- a/UI/DraedonSummoning/CodebreakerUI.Communication.cs +++ b/UI/DraedonSummoning/CodebreakerUI.Communication.cs @@ -297,7 +297,7 @@ namespace CalamityMod.UI.DraedonSummoning DisplayTextSelectionOptions(panelArea, panelScale); DisplayDialogHistory(panelArea, panelScale); if (OptionsTextOpacity > 0f && DraedonScreenStaticInterpolant <= 0f) - DrawExitButton(panelCenter + new Vector2(-16f, 138f) * GeneralScale, OptionsTextOpacity); + DrawExitButton(panelCenter + new Vector2(0f, 150f) * GeneralScale, OptionsTextOpacity); } public static void DisplayDraedonFacePanel(Vector2 panelCenter, Vector2 panelScale) @@ -306,7 +306,7 @@ namespace CalamityMod.UI.DraedonSummoning Texture2D iconTexture = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonIconBorder").Value; Texture2D iconTextureInner = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonIconBorderInner").Value; float draedonIconDrawInterpolant = Utils.GetLerpValue(0.51f, 0.36f, DraedonScreenStaticInterpolant, true); - Vector2 draedonIconDrawTopRight = panelCenter + new Vector2(-218f, -130f) * panelScale; + Vector2 draedonIconDrawTopRight = panelCenter + new Vector2(-204f, -125f) * panelScale; draedonIconDrawTopRight += new Vector2(24f, 4f) * panelScale; Vector2 draedonIconScale = panelScale * 0.5f; @@ -350,7 +350,7 @@ namespace CalamityMod.UI.DraedonSummoning // Draw the outline for the text selection options. float selectionOptionsDrawInterpolant = Utils.GetLerpValue(0.3f, 0f, DraedonScreenStaticInterpolant, true); Texture2D selectionOutline = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonSelectionOutline").Value; - Vector2 selectionCenter = panelArea.BottomLeft() - new Vector2(selectionOutline.Width * -0.5f - 24f, selectionOutline.Height * 0.5f + 24f) * panelScale; + Vector2 selectionCenter = panelArea.BottomLeft() - new Vector2(selectionOutline.Width * -0.5f - 42f, selectionOutline.Height * 0.5f + 13f) * panelScale; Rectangle selectionArea = Utils.CenteredRectangle(selectionCenter, selectionOutline.Size() * panelScale); Main.spriteBatch.Draw(selectionOutline, selectionCenter, null, Color.White * selectionOptionsDrawInterpolant, 0f, selectionOutline.Size() * 0.5f, panelScale, 0, 0f); @@ -394,7 +394,7 @@ namespace CalamityMod.UI.DraedonSummoning { // Skip/isolate the introduction text as needed. string inquiry = dialog.Inquiry; - if (!Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker && !DialogHistory.Any(d => d.Dialog == DialogOptions[0].Response)) + if (!Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker && !DialogOptions[0].HasBeenSeen) { if (inquiry != DialogOptions[0].Inquiry) continue; @@ -402,7 +402,15 @@ namespace CalamityMod.UI.DraedonSummoning while (DialogHistory.Count < 1) DialogHistory.Add(new(string.Empty, true)); } - else if (inquiry == DialogOptions[0].Inquiry) + else if (!DialogOptions[1].HasBeenSeen) + { + if (inquiry != DialogOptions[1].Inquiry) + continue; + + while (DialogHistory.Count < 1) + DialogHistory.Add(new(string.Empty, true)); + } + else if (inquiry == DialogOptions[0].Inquiry || inquiry == DialogOptions[1].Inquiry) continue; // Draw the text marker. @@ -509,7 +517,7 @@ namespace CalamityMod.UI.DraedonSummoning // Draw the outline for the dialog history. float dialogHistoryDrawInterpolant = Utils.GetLerpValue(0.3f, 0f, DraedonScreenStaticInterpolant, true); Texture2D dialogOutline = ModContent.Request("CalamityMod/UI/DraedonSummoning/DraedonDialogOutline").Value; - Vector2 selectionCenter = panelArea.TopRight() - new Vector2(dialogOutline.Width * 0.5f + 16f, dialogOutline.Height * -0.5f - 6.5f) * panelScale; + Vector2 selectionCenter = panelArea.TopRight() - new Vector2(dialogOutline.Width * 0.5f + 12f, dialogOutline.Height * -0.5f - 12f) * panelScale; Rectangle dialogArea = Utils.CenteredRectangle(selectionCenter, dialogOutline.Size() * panelScale); Main.spriteBatch.Draw(dialogOutline, selectionCenter, null, Color.White * dialogHistoryDrawInterpolant, 0f, dialogOutline.Size() * 0.5f, panelScale, 0, 0f); diff --git a/UI/DraedonSummoning/DraedonContactPanel.png b/UI/DraedonSummoning/DraedonContactPanel.png index 8a5e54519bced6ffb26671eab16d2b3e2fc49c43..35f722036b20a7f50a864425257b88a1f5cc3ea4 100644 GIT binary patch literal 1596 zcma)64@?th6hG3{stt5$MdO4vPKu5J)gTbCMT*x!SIU&30%{9Jheli-w8dO4ie_O2 zM(0!@lm6itf2L7EHdufP$TkcHOUIba_?JmYZ-SKSL1&BY?rL?@k!+WIx%(;g z@i-skrkxZ$8tq9PNq;kb*TD^CywBFU-F@}L!;f2Xvu+=(Pnb}wNlG)kT}sP@5~hlu z{M@U%`0h0>Od$8qEjE8U(ki~PBM8#nI^#MLMh!G~sl<24%1r2{WOOShuEg)^Af>q1 z7Yd=+ESB_37iv~MjV;w`A0FbA>Z-+yR$D=EY?G{WJA0LVm~GTnmiJ|T97qkULb{hZ zP94}kM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R-seRjp& rjoItBPX5gP{ib|n(CWDxuZe#-7$d !DownedBossSystem.downedCalamitas); + public static readonly DraedonDialogEntry WhoAreYouPart2 = CreateFromKey("WhoAreYouPart2"); - public static readonly DraedonDialogEntry CalamitasAfterHerDefeat = CreateFromKey("CalamitasAfterDefeat", () => DownedBossSystem.downedCalamitas); + public static readonly DraedonDialogEntry Origins = CreateFromKey("Origins"); - public static readonly DraedonDialogEntry Plague = CreateFromKey("Plague", () => DownedBossSystem.downedPlaguebringer); + public static readonly DraedonDialogEntry Crusade = CreateFromKey("Crusade"); - public static readonly DraedonDialogEntry SulphurousSea = CreateFromKey("SulphuricSea"); + public static readonly DraedonDialogEntry Goals = CreateFromKey("Goals"); - public static readonly DraedonDialogEntry TheTyrant = CreateFromKey("TheTyrant", () => DownedBossSystem.downedCalamitas); + public static readonly DraedonDialogEntry ExoMechs = CreateFromKey("ExoMechs"); + + public static readonly DraedonDialogEntry Exotech = CreateFromKey("Exotech"); + + public static readonly DraedonDialogEntry MiracleMatter = CreateFromKey("MiracleMatter"); + + public static readonly DraedonDialogEntry Forge = CreateFromKey("Forge"); + + public static readonly DraedonDialogEntry Yharim = CreateFromKey("Yharim"); + + public static readonly DraedonDialogEntry Aerie = CreateFromKey("Aerie"); + + public static readonly DraedonDialogEntry Calamitas = CreateFromKey("Calamitas"); + + public static readonly DraedonDialogEntry Dog = CreateFromKey("Dog"); + + public static readonly DraedonDialogEntry Distortion = CreateFromKey("Distortion"); + + public static readonly DraedonDialogEntry Mechs = CreateFromKey("Mechs"); + + public static readonly DraedonDialogEntry Plague = CreateFromKey("Plague"); + + public static readonly DraedonDialogEntry Astral = CreateFromKey("Astral"); + + public static readonly DraedonDialogEntry Sulphur = CreateFromKey("Sulphur"); internal static List DialogOptions = new() { // The first index is assumed to be the "who are you?" dialog by the UI. All other indices can be freely swapped around, however. WhoAreYou, + WhoAreYouPart2, - CalamitasBeforeHerDefeat, - CalamitasAfterHerDefeat, + Origins, + Crusade, + Goals, + MiracleMatter, + + ExoMechs, + Exotech, + Forge, + Mechs, Plague, - SulphurousSea, - TheTyrant + + Calamitas, + Yharim, + Dog, + Sulphur, + Distortion, + Astral, + Aerie }; internal static DraedonDialogEntry CreateFromKey(string key, Func condition = null) => From 720a6437ca2d5a4faa0184782ec974733e59ab71 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:49:12 -0700 Subject: [PATCH 19/32] forge required for more dialogue --- CalPlayer/CalamityPlayer.cs | 3 +++ .../Furniture/CraftingStations/DraedonsForge.cs | 14 ++++++++++++++ Localization/en-US/Mods.CalamityMod.UI.hjson | 4 ++-- UI/DraedonSummoning/CodebreakerUI.Communication.cs | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 70e9ea4116..4e98779649 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -1179,6 +1179,7 @@ namespace CalamityMod.CalPlayer #region Draedon Summoning public bool AbleToSelectExoMech = false; public bool HasTalkedAtCodebreaker = false; + public bool HasCraftedDraedonsForge = false; public List SeenDraedonDialogs = new(); #endregion Draedon Summoning @@ -1313,6 +1314,7 @@ namespace CalamityMod.CalPlayer boost.AddWithCondition("newCalamitasInventory", newCalamitasInventory); boost.AddWithCondition("GivenBrimstoneLocus", GivenBrimstoneLocus); boost.AddWithCondition("HasTalkedAtCodebreaker", HasTalkedAtCodebreaker); + boost.AddWithCondition("HasCraftedDraedonsForge", HasCraftedDraedonsForge); // Calculate the new total time of all sessions at the instant of this player save. TimeSpan newSessionTotal = previousSessionTotal.Add(CalamityMod.SpeedrunTimer.Elapsed); @@ -1403,6 +1405,7 @@ namespace CalamityMod.CalPlayer newCalamitasInventory = boost.Contains("newCalamitasInventory"); GivenBrimstoneLocus = boost.Contains("GivenBrimstoneLocus"); HasTalkedAtCodebreaker = boost.Contains("HasTalkedAtCodebreaker"); + HasCraftedDraedonsForge = boost.Contains("HasCraftedDraedonsForge"); // Load rage if it's there, which it will be for any players saved with 1.5. // Older players have "stress" instead, which will be ignored. This is intentional. diff --git a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs index 229205fecf..60d8f1eb10 100644 --- a/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs +++ b/Items/Placeables/Furniture/CraftingStations/DraedonsForge.cs @@ -9,6 +9,20 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations public class DraedonsForge : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Placeables"; + public override void SetStaticDefaults() + { + Terraria.On_Recipe.ConsumeForCraft += DraeforgeUnlockDetour; + } + + private static bool DraeforgeUnlockDetour(On_Recipe.orig_ConsumeForCraft orig, Recipe self, Item item, Item requiredItem, ref int stackRequired) + { + if (self.HasTile(ModContent.TileType())) + { + Main.LocalPlayer.Calamity().HasCraftedDraedonsForge = true; + } + return orig(self, item, requiredItem, ref stackRequired); + } + public override void SetDefaults() { Item.width = 58; diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 44d2a3bba7..7c4de20acc 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -110,7 +110,7 @@ Cooldowns: { SandsmokeBombActive: Sandsmoke Bomb Duration SandsmokeBombCooldown: Sandsmoke Bomb Cooldown SilvaRevive: Silva Revive Cooldown - SpeedBlasterBoost: Speed Blaster Boost + SpeedBlasterBoost: Speed Blaster Boost SpongeDurability: Sponge Barrier Durability SpongeRecharge: Sponge Barrier Recharge TarragonCloak: Tarragon Cloak Cooldown @@ -154,7 +154,7 @@ Communication: { } WhoAreYouPart2: { - Inquiry: Introduction 2 + Inquiry: Task Complete Response: ''' Excellent. I can tell that you have successfully taken advantage of the Exo Prisms. Before you waste your breath asking me how I know, Exo Prisms, along with many other parts of my machines, have tracking devices embedded within to both monitor my creations and prevent theft.\n\n diff --git a/UI/DraedonSummoning/CodebreakerUI.Communication.cs b/UI/DraedonSummoning/CodebreakerUI.Communication.cs index 988a374cce..c301e33376 100644 --- a/UI/DraedonSummoning/CodebreakerUI.Communication.cs +++ b/UI/DraedonSummoning/CodebreakerUI.Communication.cs @@ -394,7 +394,7 @@ namespace CalamityMod.UI.DraedonSummoning { // Skip/isolate the introduction text as needed. string inquiry = dialog.Inquiry; - if (!Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker && !DialogOptions[0].HasBeenSeen) + if (!Main.LocalPlayer.Calamity().HasCraftedDraedonsForge) { if (inquiry != DialogOptions[0].Inquiry) continue; From fd5556af98df2fc7ab88e7c982f6ec319a72cede Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Mon, 25 Mar 2024 00:45:37 -0700 Subject: [PATCH 20/32] fixed exoblade not firing 4 projectiles --- Projectiles/Melee/ExobladeProj.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Melee/ExobladeProj.cs b/Projectiles/Melee/ExobladeProj.cs index 98c38a9ffc..7a690b9718 100644 --- a/Projectiles/Melee/ExobladeProj.cs +++ b/Projectiles/Melee/ExobladeProj.cs @@ -335,7 +335,7 @@ namespace CalamityMod.Projectiles.Melee // Create a bunch of homing beams. int beamShootStart = (int)(SwingTime * 0.6f); - int beamShootPeriod = (int)(SwingTime * 0.35f); + int beamShootPeriod = (int)(SwingTime * 0.4f); int beamShootEnd = beamShootStart + beamShootPeriod; beamShootPeriod /= (Exoblade.BeamsPerSwing - 1); From 2eceabede2c9c62b4fdb1d22d53bb96feaa90b15 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Mon, 25 Mar 2024 03:23:55 -0500 Subject: [PATCH 21/32] 1 - A lot more boss damage value balancing (didn't do post-ML boss projectiles yet because I got tired of doing this). 2 - Increased Reaver Tank life steal cooldown multiplier from 2x to 4x. --- Balancing/BalancingConstants.cs | 3 +- CalPlayer/CalamityPlayerOnHit.cs | 4 +- DataStructures/NPCStats.cs | 500 +++++++++++++++---------------- 3 files changed, 254 insertions(+), 253 deletions(-) diff --git a/Balancing/BalancingConstants.cs b/Balancing/BalancingConstants.cs index 2f2515847a..f4a4d58dac 100644 --- a/Balancing/BalancingConstants.cs +++ b/Balancing/BalancingConstants.cs @@ -89,8 +89,9 @@ // 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 multiplier used for armor set bonuses + // 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; diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 60d7eaca99..be1b3c1933 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1236,7 +1236,7 @@ namespace CalamityMod.CalPlayer healMult -= proj.numHits * healMult * 0.5; int heal = (int)Math.Round(damage * healMult); if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal)) - CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealSetBonusCooldownMultiplier); + CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType(), BalancingConstants.LifeStealRange, BalancingConstants.LifeStealReaverTankCooldownMultiplier); } if (proj.CountsAsClass()) @@ -1310,7 +1310,7 @@ namespace CalamityMod.CalPlayer int heal = (int)Math.Round(damage * healMult); if (heal > 0 && !Main.player[Main.myPlayer].moonLeech) { - Main.player[Main.myPlayer].lifeSteal -= heal * BalancingConstants.LifeStealSetBonusCooldownMultiplier; + Main.player[Main.myPlayer].lifeSteal -= heal * BalancingConstants.LifeStealReaverTankCooldownMultiplier; float lowestHealthCheck = 0f; int healTarget = Player.whoAmI; diff --git a/DataStructures/NPCStats.cs b/DataStructures/NPCStats.cs index 68bc1823f4..faf618f58e 100644 --- a/DataStructures/NPCStats.cs +++ b/DataStructures/NPCStats.cs @@ -294,12 +294,12 @@ namespace CalamityMod EnemyStats.ContactDamageValues = new SortedDictionary { - { NPCID.KingSlime, new int[] { 40, 64, 80, 88, 120 } }, + { NPCID.KingSlime, new int[] { 40, 64, 80, 96, 120 } }, - { ModContent.NPCType(), new int[] { 45, 66, 88, 99, 132 } }, - { ModContent.NPCType(), new int[] { 24, 32, 40, 44, 72 } }, - { ModContent.NPCType(), new int[] { 18, 24, 30, 32, 54 } }, - { ModContent.NPCType(), new int[] { 30, 44, 60, 70, 90 } }, + { ModContent.NPCType(), new int[] { 45, 66, 88, 110, 132 } }, + { ModContent.NPCType(), new int[] { 24, 32, 40, 48, 72 } }, + { ModContent.NPCType(), new int[] { 18, 24, 30, 36, 54 } }, + { ModContent.NPCType(), new int[] { 30, 44, 60, 76, 90 } }, { ModContent.NPCType(), new int[] { 21, 28, 32, 36, 63 } }, { ModContent.NPCType(), new int[] { 12, 16, 20, 24, 36 } }, @@ -307,38 +307,38 @@ namespace CalamityMod 24, // 36 in phase 2 30, // 45 in phase 2 40, // 48 in phase 2, 56 in phase 3 - 44, // 53 in phase 2, 62 in phase 3 + 50, // 60 in phase 2, 70 in phase 3 72 } }, // Vanilla: 108 in phase 2; Rev+: 86 in phase 2, 101 in phase 3 - { NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 34, 54 } }, + { NPCID.ServantofCthulhu, new int[] { 18, 24, 30, 36, 54 } }, - { ModContent.NPCType(), new int[] { 40, 64, 80, 88, 120 } }, - { ModContent.NPCType(), new int[] { 25, 50, 62, 70, 75 } }, + { ModContent.NPCType(), new int[] { 40, 64, 80, 96, 120 } }, + { ModContent.NPCType(), new int[] { 25, 50, 62, 74, 75 } }, - { NPCID.EaterofWorldsHead, new int[] { 38, 55, 77, 88, 132 } }, + { NPCID.EaterofWorldsHead, new int[] { 38, 55, 77, 99, 132 } }, { NPCID.EaterofWorldsBody, new int[] { 18, 24, 32, 40, 60 } }, { NPCID.EaterofWorldsTail, new int[] { 12, 16, 24, 32, 36 } }, { NPCID.VileSpitEaterOfWorlds, new int[] { -1, 64, 64, 64, 96 } }, - { NPCID.BrainofCthulhu, new int[] { 36, 54, 81, 99, 135 } }, - { NPCID.Creeper, new int[] { 24, 36, 66, 80, 108 } }, + { NPCID.BrainofCthulhu, new int[] { 36, 54, 81, 108, 135 } }, + { NPCID.Creeper, new int[] { 24, 36, 66, 96, 120 } }, - { ModContent.NPCType(), new int[] { 42, 63, 81, 90, 135 } }, - { ModContent.NPCType(), new int[] { 30, 50, 62, 68, 90 } }, + { ModContent.NPCType(), new int[] { 42, 63, 81, 99, 135 } }, + { ModContent.NPCType(), new int[] { 30, 50, 62, 74, 90 } }, { ModContent.NPCType(), new int[] { 36, 54, 63, 72, 108 } }, - { ModContent.NPCType(), new int[] { 54, 90, 108, 118, 162 } }, - { ModContent.NPCType(), new int[] { 28, 48, 56, 60, 84 } }, - { ModContent.NPCType(), new int[] { 22, 36, 42, 46, 66 } }, - { ModContent.NPCType(), new int[] { 42, 70, 84, 92, 126 } }, - { ModContent.NPCType(), new int[] { 24, 42, 50, 54, 72 } }, - { ModContent.NPCType(), new int[] { 18, 28, 34, 38, 54 } }, - { ModContent.NPCType(), new int[] { 36, 60, 72, 80, 108 } }, - { ModContent.NPCType(), new int[] { 20, 36, 42, 46, 60 } }, - { ModContent.NPCType(), new int[] { 14, 20, 26, 30, 42 } }, + { ModContent.NPCType(), new int[] { 54, 90, 108, 126, 162 } }, + { ModContent.NPCType(), new int[] { 28, 48, 56, 64, 84 } }, + { ModContent.NPCType(), new int[] { 22, 36, 42, 48, 66 } }, + { ModContent.NPCType(), new int[] { 42, 70, 84, 98, 126 } }, + { ModContent.NPCType(), new int[] { 24, 42, 50, 58, 72 } }, + { ModContent.NPCType(), new int[] { 18, 28, 34, 40, 54 } }, + { ModContent.NPCType(), new int[] { 36, 60, 72, 84, 108 } }, + { ModContent.NPCType(), new int[] { 20, 36, 42, 48, 60 } }, + { ModContent.NPCType(), new int[] { 14, 20, 26, 32, 42 } }, - { NPCID.QueenBee, new int[] { 36, 54, 81, 99, 135 } }, - { NPCID.Bee, new int[] { 20, 24, 48, 60, 72 } }, - { NPCID.BeeSmall, new int[] { 15, 18, 30, 44, 54 } }, + { NPCID.QueenBee, new int[] { 36, 54, 81, 108, 135 } }, + { NPCID.Bee, new int[] { 20, 24, 48, 72, 90 } }, + { NPCID.BeeSmall, new int[] { 15, 18, 36, 54, 72 } }, { NPCID.SkeletronHead, new int[] { 42, // 55 while spinning @@ -346,40 +346,40 @@ namespace CalamityMod 88, // 114 while spinning 99, // 128 while spinning 132 } }, // 171 while spinning - { NPCID.SkeletronHand, new int[] { 32, 44, 77, 88, 132 } }, + { NPCID.SkeletronHand, new int[] { 32, 44, 77, 110, 132 } }, { NPCID.Deerclops, new int[] { 20, 40, 50, 60, 81 } }, - { ModContent.NPCType(), new int[] { 48, 80, 96, 104, 144 } }, - { ModContent.NPCType(), new int[] { 54, 90, 108, 118, 162 } }, - { ModContent.NPCType(), new int[] { 48, 80, 96, 104, 144 } }, - { ModContent.NPCType(), new int[] { 60, 100, 120, 130, 180 } }, - { ModContent.NPCType(), new int[] { 54, 90, 108, 118, 162 } }, - { ModContent.NPCType(), new int[] { 36, 60, 72, 78, 108 } }, - { ModContent.NPCType(), new int[] { 24, 40, 48, 52, 72 } }, - { ModContent.NPCType(), new int[] { 42, 70, 84, 92, 126 } }, - { ModContent.NPCType(), new int[] { 30, 50, 60, 66, 90 } }, + { ModContent.NPCType(), new int[] { 48, 80, 96, 112, 144 } }, + { ModContent.NPCType(), new int[] { 54, 90, 108, 126, 162 } }, + { ModContent.NPCType(), new int[] { 48, 80, 96, 112, 144 } }, + { ModContent.NPCType(), new int[] { 60, 100, 120, 140, 180 } }, + { ModContent.NPCType(), new int[] { 54, 90, 108, 126, 162 } }, + { ModContent.NPCType(), new int[] { 36, 60, 72, 84, 108 } }, + { ModContent.NPCType(), new int[] { 24, 40, 48, 56, 72 } }, + { ModContent.NPCType(), new int[] { 42, 70, 84, 98, 126 } }, + { ModContent.NPCType(), new int[] { 30, 50, 60, 70, 90 } }, - { NPCID.WallofFlesh, new int[] { 100, 150, 180, 195, 270 } }, - { NPCID.WallofFleshEye, new int[] { 100, 150, 180, 195, 270 } }, + { NPCID.WallofFlesh, new int[] { 100, 150, 180, 210, 270 } }, + { NPCID.WallofFleshEye, new int[] { 100, 150, 180, 210, 270 } }, { 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, 80, 90 } }, - { NPCID.LeechHead, new int[] { 26, 52, 62, 68, 78 } }, - { NPCID.LeechBody, new int[] { 22, 44, 52, 56, 66 } }, - { NPCID.LeechTail, new int[] { 18, 36, 42, 44, 54 } }, + { NPCID.TheHungryII, new int[] { 30, 60, 74, 88, 108 } }, + { NPCID.LeechHead, new int[] { 26, 52, 62, 72, 90 } }, + { NPCID.LeechBody, new int[] { 22, 44, 52, 60, 78 } }, + { NPCID.LeechTail, new int[] { 18, 36, 42, 48, 66 } }, - { NPCID.QueenSlimeBoss, new int[] { 80, 120, 150, 170, 240 } }, + { NPCID.QueenSlimeBoss, new int[] { 80, 120, 150, 180, 240 } }, { 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 } }, { ModContent.NPCType(), new int[] { 90, 138, 161, 184, 276 } }, - { ModContent.NPCType(), new int[] { 80, 120, 138, 158, 240 } }, + { ModContent.NPCType(), new int[] { 80, 120, 138, 156, 240 } }, { NPCID.Spazmatism, new int[] { 70, // 105 in phase 2 @@ -395,15 +395,15 @@ namespace CalamityMod 153 } }, // 229 in phase 2 { ModContent.NPCType(), new int[] { 110, 176, 187, 198, 330 } }, - { ModContent.NPCType(), new int[] { 75, 112, 136, 144, 216 } }, - { ModContent.NPCType(), new int[] { 70, 104, 112, 136, 192 } }, + { ModContent.NPCType(), new int[] { 75, 112, 136, 160, 216 } }, + { ModContent.NPCType(), new int[] { 70, 104, 112, 120, 192 } }, { ModContent.NPCType(), new int[] { 65, 96, 104, 112, 168 } }, { NPCID.TheDestroyer, new int[] { 140, 280, 300, 320, 420 } }, - { NPCID.TheDestroyerBody, new int[] { 70, 102, 136, 153, 204 } }, - { NPCID.TheDestroyerTail, new int[] { 45, 68, 102, 136, 153 } }, + { NPCID.TheDestroyerBody, new int[] { 70, 102, 136, 170, 255 } }, + { NPCID.TheDestroyerTail, new int[] { 45, 68, 102, 136, 204 } }, - { ModContent.NPCType(), new int[] { 75, 112, 136, 144, 216 } }, + { ModContent.NPCType(), new int[] { 75, 112, 136, 160, 216 } }, { NPCID.SkeletronPrime, new int[] { 50, // 100 while spinning @@ -417,323 +417,323 @@ namespace CalamityMod 102, // 204 while spinning 119, // 238 while spinning 153 } }, // 306 while spinning - { NPCID.PrimeVice, new int[] { 70, 102, 136, 153, 204 } }, - { NPCID.PrimeSaw, new int[] { 70, 102, 136, 153, 204 } }, + { 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 } }, - { ModContent.NPCType(), new int[] { 95, 144, 168, 176, 276 } }, - { ModContent.NPCType(), new int[] { 80, 120, 138, 148, 240 } }, - { ModContent.NPCType(), new int[] { 85, 130, 150, 162, 255 } }, + { ModContent.NPCType(), new int[] { 95, 144, 168, 192, 276 } }, + { ModContent.NPCType(), new int[] { 80, 120, 138, 156, 240 } }, + { ModContent.NPCType(), new int[] { 85, 130, 150, 170, 255 } }, { NPCID.Plantera, new int[] { 70, // 98 in phase 2 100, // 140 in phase 2 138, // 193 in phase 2 - 161, // 225 in phase 2 + 176, // 246 in phase 2 207 } }, // 290 in phase 2 - { NPCID.PlanterasTentacle, new int[] { 90, 138, 161, 207, 276 } }, - { ModContent.NPCType(), new int[] { 90, 138, 161, 207, 276 } }, - { NPCID.Spore, new int[] { 90, 140, 160, 170, 270 } }, + { NPCID.PlanterasTentacle, new int[] { 90, 138, 161, 184, 276 } }, + { ModContent.NPCType(), new int[] { 90, 138, 161, 184, 276 } }, + { NPCID.Spore, new int[] { 90, 140, 160, 180, 270 } }, { NPCID.HallowBoss, new int[] { 80, // 120 during charge 110, // 165 during charge 143, // 215 during charge - 154, // 231 during charge + 176, // 264 during charge 231 } }, // 347 during charge - { ModContent.NPCType(), new int[] { 140, 216, 240, 252, 414 } }, + { ModContent.NPCType(), new int[] { 140, 216, 240, 264, 414 } }, { ModContent.NPCType(), new int[] { 75, // 113 during charge 112, // 168 during charge 136, // 204 during charge - 144, // 216 during charge + 160, // 240 during charge 216 } }, // 324 during charge - { ModContent.NPCType(), new int[] { 70, 110, 126, 136, 210 } }, - { NPCID.DetonatingBubble, new int[] { 100, 150, 180, 195, 270 } }, - { ModContent.NPCType(), new int[] { 90, 140, 160, 170, 270 } }, + { ModContent.NPCType(), new int[] { 70, 110, 126, 142, 210 } }, + { NPCID.DetonatingBubble, new int[] { 100, 150, 180, 210, 270 } }, + { ModContent.NPCType(), new int[] { 90, 140, 160, 180, 270 } }, - { ModContent.NPCType(), new int[] { 145, 220, 242, 253, 429 } }, - { ModContent.NPCType(), new int[] { 75, 112, 128, 138, 225 } }, + { ModContent.NPCType(), new int[] { 145, 220, 242, 264, 429 } }, + { ModContent.NPCType(), new int[] { 75, 112, 128, 144, 225 } }, - { NPCID.Golem, new int[] { 95, 144, 176, 192, 264 } }, + { NPCID.Golem, new int[] { 95, 144, 176, 208, 264 } }, { NPCID.GolemHead, new int[] { 85, 128, 144, 160, 228 } }, - { NPCID.GolemFistLeft, new int[] { 75, 112, 144, 160, 204 } }, - { NPCID.GolemFistRight, new int[] { 75, 112, 144, 160, 204 } }, + { NPCID.GolemFistLeft, new int[] { 75, 112, 144, 176, 240 } }, + { NPCID.GolemFistRight, new int[] { 75, 112, 144, 176, 240 } }, - { ModContent.NPCType(), new int[] { 120, 180, 216, 234, 351 } }, - { ModContent.NPCType(), new int[] { 120, 180, 210, 224, 360 } }, - { ModContent.NPCType(), new int[] { 130, 200, 240, 260, 390 } }, + { ModContent.NPCType(), new int[] { 120, 180, 216, 252, 351 } }, + { ModContent.NPCType(), new int[] { 120, 180, 210, 240, 360 } }, + { ModContent.NPCType(), new int[] { 130, 200, 240, 280, 390 } }, { 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 - 182, // 262 in phase 2, 240 in phase 3 + 196, // 282 in phase 2, 259 in phase 3 252 } }, // 363 in phase 2, 333 in phase 3 - { NPCID.Sharkron, new int[] { 100, 150, 180, 195, 270 } }, - { NPCID.Sharkron2, new int[] { 120, 180, 210, 225, 315 } }, + { NPCID.Sharkron, new int[] { 100, 150, 180, 210, 270 } }, + { NPCID.Sharkron2, new int[] { 120, 180, 210, 240, 315 } }, - { ModContent.NPCType(), new int[] { 130, 192, 224, 232, 384 } }, + { ModContent.NPCType(), new int[] { 130, 192, 224, 256, 384 } }, { ModContent.NPCType(), new int[] { 105, 160, 180, 200, 315 } }, { ModContent.NPCType(), new int[] { 105, 160, 180, 200, 315 } }, - { ModContent.NPCType(), new int[] { 130, 192, 224, 232, 390 } }, - { ModContent.NPCType(), new int[] { 105, 160, 192, 200, 315 } }, + { ModContent.NPCType(), new int[] { 130, 192, 224, 256, 390 } }, + { ModContent.NPCType(), new int[] { 105, 160, 192, 224, 315 } }, - { NPCID.CultistDragonHead, new int[] { 120, 180, 210, 225, 360 } }, + { 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, 225, 360 } }, - { NPCID.AncientLight, new int[] { 120, 180, 210, 225, 360 } }, + { NPCID.AncientCultistSquidhead, new int[] { 120, 180, 210, 240, 360 } }, + { NPCID.AncientLight, new int[] { 120, 180, 210, 240, 360 } }, - { ModContent.NPCType(), new int[] { 160, 240, 268, 280, 480 } }, - { ModContent.NPCType(), new int[] { 105, 160, 192, 200, 312 } }, - { ModContent.NPCType(), new int[] { 85, 128, 160, 168, 252 } }, + { ModContent.NPCType(), new int[] { 160, 240, 268, 296, 480 } }, + { ModContent.NPCType(), new int[] { 105, 160, 192, 224, 312 } }, + { ModContent.NPCType(), new int[] { 85, 128, 160, 192, 252 } }, - { ModContent.NPCType(), new int[] { 150, 224, 256, 280, 444 } }, - { ModContent.NPCType(), new int[] { 160, 240, 264, 278, 405 } }, - { ModContent.NPCType(), new int[] { 100, 200, 220, 232, 300 } }, + { ModContent.NPCType(), new int[] { 150, 224, 256, 288, 444 } }, + { ModContent.NPCType(), new int[] { 160, 240, 264, 288, 405 } }, + { ModContent.NPCType(), new int[] { 100, 200, 220, 240, 300 } }, - { ModContent.NPCType(), new int[] { 170, 256, 288, 304, 504 } }, - { ModContent.NPCType(), new int[] { 145, 220, 242, 256, 435 } }, + { ModContent.NPCType(), new int[] { 170, 256, 288, 320, 504 } }, + { ModContent.NPCType(), new int[] { 145, 220, 242, 264, 435 } }, { ModContent.NPCType(), new int[] { 120, 240, 264, 278, 360 } }, { ModContent.NPCType(), new int[] { 100, 200, 220, 232, 300 } }, { ModContent.NPCType(), new int[] { 100, 200, 220, 232, 300 } }, - { ModContent.NPCType(), new int[] { 240, 360, 396, 418, 720 } }, - { ModContent.NPCType(), new int[] { 175, 260, 288, 304, 525 } }, + { ModContent.NPCType(), new int[] { 240, 360, 396, 432, 720 } }, + { ModContent.NPCType(), new int[] { 175, 260, 288, 316, 525 } }, - { ModContent.NPCType(), new int[] { 240, 360, 396, 418, 720 } }, - { ModContent.NPCType(), new int[] { 125, 192, 224, 250, 372 } }, - { ModContent.NPCType(), new int[] { 105, 160, 192, 210, 312 } }, + { ModContent.NPCType(), new int[] { 240, 360, 396, 432, 720 } }, + { ModContent.NPCType(), new int[] { 125, 192, 224, 256, 372 } }, + { ModContent.NPCType(), new int[] { 105, 160, 192, 224, 312 } }, - { ModContent.NPCType(), new int[] { 210, 315, 351, 369, 621 } }, - { ModContent.NPCType(), new int[] { 175, 260, 288, 304, 525 } }, + { ModContent.NPCType(), new int[] { 210, 315, 351, 387, 621 } }, + { ModContent.NPCType(), new int[] { 175, 260, 288, 316, 525 } }, { ModContent.NPCType(), new int[] { 190, 280, 300, 320, 570 } }, { ModContent.NPCType(), 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 - 280, // 336 in phase 2, 392 in phase 3 + 288, // 346 in phase 2, 403 in phase 3 480 } }, // 576 in phase 2, 672 in phase 3 - { ModContent.NPCType(), new int[] { 224, 336, 360, 392, 672 } }, + { ModContent.NPCType(), new int[] { 224, 336, 370, 403, 672 } }, { ModContent.NPCType(), 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 - 342, // 376 in phase 2, 410 in phase 3 + 360, // 396 in phase 2, 432 in phase 3 567 } }, // 624 in phase 2, 680 in phase 3 - { ModContent.NPCType(), new int[] { 192, 288, 328, 344, 576 } }, - { ModContent.NPCType(), new int[] { 192, 288, 328, 344, 576 } }, + { ModContent.NPCType(), new int[] { 192, 288, 328, 368, 576 } }, + { ModContent.NPCType(), new int[] { 192, 288, 328, 368, 576 } }, - { ModContent.NPCType(), new int[] { 470, 700, 750, 780, 1410 } }, - { ModContent.NPCType(), new int[] { 250, 374, 425, 442, 714 } }, - { ModContent.NPCType(), new int[] { 204, 306, 340, 357, 612 } }, - { ModContent.NPCType(), new int[] { 240, 360, 396, 420, 720 } }, + { ModContent.NPCType(), new int[] { 470, 700, 750, 800, 1410 } }, + { ModContent.NPCType(), new int[] { 250, 374, 425, 476, 714 } }, + { ModContent.NPCType(), new int[] { 204, 306, 340, 374, 612 } }, + { ModContent.NPCType(), new int[] { 240, 360, 396, 432, 720 } }, { ModContent.NPCType(), new int[] { 175, 260, 290, 320, 525 } }, { ModContent.NPCType(), new int[] { 135, 200, 230, 260, 405 } }, { ModContent.NPCType(), new int[] { 300, 448, 480, 512, 900 } }, - { ModContent.NPCType(), new int[] { 340, 512, 544, 560, 1020 } }, + { ModContent.NPCType(), new int[] { 340, 512, 544, 576, 1020 } }, - { ModContent.NPCType(), new int[] { 340, 512, 544, 560, 1020 } }, - { ModContent.NPCType(), new int[] { 320, 480, 512, 528, 960 } }, + { ModContent.NPCType(), new int[] { 340, 512, 544, 576, 1020 } }, + { ModContent.NPCType(), new int[] { 320, 480, 512, 544, 960 } }, - { ModContent.NPCType(), new int[] { 375, 560, 592, 608, 1116 } }, - { ModContent.NPCType(), new int[] { 320, 480, 512, 528, 960 } }, - { ModContent.NPCType(), new int[] { 320, 480, 512, 528, 960 } }, - { ModContent.NPCType(), new int[] { 270, 400, 424, 440, 804 } }, + { ModContent.NPCType(), new int[] { 375, 560, 592, 624, 1116 } }, + { ModContent.NPCType(), new int[] { 320, 480, 512, 544, 960 } }, + { ModContent.NPCType(), new int[] { 320, 480, 512, 544, 960 } }, + { ModContent.NPCType(), new int[] { 270, 400, 424, 448, 804 } }, - { ModContent.NPCType(), new int[] { 535, 800, 850, 880, 1596 } } + { ModContent.NPCType(), new int[] { 535, 800, 850, 900, 1596 } } }; EnemyStats.ProjectileDamageValues = new SortedDictionary, int[]> { - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 36, 44, 48, 78 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 36, 44, 52, 84 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 44, 60, 68, 90 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 44, 60, 68, 90 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 44, 60, 76, 108 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 26, 44, 60, 76, 108 } }, - { new Tuple(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 26, 44, 60, 68, 90 } }, + { new Tuple(NPCID.EyeofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 26, 44, 60, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 68, 96 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 68, 96 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 72, 96 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 32, 48, 60, 72, 96 } }, - { new Tuple(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 26, 44, 60, 68, 90 } }, - { new Tuple(NPCID.EaterofWorldsHead, ModContent.ProjectileType()), new int[] { 26, 36, 44, 48, 78 } }, + { new Tuple(NPCID.EaterofWorldsHead, ProjectileID.CursedFlameHostile), new int[] { 26, 44, 60, 76, 108 } }, + { new Tuple(NPCID.EaterofWorldsHead, ModContent.ProjectileType()), new int[] { 26, 36, 44, 52, 84 } }, - { new Tuple(NPCID.BrainofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(NPCID.BrainofCthulhu, ProjectileID.BloodShot), new int[] { 26, 44, 60, 68, 90 } }, - { new Tuple(NPCID.Creeper, ProjectileID.BloodShot), new int[] { 26, 44, 60, 68, 90 } }, + { new Tuple(NPCID.BrainofCthulhu, ProjectileID.BloodNautilusShot), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(NPCID.BrainofCthulhu, ProjectileID.BloodShot), new int[] { 26, 44, 60, 76, 108 } }, + { new Tuple(NPCID.Creeper, ProjectileID.BloodShot), new int[] { 26, 44, 60, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 30, 48, 60, 68, 90 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 30, 48, 60, 68, 90 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 30, 48, 60, 72, 96 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 30, 48, 60, 72, 96 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 22, 36, 44, 48, 66 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 22, 36, 44, 52, 84 } }, - { new Tuple(NPCID.QueenBee, ProjectileID.QueenBeeStinger), new int[] { 22, 44, 64, 72, 96 } }, + { new Tuple(NPCID.QueenBee, ProjectileID.QueenBeeStinger), new int[] { 22, 44, 64, 84, 120 } }, - { new Tuple(NPCID.SkeletronHead, ProjectileID.Skull), new int[] { 46, 72, 84, 92, 138 } }, - { new Tuple(NPCID.SkeletronHead, ProjectileID.Shadowflames), new int[] { 36, 72, 88, 96, 132 } }, - { new Tuple(NPCID.SkeletronHand, ProjectileID.Skull), new int[] { 36, 56, 68, 76, 108 } }, + { new Tuple(NPCID.SkeletronHead, ProjectileID.Skull), new int[] { 46, 72, 84, 96, 138 } }, + { new Tuple(NPCID.SkeletronHead, ProjectileID.Shadowflames), new int[] { 36, 72, 88, 104, 150 } }, + { new Tuple(NPCID.SkeletronHand, ProjectileID.Skull), new int[] { 36, 56, 68, 80, 114 } }, - { new Tuple(NPCID.Deerclops, ProjectileID.DeerclopsIceSpike), new int[] { 26, 52, 76, 84, 114 } }, - { new Tuple(NPCID.Deerclops, ProjectileID.DeerclopsRangedProjectile), new int[] { 36, 72, 88, 96, 132 } }, - { new Tuple(NPCID.Deerclops, ProjectileID.InsanityShadowHostile), new int[] { 20, 40, 60, 68, 90 } }, + { new Tuple(NPCID.Deerclops, ProjectileID.DeerclopsIceSpike), new int[] { 26, 52, 76, 100, 138 } }, + { new Tuple(NPCID.Deerclops, ProjectileID.DeerclopsRangedProjectile), new int[] { 36, 72, 88, 104, 150 } }, + { new Tuple(NPCID.Deerclops, ProjectileID.InsanityShadowHostile), new int[] { 20, 40, 60, 80, 114 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 42, 68, 84, 92, 126 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 38, 60, 76, 84, 114 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 42, 68, 84, 92, 126 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 38, 60, 76, 84, 114 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 38, 60, 76, 84, 114 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 34, 52, 68, 74, 102 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 76, 108 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 24, 48, 60, 68, 90 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 42, 68, 84, 100, 138 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 38, 60, 76, 92, 126 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 42, 68, 84, 100, 138 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 38, 60, 76, 92, 126 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 38, 60, 76, 92, 126 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 34, 52, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 36, 56, 68, 80, 114 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 24, 48, 60, 72, 96 } }, - { new Tuple(NPCID.WallofFleshEye, ProjectileID.EyeLaser), new int[] { 26, 52, 68, 76, 102 } }, - { new Tuple(NPCID.WallofFleshEye, ProjectileID.DeathLaser), new int[] { 36, 72, 88, 96, 132 } }, - { new Tuple(NPCID.WallofFlesh, ProjectileID.DemonSickle), new int[] { 52, 92, 112, 124, 168 } }, - { new Tuple(NPCID.WallofFlesh, ProjectileID.Fireball), new int[] { 36, 72, 88, 96, 132 } }, + { new Tuple(NPCID.WallofFleshEye, ProjectileID.EyeLaser), new int[] { 26, 52, 68, 80, 114 } }, + { new Tuple(NPCID.WallofFleshEye, ProjectileID.DeathLaser), new int[] { 36, 72, 88, 104, 150 } }, + { new Tuple(NPCID.WallofFlesh, ProjectileID.DemonSickle), new int[] { 52, 92, 112, 132, 168 } }, + { new Tuple(NPCID.WallofFlesh, ProjectileID.Fireball), new int[] { 36, 72, 88, 104, 150 } }, { new Tuple(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeGelAttack), new int[] { 60, 120, 136, 152, 210 } }, - { new Tuple(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeSmash), new int[] { 80, 160, 188, 200, 270 } }, - { new Tuple(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 124, 168 } }, - { new Tuple(NPCID.QueenSlimeMinionBlue, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 124, 168 } }, - { new Tuple(NPCID.QueenSlimeMinionPink, ProjectileID.QueenSlimeMinionPinkBall), new int[] { 52, 92, 112, 124, 168 } }, + { new Tuple(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeSmash), new int[] { 80, 160, 188, 216, 270 } }, + { new Tuple(NPCID.QueenSlimeBoss, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 132, 168 } }, + { new Tuple(NPCID.QueenSlimeMinionBlue, ProjectileID.QueenSlimeMinionBlueSpike), new int[] { 52, 92, 112, 132, 168 } }, + { new Tuple(NPCID.QueenSlimeMinionPink, ProjectileID.QueenSlimeMinionPinkBall), new int[] { 52, 92, 112, 132, 168 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 124, 168 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 132, 168 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 120, 136, 152, 210 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 60, 100, 120, 132, 180 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 124, 168 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 60, 100, 120, 140, 180 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 52, 92, 112, 132, 168 } }, - { new Tuple(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 92, 116, 128, 174 } }, + { new Tuple(NPCID.Retinazer, ProjectileID.EyeLaser), new int[] { 40, 92, 116, 140, 174 } }, { new Tuple(NPCID.Retinazer, ProjectileID.DeathLaser), new int[] { 50, // 38 in rapid fire 108, // 81 in rapid fire - 124, // 93 in rapid fire - 136, // 102 in rapid fire - 186 } }, // 139 in rapid fire; 138 in non-rev master mode, 102 in rapid fire in non-rev master mode + 132, // 99 in rapid fire + 156, // 117 in rapid fire + 186 } }, // 139 in rapid fire { new Tuple(NPCID.Retinazer, ModContent.ProjectileType()), new int[] { 70, 120, 136, 152, 210 } }, - { new Tuple(NPCID.Spazmatism, ProjectileID.CursedFlameHostile), new int[] { 50, 100, 120, 132, 180 } }, - { new Tuple(NPCID.Spazmatism, ProjectileID.EyeFire), new int[] { 60, 120, 148, 160, 222 } }, - { new Tuple(NPCID.Spazmatism, ModContent.ProjectileType()), new int[] { 70, 120, 148, 160, 222 } }, - { new Tuple(NPCID.Spazmatism, ModContent.ProjectileType()), new int[] { 60, 100, 128, 140, 192 } }, + { new Tuple(NPCID.Spazmatism, ProjectileID.CursedFlameHostile), new int[] { 50, 100, 120, 140, 180 } }, + { new Tuple(NPCID.Spazmatism, ProjectileID.EyeFire), new int[] { 60, 120, 148, 176, 222 } }, + { new Tuple(NPCID.Spazmatism, ModContent.ProjectileType()), new int[] { 70, 120, 148, 176, 222 } }, + { new Tuple(NPCID.Spazmatism, ModContent.ProjectileType()), new int[] { 60, 100, 128, 156, 192 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 60, 100, 120, 132, 180 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 60, 100, 120, 140, 180 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 120, 136, 152, 210 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 66, 112, 128, 140, 198 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 66, 112, 128, 144, 198 } }, - { new Tuple(NPCID.TheDestroyer, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 128, 174 } }, - { new Tuple(NPCID.TheDestroyer, ModContent.ProjectileType()), new int[] { 46, 108, 128, 140, 192 } }, - { new Tuple(NPCID.TheDestroyer, ModContent.ProjectileType()), new int[] { 48, 116, 136, 152, 210 } }, - { new Tuple(NPCID.TheDestroyerBody, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 128, 174 } }, - { new Tuple(NPCID.TheDestroyerBody, ModContent.ProjectileType()), new int[] { 46, 108, 128, 140, 192 } }, - { new Tuple(NPCID.TheDestroyerBody, ModContent.ProjectileType()), new int[] { 48, 116, 136, 152, 210 } }, + { new Tuple(NPCID.TheDestroyer, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 136, 174 } }, + { new Tuple(NPCID.TheDestroyer, ModContent.ProjectileType()), new int[] { 46, 108, 128, 148, 192 } }, + { new Tuple(NPCID.TheDestroyer, ModContent.ProjectileType()), new int[] { 48, 116, 136, 156, 210 } }, + { new Tuple(NPCID.TheDestroyerBody, ProjectileID.DeathLaser), new int[] { 44, 96, 116, 136, 174 } }, + { new Tuple(NPCID.TheDestroyerBody, ModContent.ProjectileType()), new int[] { 46, 108, 128, 148, 192 } }, + { new Tuple(NPCID.TheDestroyerBody, ModContent.ProjectileType()), new int[] { 48, 116, 136, 156, 210 } }, { new Tuple(NPCID.Probe, ProjectileID.PinkLaser), new int[] { 50, 88, 100, 112, 162 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 210 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 200, 240, 252, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 210 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 144, 210 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 200, 240, 280, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 144, 210 } }, - { new Tuple(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 108, 124, 136, 186 } }, - { new Tuple(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 136, 186 } }, - { new Tuple(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 160, 222 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.Skull), new int[] { 50, 108, 124, 136, 186 } }, + { new Tuple(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 108, 124, 140, 186 } }, + { new Tuple(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 186 } }, + { new Tuple(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 222 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.Skull), new int[] { 50, 108, 124, 140, 186 } }, { new Tuple(ModContent.NPCType(), ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 180, 200, 240 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.FrostBeam), new int[] { 50, 108, 124, 136, 186 } }, - { new Tuple(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 160, 222 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.FrostBeam), new int[] { 50, 108, 124, 140, 186 } }, + { new Tuple(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 222 } }, { new Tuple(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 0, 240 } }, - { new Tuple(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 136, 186 } }, + { new Tuple(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 186 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 210 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 210 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 140, 210 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 144, 210 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 144, 210 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 70, 112, 128, 144, 210 } }, - { new Tuple(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 52, 96, 128, 140, 156 } }, - { new Tuple(NPCID.Plantera, ProjectileID.PoisonSeedPlantera), new int[] { 62, 116, 136, 152, 192 } }, - { new Tuple(NPCID.Plantera, ProjectileID.ThornBall), new int[] { 72, 132, 160, 176, 216 } }, - { new Tuple(NPCID.Plantera, ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(NPCID.Plantera, ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, + { new Tuple(NPCID.Plantera, ProjectileID.SeedPlantera), new int[] { 52, 96, 128, 160, 210 } }, + { new Tuple(NPCID.Plantera, ProjectileID.PoisonSeedPlantera), new int[] { 62, 116, 144, 172, 222 } }, + { new Tuple(NPCID.Plantera, ProjectileID.ThornBall), new int[] { 72, 132, 160, 188, 240 } }, + { new Tuple(NPCID.Plantera, ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(NPCID.Plantera, ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, - { new Tuple(NPCID.HallowBoss, ProjectileID.HallowBossRainbowStreak), new int[] { 100, 152, 172, 188, 300 } }, - { new Tuple(NPCID.HallowBoss, ProjectileID.FairyQueenSunDance), new int[] { 120, 180, 204, 220, 360 } }, - { new Tuple(NPCID.HallowBoss, ProjectileID.HallowBossLastingRainbow), new int[] { 100, 152, 172, 188, 300 } }, - { new Tuple(NPCID.HallowBoss, ProjectileID.FairyQueenLance), new int[] { 130, 196, 216, 232, 390 } }, + { new Tuple(NPCID.HallowBoss, ProjectileID.HallowBossRainbowStreak), new int[] { 100, 152, 172, 192, 300 } }, + { new Tuple(NPCID.HallowBoss, ProjectileID.FairyQueenSunDance), new int[] { 120, 180, 204, 228, 360 } }, + { new Tuple(NPCID.HallowBoss, ProjectileID.HallowBossLastingRainbow), new int[] { 100, 152, 172, 192, 300 } }, + { new Tuple(NPCID.HallowBoss, ProjectileID.FairyQueenLance), new int[] { 130, 196, 216, 236, 390 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 208, 228, 300 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 176, 240 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 84, 148, 172, 188, 252 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 200, 264 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 208, 244, 300 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 80, 140, 160, 180, 240 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 84, 148, 172, 196, 252 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 212, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 200, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 208, 228, 300 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 200, 264 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 212, 264 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 208, 244, 300 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 212, 264 } }, - { new Tuple(NPCID.Golem, ProjectileID.Fireball), new int[] { 72, 132, 160, 176, 234 } }, - { new Tuple(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 188, 240 } }, - { new Tuple(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 160, 176, 192 } }, - { new Tuple(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 188, 240 } }, - { new Tuple(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 160, 176, 192 } }, - { new Tuple(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 188, 240 } }, - { new Tuple(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 200, 264 } }, + { new Tuple(NPCID.Golem, ProjectileID.Fireball), new int[] { 72, 132, 160, 188, 234 } }, + { new Tuple(NPCID.Golem, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 246 } }, + { new Tuple(NPCID.GolemHead, ProjectileID.Fireball), new int[] { 60, 120, 160, 200, 240 } }, + { new Tuple(NPCID.GolemHead, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 246 } }, + { new Tuple(NPCID.GolemHeadFree, ProjectileID.Fireball), new int[] { 60, 120, 160, 200, 240 } }, + { new Tuple(NPCID.GolemHeadFree, ProjectileID.EyeBeam), new int[] { 80, 140, 172, 204, 246 } }, + { new Tuple(NPCID.GolemHeadFree, ProjectileID.InfernoHostileBolt), new int[] { 88, 156, 184, 212, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 200, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 200, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 240, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 212, 264 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 88, 156, 184, 212, 264 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 248, 360 } }, - { new Tuple(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 184, 200, 270 } }, - { new Tuple(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 248, 480 } }, + { new Tuple(NPCID.DukeFishron, ProjectileID.Sharknado), new int[] { 80, 100, 150, 200, 240 } }, + { new Tuple(NPCID.DukeFishron, ProjectileID.Cthulunado), new int[] { 160, 200, 232, 264, 480 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 224, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 224, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 144, 172, 188, 270 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 224, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 144, 172, 188, 270 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 236, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 236, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 144, 172, 200, 270 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 236, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 144, 172, 200, 270 } }, - { new Tuple(NPCID.CultistBoss, ProjectileID.CultistBossFireBall), new int[] { 88, 156, 184, 200, 264 } }, - { new Tuple(NPCID.CultistBoss, ProjectileID.CultistBossIceMist), new int[] { 120, 180, 208, 224, 360 } }, - { new Tuple(NPCID.CultistBoss, ProjectileID.CultistBossLightningOrb), new int[] { 120, 192, 220, 240, 360 } }, - { new Tuple(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 90, 144, 172, 188, 270 } }, - { new Tuple(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 88, 156, 184, 200, 264 } }, + { new Tuple(NPCID.CultistBoss, ProjectileID.CultistBossFireBall), new int[] { 88, 156, 184, 212, 264 } }, + { new Tuple(NPCID.CultistBoss, ProjectileID.CultistBossIceMist), new int[] { 120, 180, 208, 236, 360 } }, + { new Tuple(NPCID.CultistBoss, ProjectileID.CultistBossLightningOrb), new int[] { 120, 192, 220, 248, 360 } }, + { new Tuple(NPCID.CultistBossClone, ProjectileID.CultistBossFireBallClone), new int[] { 90, 144, 172, 200, 270 } }, + { new Tuple(NPCID.AncientDoom, ProjectileID.AncientDoomProjectile), new int[] { 88, 156, 184, 212, 264 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 152, 176, 188, 270 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 224, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 192, 204, 300 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 90, 152, 176, 200, 270 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 180, 208, 236, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 100, 172, 192, 212, 300 } }, - { new Tuple(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 200, 300, 380, 420, 600 } }, - { new Tuple(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 176, 270 } }, - { new Tuple(NPCID.MoonLordHand, ProjectileID.PhantasmalEye), new int[] { 90, 120, 160, 176, 270 } }, - { new Tuple(NPCID.MoonLordHand, ProjectileID.PhantasmalSphere), new int[] { 120, 160, 260, 284, 360 } }, - { new Tuple(NPCID.MoonLordHand, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 176, 270 } }, - { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalBolt), new int[] { 100, 140, 180, 200, 300 } }, - { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalEye), new int[] { 100, 140, 180, 200, 300 } }, - { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 132, 176, 260, 284, 396 } }, - { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 150, 200, 260, 284, 450 } }, + { new Tuple(NPCID.MoonLordHead, ProjectileID.PhantasmalDeathray), new int[] { 200, 300, 380, 460, 600 } }, + { new Tuple(NPCID.MoonLordHead, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 200, 270 } }, + { new Tuple(NPCID.MoonLordHand, ProjectileID.PhantasmalEye), new int[] { 90, 120, 160, 200, 270 } }, + { new Tuple(NPCID.MoonLordHand, ProjectileID.PhantasmalSphere), new int[] { 120, 160, 220, 280, 360 } }, + { new Tuple(NPCID.MoonLordHand, ProjectileID.PhantasmalBolt), new int[] { 90, 120, 160, 200, 270 } }, + { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalBolt), new int[] { 100, 140, 180, 220, 300 } }, + { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalEye), new int[] { 100, 140, 180, 220, 300 } }, + { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 132, 176, 220, 264, 396 } }, + { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 150, 200, 260, 320, 450 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, From 641813c90d052013343b1b79d7ed9791a79a3752 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Mon, 25 Mar 2024 09:45:06 -0500 Subject: [PATCH 22/32] 1 - Death Mode EoW, Skeletron, Twins and Destroyer fairness changes. 2 - Added particle to Golem's inferno fireball, just like the inferno explosion now has. --- .../Bosses/DestroyerAI.cs | 6 +- .../Bosses/EaterOfWorldsAI.cs | 6 +- .../Bosses/SkeletronAI.cs | 14 ++-- NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs | 21 +++--- Projectiles/Boss/ScavengerLaser.cs | 67 +++++++++---------- Projectiles/Boss/ShadowflameFireball.cs | 5 +- Projectiles/CalamityGlobalProjectile.cs | 12 +++- 7 files changed, 67 insertions(+), 64 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs index bc5814d247..4d4936702a 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs @@ -421,7 +421,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Main.netMode != NetmodeID.MultiplayerClient) { int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 100f, perturbedSpeed, type, damage, 0f, Main.myPlayer, 1f, 0f); - Main.projectile[proj].timeLeft = 900; + Main.projectile[proj].timeLeft = 1200; } } } @@ -600,7 +600,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Main.netMode != NetmodeID.MultiplayerClient) { int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, damage, 0f, Main.myPlayer, 1f, 0f); - Main.projectile[proj].timeLeft = 900; + Main.projectile[proj].timeLeft = 1200; } npc.netUpdate = true; @@ -1306,7 +1306,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Main.netMode != NetmodeID.MultiplayerClient) { int num12 = Projectile.NewProjectile(npc.GetSource_FromAI(), vector + laserVelocityActual.SafeNormalize(Vector2.UnitY) * 100f, laserVelocityActual, type, damage, 0f, Main.myPlayer, 1f, 0f); - Main.projectile[num12].timeLeft = 900; + Main.projectile[num12].timeLeft = 1200; } npc.netUpdate = true; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs index 4a93783589..cbde6907ff 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/EaterOfWorldsAI.cs @@ -404,7 +404,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses calamityGlobalNPC.newAI[1] += 1f; // Set velocity for when a new head spawns - npc.velocity = (Main.player[npc.target].Center - npc.Center).SafeNormalize(Vector2.UnitY) * (segmentVelocity * (death ? 0.75f : 0.5f)); + // Only set this if the head is far enough away from the player, to avoid unfair hits + if (npc.Distance(Main.player[npc.target].Center) > segmentVelocity * 20f) + npc.velocity = (Main.player[npc.target].Center - npc.Center).SafeNormalize(Vector2.UnitY) * (segmentVelocity * (death ? 0.75f : 0.5f)); } if (!inTiles) @@ -585,7 +587,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float pushDistanceLowerLimit = 16f - numHeads; float pushDistanceUpperLimit = 160f - numHeads * 10f; float pushDistance = MathHelper.Lerp(pushDistanceLowerLimit, pushDistanceUpperLimit, 1f - lifeRatio) * npc.scale; - float pushVelocity = 0.5f + enrageScale * 0.25f; + float pushVelocity = 0.25f + enrageScale * 0.125f; for (int i = 0; i < Main.maxNPCs; i++) { if (Main.npc[i].active) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs index a3491c2d22..be9ad7e510 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs @@ -621,7 +621,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { if (Vector2.Distance(Main.player[npc.target].Center, npc.Center) > 320f) { - float shadowFlameProjectileSpeed = death ? 8f : 6f; + float shadowFlameProjectileSpeed = death ? 5f : 4f; if (masterMode) shadowFlameProjectileSpeed *= 1.25f; @@ -629,7 +629,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses int type = ProjectileID.Shadowflames; int damage = npc.GetProjectileDamage(type); int shadowFlameProjectile = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center, initialProjectileVelocity, type, damage, 0f, Main.myPlayer, 0f, 1f); - Main.projectile[shadowFlameProjectile].timeLeft = 300; + Main.projectile[shadowFlameProjectile].timeLeft = 600; } } } @@ -727,7 +727,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses headSpinVelocityMult += velocityBoost; } - float altDashStopDistance = death ? (masterMode ? 210f : 240f) : (masterMode ? 320f : 400f); + float altDashStopDistance = death ? (masterMode ? 280f : 360f) : (masterMode ? 320f : 400f); float headSpeedIncreaseDist = phase3 ? altDashStopDistance : 160f; if (headSpinTargetDist > headSpeedIncreaseDist) { @@ -898,9 +898,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Attack far more often if still alive bool phase3 = skeletronLifeRatio < 0.3f; - float velocityMultiplier = MathHelper.Lerp(death ? 0.5f : 0.7f, 1f, skeletronLifeRatio); - float velocityIncrement = MathHelper.Lerp(0.2f, death ? 0.6f : 0.45f, 1f - skeletronLifeRatio); - float handSwipeVelocity = MathHelper.Lerp(16f, death ? 28f : 22f, 1f - skeletronLifeRatio); + float velocityMultiplier = MathHelper.Lerp(death ? 0.6f : 0.7f, 1f, skeletronLifeRatio); + float velocityIncrement = MathHelper.Lerp(0.2f, death ? 0.4f : 0.3f, 1f - skeletronLifeRatio); + float handSwipeVelocity = MathHelper.Lerp(16f, death ? 24f : 20f, 1f - skeletronLifeRatio); float deceleration = Main.getGoodWorld ? 0.78f : Main.masterMode ? 0.82f : Main.expertMode ? 0.86f : 0.9f; float handSwipeDuration = HandSwipeDistance / handSwipeVelocity; @@ -908,7 +908,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float slapTimerIncrement = MathHelper.Lerp(1f, 2f, 1f - skeletronLifeRatio); if (phase3) - slapTimerIncrement *= (death ? 3f : 2f); + slapTimerIncrement *= (death ? 2.5f : 2f); else if (phase2) slapTimerIncrement *= (death ? 2f : 1.5f); diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs index 454339a456..270d56a7e3 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/TwinsAI.cs @@ -1801,7 +1801,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (death) { - float velocity = spazmatismPhase3ChargeSpeed + 3f; + float velocity = spazmatismPhase3ChargeSpeed * 0.75f; int type = (!retAlive && npc.ai[3] % 2f == 0f) ? ModContent.ProjectileType() : ProjectileID.CursedFlameHostile; int damage = npc.GetProjectileDamage(type); @@ -1817,19 +1817,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } Vector2 projectileVelocity = (Main.player[npc.target].Center + (!retAlive && bossRush ? Main.player[npc.target].velocity * 20f : Vector2.Zero) - npc.Center).SafeNormalize(Vector2.UnitY) * velocity; - if (type == ProjectileID.CursedFlameHostile) + int numProj = 3; + int spread = 15; + float rotation = MathHelper.ToRadians(spread); + for (int i = 0; i < numProj; i++) { - int numProj = 3; - int spread = 30; - float rotation = MathHelper.ToRadians(spread); - for (int i = 0; i < numProj; i++) - { - Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); - Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 25f, perturbedSpeed, type, damage, 0f, Main.myPlayer); - } + Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); + Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 25f, perturbedSpeed, type, damage, 0f, Main.myPlayer); } - else - Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + projectileVelocity.SafeNormalize(Vector2.UnitY) * 25f, projectileVelocity, type, damage, 0f, Main.myPlayer, 0f, 1f); } npc.ai[1] = 4f; @@ -1849,7 +1844,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (npc.ai[2] == 0f) SoundEngine.PlaySound(SoundID.ForceRoar, npc.Center); - float spazmatismRetDeadChargeSpeed = ((!retAlive && npc.ai[3] == 4f) ? 75f : 50f) - (float)Math.Round(death ? 14f * ((phase2LifeRatio - lifeRatio) / phase2LifeRatio) : 0f); + float spazmatismRetDeadChargeSpeed = ((!retAlive && npc.ai[3] == 4f) ? 75f : 50f) - (float)Math.Round(death ? ((!retAlive && npc.ai[3] == 4f) ? 15f : 10f) * ((phase2LifeRatio - lifeRatio) / phase2LifeRatio) : 0f); npc.ai[2] += 1f; diff --git a/Projectiles/Boss/ScavengerLaser.cs b/Projectiles/Boss/ScavengerLaser.cs index 23e447f7b2..1e61b00d83 100644 --- a/Projectiles/Boss/ScavengerLaser.cs +++ b/Projectiles/Boss/ScavengerLaser.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.tileCollide = false; Projectile.penetrate = -1; Projectile.alpha = 255; - Projectile.timeLeft = 600; + Projectile.timeLeft = 900; } public override void SendExtraAI(BinaryWriter writer) @@ -79,37 +79,11 @@ namespace CalamityMod.Projectiles.Boss return; } - // Fly away from other lasers - float pushForce = death ? 0.12f : 0.08f; - float pushDistance = death ? 120f : 80f; - for (int k = 0; k < Main.maxProjectiles; k++) - { - Projectile otherProj = Main.projectile[k]; - // Short circuits to make the loop as fast as possible - if (!otherProj.active || k == Projectile.whoAmI) - continue; - - // If the other projectile is indeed the same owned by the same player and they're too close, nudge them away. - bool sameProjType = otherProj.type == Projectile.type; - float taxicabDist = Vector2.Distance(Projectile.Center, otherProj.Center); - if (sameProjType && taxicabDist < pushDistance) - { - if (Projectile.position.X < otherProj.position.X) - Projectile.velocity.X -= pushForce; - else - Projectile.velocity.X += pushForce; - - if (Projectile.position.Y < otherProj.position.Y) - Projectile.velocity.Y -= pushForce; - else - Projectile.velocity.Y += pushForce; - } - } - - Vector2 maxVelocity = new Vector2(death ? 16f : 12f, 16f); - float maxAcceleration = death ? 0.6f : 0.4f; + Vector2 maxVelocity = new Vector2(death ? 15f : 12f, death ? 15f : 12f); + float maxAcceleration = death ? 0.5f : 0.4f; float timeBeforeHoming = death ? 30f : 45f; - float explodeDistance = death ? 32f : 16f; + float distanceAboveTargetBeforeHomingDownward = death ? 320f : 480f; + float explodeDistance = 16f; if (Projectile.ai[0] == 0f) { Projectile.localAI[0] += 1f; @@ -132,7 +106,7 @@ namespace CalamityMod.Projectiles.Boss } else if (Projectile.ai[0] == 1f) { - if (Main.player[(int)Projectile.ai[1]].Center.Y > Projectile.Center.Y + 80f) + if (Main.player[(int)Projectile.ai[1]].Center.Y > Projectile.Center.Y + distanceAboveTargetBeforeHomingDownward) { Projectile.ai[0] = 2f; Projectile.netUpdate = true; @@ -190,6 +164,33 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.velocity.Y > 0f && projectileVelocity.Y < 0f) Projectile.velocity.Y -= maxAcceleration; } + + // Fly away from other lasers + float pushForce = death ? 0.12f : 0.08f; + float pushDistance = death ? 80f : 40f; + for (int k = 0; k < Main.maxProjectiles; k++) + { + Projectile otherProj = Main.projectile[k]; + // Short circuits to make the loop as fast as possible + if (!otherProj.active || k == Projectile.whoAmI) + continue; + + // If the other projectile is indeed the same owned by the same player and they're too close, nudge them away. + bool sameProjType = otherProj.type == Projectile.type; + float taxicabDist = Vector2.Distance(Projectile.Center, otherProj.Center); + if (sameProjType && taxicabDist < pushDistance) + { + if (Projectile.position.X < otherProj.position.X) + Projectile.velocity.X -= pushForce; + else + Projectile.velocity.X += pushForce; + + if (Projectile.position.Y < otherProj.position.Y) + Projectile.velocity.Y -= pushForce; + else + Projectile.velocity.Y += pushForce; + } + } } } @@ -229,8 +230,6 @@ namespace CalamityMod.Projectiles.Boss Main.dust[killDust].velocity *= 2f; Main.dust[killDust].noGravity = true; } - - Projectile.Damage(); } } } diff --git a/Projectiles/Boss/ShadowflameFireball.cs b/Projectiles/Boss/ShadowflameFireball.cs index 21e7b705d0..9be6aa59a8 100644 --- a/Projectiles/Boss/ShadowflameFireball.cs +++ b/Projectiles/Boss/ShadowflameFireball.cs @@ -64,12 +64,13 @@ namespace CalamityMod.Projectiles.Boss Projectile.ai[0] += 1f; if (Projectile.ai[0] >= 60f) { - if (Projectile.ai[0] < (eaterOfWorlds ? 120f : 240f)) + if (Projectile.ai[0] < (eaterOfWorlds ? 180f : 240f)) { + float inertia = eaterOfWorlds ? 30f : 25f; float scaleFactor = Projectile.velocity.Length(); playerDirection.Normalize(); playerDirection *= scaleFactor; - Projectile.velocity = (Projectile.velocity * 24f + playerDirection) / 25f; + Projectile.velocity = (Projectile.velocity * (inertia - 1f) + playerDirection) / inertia; Projectile.velocity.Normalize(); Projectile.velocity *= scaleFactor; } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 0b26471f96..4806b351bb 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -49,6 +49,9 @@ namespace CalamityMod.Projectiles // Source variables. public bool CreatedByPlayerDash = false; + // Speed cap for accelerating boss laser projectiles with 2 extraUpdates. + public const float AcceleratingBossLaserVelocityCap = 10f; + // Damage Adjusters public const float PierceResistHarshness = 0.12f; public const float PierceResistCap = 0.8f; @@ -638,7 +641,7 @@ namespace CalamityMod.Projectiles projectile.localAI[1] = 1f; } - if (projectile.velocity.Length() < 12f) + if (projectile.velocity.Length() < AcceleratingBossLaserVelocityCap) projectile.velocity *= 1.0025f; return false; @@ -661,7 +664,7 @@ namespace CalamityMod.Projectiles projectile.localAI[1] = 1f; } - if (projectile.velocity.Length() < 12f) + if (projectile.velocity.Length() < AcceleratingBossLaserVelocityCap) projectile.velocity *= 1.0025f; return false; @@ -2368,7 +2371,7 @@ namespace CalamityMod.Projectiles projectile.localAI[1] = 1f; } - if (projectile.velocity.Length() < 12f) + if (projectile.velocity.Length() < AcceleratingBossLaserVelocityCap) projectile.velocity *= 1.0025f; return false; @@ -2624,6 +2627,9 @@ namespace CalamityMod.Projectiles Main.dust[dust].noLight = true; } + Particle theSpark = new AltSparkParticle(projectile.Center, projectile.velocity * 0.06f + projectile.velocity * 0.1f, false, 40, 1f, new Color(255, 255, 100)); + GeneralParticleHandler.SpawnParticle(theSpark); + return false; } From 29f06ea36266fb1e63288a4621d7c348376a7e24 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Mon, 25 Mar 2024 20:29:30 -0400 Subject: [PATCH 23/32] Making Elysian Arrow slash max updates a variable --- Projectiles/Ranged/ElysianArrowProj.cs | 2 +- Projectiles/Ranged/ElysianArrowRain.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Projectiles/Ranged/ElysianArrowProj.cs b/Projectiles/Ranged/ElysianArrowProj.cs index 2e270fa644..57b5a81cfd 100644 --- a/Projectiles/Ranged/ElysianArrowProj.cs +++ b/Projectiles/Ranged/ElysianArrowProj.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Projectiles.Ranged if (target == null) velocity = (targetPosition - spawnSpot).SafeNormalize(Vector2.UnitX) * 20; else - velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(spawnSpot, target, 20f, 7); + velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(spawnSpot, target, 20f, ElysianArrowRain.MaxUpdate); if (targetDist < 1400f) { diff --git a/Projectiles/Ranged/ElysianArrowRain.cs b/Projectiles/Ranged/ElysianArrowRain.cs index 7edeba7b57..3053e14814 100644 --- a/Projectiles/Ranged/ElysianArrowRain.cs +++ b/Projectiles/Ranged/ElysianArrowRain.cs @@ -15,6 +15,7 @@ namespace CalamityMod.Projectiles.Ranged public new string LocalizationCategory => "Projectiles.Ranged"; public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public static int MaxUpdate = 7; private int Lifetime = 110; private static Color ShaderColorOne = Color.Khaki; private static Color ShaderColorTwo = Color.White; @@ -37,7 +38,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.tileCollide = false; Projectile.ignoreWater = true; Projectile.timeLeft = Lifetime; - Projectile.extraUpdates = 6; + Projectile.MaxUpdates = MaxUpdate; Projectile.penetrate = -1; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = -1; @@ -130,7 +131,7 @@ namespace CalamityMod.Projectiles.Ranged if (target == null) velocity = (targetPosition - spawnSpot).SafeNormalize(Vector2.UnitX) * 20; else - velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(spawnSpot, target, 20f, 7); + velocity = CalamityUtils.CalculatePredictiveAimToTargetMaxUpdates(spawnSpot, target, 20f, MaxUpdate); if (targetDist < 1400f) { From f88055785dc1ec828d7b8d30ff09111676e59083 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 26 Mar 2024 00:05:22 -0500 Subject: [PATCH 24/32] Rev+ Skeletron Hand slap fairness. --- .../VanillaNPCAIOverrides/Bosses/SkeletronAI.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs index be9ad7e510..911ce5acbd 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs @@ -218,7 +218,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Teleport while not despawning if (npc.ai[1] != 3f) { - int dustType = 91; + int dustType = DustID.GemDiamond; // Post-teleport if (npc.ai[3] == -60f) @@ -868,7 +868,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { int teleportDust = Dust.NewDust(npc.position, npc.width, npc.height, DustID.GemDiamond, 0f, 0f, 200, default, 3f); Main.dust[teleportDust].noGravity = true; - Main.dust[teleportDust].velocity.X = Main.dust[teleportDust].velocity.X * 2f; + Main.dust[teleportDust].velocity.X *= 2f; } // New location @@ -892,6 +892,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses else skeletronLifeRatio = Main.npc[(int)npc.ai[1]].life / (float)Main.npc[(int)npc.ai[1]].lifeMax; + // This bool exists for fairness so the hands don't slap when Skeletron is in phase 3 and getting ready to do the new charge + bool cancelSlap = Main.npc[(int)npc.ai[1]].ai[2] >= ChargeGateValue; + // Fire skulls from hands at the end of each slap phase (master mode only) bool phase2 = skeletronLifeRatio < 0.5f; @@ -920,7 +923,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Main.npc[(int)npc.ai[1]].ai[1] == 3f && npc.timeLeft > 10) npc.timeLeft = 10; - if (Main.npc[(int)npc.ai[1]].ai[1] != 0f) + if (Main.npc[(int)npc.ai[1]].ai[1] != 0f || cancelSlap) { float maxX = velocityIncrement * 100f * velocityMultiplier; float maxY = velocityIncrement * 100f * velocityMultiplier; @@ -1070,14 +1073,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.damage = npc.defDamage; npc.ai[3] += 1f; - if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > HandSwipeDistance) + if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > HandSwipeDistance || cancelSlap) { npc.ai[2] = 3f; npc.ai[3] = 0f; npc.netUpdate = true; // Spawn projectiles - if (masterMode && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + if (masterMode && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && !cancelSlap) { if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -1130,14 +1133,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.damage = npc.defDamage; npc.ai[3] += 1f; - if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > HandSwipeDistance) + if (npc.ai[3] >= handSwipeDuration || Vector2.Distance(Main.npc[(int)npc.ai[1]].Center, npc.Center) > HandSwipeDistance || cancelSlap) { npc.ai[2] = 0f; npc.ai[3] = 0f; npc.netUpdate = true; // Spawn projectiles - if (masterMode && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) + if (masterMode && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height) && !cancelSlap) { if (Main.netMode != NetmodeID.MultiplayerClient) { From d0da964113d0fe06345815e4e1c838737f858b43 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 26 Mar 2024 01:21:11 -0500 Subject: [PATCH 25/32] 1 - Death Mode Skeletron Prime done. 2 - Gave Pogo Stick the same nerf Slime Mount got. --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Projectiles/CalamityGlobalProjectile.cs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 99f928f701..8ae6e627da 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1130,7 +1130,7 @@ namespace CalamityMod.CalPlayer } else { - if (Player.mount.Type == MountID.Slime) + if (Player.mount.Type == MountID.Slime || Player.mount.Type == MountID.PogoStick) Player.velocity.X *= 0.91f; else if (Player.mount.Type == MountID.QueenSlime) Player.velocity.X *= 0.95f; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 4806b351bb..628690cc04 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -353,7 +353,7 @@ namespace CalamityMod.Projectiles homingEndTime += 60f; // Stop homing when within a certain distance of the target - if (Vector2.Distance(projectile.Center, Main.player[num133].Center) < 80f && projectile.ai[1] < homingEndTime) + if (Vector2.Distance(projectile.Center, Main.player[num133].Center) < 96f && projectile.ai[1] < homingEndTime) projectile.ai[1] = homingEndTime; if (projectile.ai[1] < homingEndTime && projectile.ai[1] > homingStartTime) @@ -2414,6 +2414,10 @@ namespace CalamityMod.Projectiles float amount = MathHelper.Lerp(minAcceleration, maxAcceleration, Utils.GetLerpValue(spreadOutCutoffTime, 30f, projectile.timeLeft, clamped: true)); projectile.velocity = Vector2.SmoothStep(projectile.velocity, velocity, amount); + + // Stop homing when within a certain distance of the target + if (Vector2.Distance(projectile.Center, Main.player[playerIndex].Center) < 96f && projectile.timeLeft > homeInCutoffTime) + projectile.timeLeft = (int)homeInCutoffTime; } if (projectile.timeLeft <= 3) From 576e8d094910fc491781bd08c481dd4fe87f780b Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:25:23 +0700 Subject: [PATCH 26/32] youre welcome calamidle --- Items/Weapons/Rogue/Icebreaker.cs | 1 - Items/Weapons/Rogue/SlickCane.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/Items/Weapons/Rogue/Icebreaker.cs b/Items/Weapons/Rogue/Icebreaker.cs index b08120a77c..18052276e3 100644 --- a/Items/Weapons/Rogue/Icebreaker.cs +++ b/Items/Weapons/Rogue/Icebreaker.cs @@ -22,7 +22,6 @@ namespace CalamityMod.Items.Weapons.Rogue Item.useTime = 14; Item.knockBack = 6.75f; Item.UseSound = SoundID.Item1; - Item.DamageType = DamageClass.Melee; Item.value = CalamityGlobalItem.Rarity5BuyPrice; Item.rare = ItemRarityID.Pink; Item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Rogue/SlickCane.cs b/Items/Weapons/Rogue/SlickCane.cs index 08bd24f33e..8d09496521 100644 --- a/Items/Weapons/Rogue/SlickCane.cs +++ b/Items/Weapons/Rogue/SlickCane.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Weapons.Rogue Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; - Item.DamageType = DamageClass.Melee; Item.useAnimation = 26; Item.useTime = 26; Item.useStyle = ItemUseStyleID.Swing; From b2c7dcaec4387b30047fafe73b023210e62fe418 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:37:28 +0700 Subject: [PATCH 27/32] flipped eye of desolation groundbreaking i know --- Items/SummonItems/EyeofDesolation.png | Bin 726 -> 582 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Items/SummonItems/EyeofDesolation.png b/Items/SummonItems/EyeofDesolation.png index 2c653dc97791a2b312a8a013bcb78850700b8cf9..40416611614c7a209be89458d2bebaf3edbb5fd6 100644 GIT binary patch delta 558 zcmV+}0@3}}1;zxBBYy%7Nkl&OPV;pWpoN zbFP+WaSi(VUo%ZDZLetWdA(6*^WkWi^0{7?ng7K7T94t80fe z=1R&$NEty8(&2S80!_{NEM8uDq&S(1(nhecEmL01j+rxURp#I>B(#69p{wJVi4QiKcRg2={=kG6hH9w z<&`WB?1_FRUw@i%f}pUms*O7DYFDlBNUw{DpP5}_ao8a$c2w16^b|aV{jhlFf|CQO zP`fx8(%6(0WK8?1m?xiu#;ahM#>Ink8l4|rIK34fv+@>*pf6$H#CnXTWKy`_L`XS7 z!5ZO>q0tuRnTg;Qi(_R46yvRgm(ama&ICbt$chLyg@2b!g#KL+%nYR!_7eK(x_f3s z>W957M#nY`gXL`xqBRd_H!P1%jkifAllG9Zf_i+NtRkFMNP-AF0?&Yu$Kzq^(TBc! z>T4jRj3AVituUNjc#GWiykq~AjAbACiqxM8l1YsOx|t{B&Wjj?KPx%kV!;AR7i>4mu*W^VHn4Mr?gy7n%mMX zM^1F$&_be&5Pgx@7wA=eiRwkK`T$}dBBG!-VQ(Uc#DXM76IS%VtSLU=Q@W>^n=8xp z;yxGKeVj>y;L!igIoEye`{LX`{`YmAV^E_8y9WViZ8;9W*ME&~rOM}if1?4gUED2M z*8&9Fn+$-3#T)=nBF_OhRO<`!iQ0?&TPZe)Fn*f-ZUoQb%yE357cQrcz@cV*Q^L_fb z3&8oaApoXhiGLE5N!gCj9uJM5yR60OLLPujL3!nFQH>8>><1ulvL1lt)tx`aJ-zzg zg_LMImH_NX$V#L_TK$+yZfFnV1&0HpzM))(=+0QhNn8wTQ`Tb_5_ye#hp{m}At|<3M zAAA5{;)3a+@z(%^IuwEBRaKGK))xTCHmK9qwUje6>7B%YG4ZzU$ZPV_1g1?)`dAjy}a*W(5tnM!M Date: Tue, 26 Mar 2024 04:23:31 -0500 Subject: [PATCH 28/32] Death Plantera done. --- NPCs/NormalNPCs/PlanterasFreeTentacle.cs | 8 ++++---- NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs index 15da0e704d..b93dd4078f 100644 --- a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs +++ b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs @@ -72,7 +72,7 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.TargetClosest(); // Emit light - Lighting.AddLight((int)((NPC.position.X + (NPC.width / 2)) / 16f), (int)((NPC.position.Y + (NPC.height / 2)) / 16f), 0.2f, 0.4f, 0.1f); + Lighting.AddLight(NPC.Center, 0.2f, 0.4f, 0.1f); // Spore dust if (Main.rand.NextBool(10)) @@ -101,9 +101,9 @@ namespace CalamityMod.NPCs.NormalNPCs } // Velocity and acceleration - Vector2 idealVelocity = new Vector2(death ? 12f : 9f, death ? 5f : 3.5f); - float accelerationX = death ? 0.2f : 0.15f; - float accelerationY = death ? 0.15f : 0.12f; + Vector2 idealVelocity = new Vector2(death ? 8f : 6f, death ? 6f : 4.5f); + float accelerationX = death ? 0.16f : 0.12f; + float accelerationY = death ? 0.12f : 0.09f; if (Main.getGoodWorld) { diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs index a2879abe0b..7ad5cc5df0 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/PlanteraAI.cs @@ -783,7 +783,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses Vector2 spawnOffset = npc.Center + projectileVelocity * 50f; if (Main.netMode != NetmodeID.MultiplayerClient) - Projectile.NewProjectile(npc.GetSource_FromAI(), spawnOffset, projectileVelocity * projectileSpeed, type, damage, 0f, Main.myPlayer); + { + int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), spawnOffset, projectileVelocity * projectileSpeed, type, damage, 0f, Main.myPlayer); + if (Main.rand.NextBool() || !Main.zenithWorld) + Main.projectile[proj].tileCollide = false; + } } if (masterMode && Main.netMode != NetmodeID.MultiplayerClient) From aa419bf5f22d15d8514aa51601dbfc57ef3d644c Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Tue, 26 Mar 2024 05:04:26 -0500 Subject: [PATCH 29/32] Boss damage values complete. --- DataStructures/NPCStats.cs | 166 ++++++++++++++++++------------------- 1 file changed, 83 insertions(+), 83 deletions(-) diff --git a/DataStructures/NPCStats.cs b/DataStructures/NPCStats.cs index faf618f58e..d04671566e 100644 --- a/DataStructures/NPCStats.cs +++ b/DataStructures/NPCStats.cs @@ -735,99 +735,99 @@ namespace CalamityMod { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalSphere), new int[] { 132, 176, 220, 264, 396 } }, { new Tuple(NPCID.MoonLordFreeEye, ProjectileID.PhantasmalDeathray), new int[] { 150, 200, 260, 320, 450 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 236, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 236, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 160, 320, 352, 370, 480 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 198, 315 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 264, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 198, 315 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 236, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 248, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 248, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 160, 320, 352, 384, 480 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 207, 315 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 276, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 207, 315 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 248, 360 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 35, 50, 50, 0, 0 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 200, 300, 332, 356, 600 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 200, 300, 332, 364, 600 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 300, 450 } }, // Split holy fire does: 113, 198, 216, 225, 338 - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 236, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 236, 360 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 312, 450 } }, // Split holy fire does: 113, 198, 216, 234, 338 + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 248, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 120, 192, 220, 248, 360 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 35, 50, 50, 0, 0 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 264, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 198, 315 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 264, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 198, 315 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 264, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 264, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 200, 400, 440, 464, 600 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 276, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 207, 315 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 276, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 105, 171, 189, 207, 315 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 268, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 276, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 228, 252, 276, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 200, 400, 440, 480, 600 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrbArc), new int[] { 150, 264, 288, 300, 450 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.FrostWave), new int[] { 150, 264, 288, 300, 450 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 160, 276, 304, 320, 480 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrb), new int[] { 150, 264, 288, 300, 450 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrbArc), new int[] { 150, 264, 288, 312, 450 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.FrostWave), new int[] { 150, 264, 288, 312, 450 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 160, 276, 304, 332, 480 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrb), new int[] { 150, 264, 288, 312, 450 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 300, 450 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 300, 450 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 160, 276, 304, 320, 480 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 280, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 340, 510 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 300, 450 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 312, 450 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 312, 450 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 160, 276, 304, 332, 480 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 240, 264, 288, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 352, 510 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 150, 264, 288, 312, 450 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 256, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 264, 420 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 140, 220, 244, 264, 420 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 340, 510 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 420, 460, 484, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 340, 510 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 180, 316, 348, 364, 540 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 340, 510 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 352, 510 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 420, 460, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 352, 510 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 180, 316, 348, 380, 540 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 170, 296, 324, 352, 510 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 180, 316, 348, 364, 540 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 200, 340, 376, 396, 600 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 180, 316, 348, 364, 540 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 180, 316, 348, 380, 540 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 200, 340, 376, 412, 600 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 180, 316, 348, 380, 540 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 520, 548, 564, 900 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 444, 660 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 444, 660 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 444, 660 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 444, 660 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 520, 548, 576, 900 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 464, 660 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 464, 660 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 464, 660 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 220, 384, 424, 464, 660 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 544, 900 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 548, 900 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 350, 592, 624, 656, 1050 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 476, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 250, 440, 464, 488, 750 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 544, 900 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 548, 900 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 476, 484, 500, 840 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 280, 468, 484, 500, 840 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 350, 592, 624, 656, 1050 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, @@ -835,17 +835,17 @@ namespace CalamityMod { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 544, 900 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 544, 900 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 548, 900 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 300, 508, 528, 548, 900 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 240, 408, 432, 456, 720 } }, - { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 400, 608, 640, 658, 1200 } }, + { new Tuple(ModContent.NPCType(), ModContent.ProjectileType()), new int[] { 400, 608, 640, 672, 1200 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 1200 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1500 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 1200 } }, - { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 1200 } } + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 664, 1200 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 824, 1500 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 664, 1200 } }, + { new Tuple(ModContent.NPCType(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 664, 1200 } } }; } From c3abbdd8406dac2a239a6953519fe3668659c8c1 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 26 Mar 2024 21:24:22 -0400 Subject: [PATCH 30/32] Changed several weapons to directly set their base damage instead of using a variable The following weapons actually use the variable elsewhere, and thus were not changed: *Belching Saxophone *Biome Blade *Broken Biome Blade *Eternity *Gael's Greatsword *Galaxia *Mirror Blade *Nasty Cholla *True Biome Blade --- Items/Weapons/DraedonsArsenal/Phaseslayer.cs | 3 +-- Items/Weapons/DraedonsArsenal/PlasmaCaster.cs | 4 +--- Items/Weapons/DraedonsArsenal/PulseRifle.cs | 4 +--- Items/Weapons/DraedonsArsenal/TeslaCannon.cs | 3 +-- Items/Weapons/Magic/VenusianTrident.cs | 3 +-- Items/Weapons/Melee/AnarchyBlade.cs | 3 +-- Items/Weapons/Melee/DevilsSunrise.cs | 3 +-- Items/Weapons/Melee/IridescentExcalibur.cs | 4 +--- Items/Weapons/Melee/Nadir.cs | 3 +-- Items/Weapons/Melee/StellarContempt.cs | 3 +-- Items/Weapons/Melee/TheOracle.cs | 3 +-- Items/Weapons/Melee/YateveoBloom.cs | 3 +-- Items/Weapons/Ranged/AngelicShotgun.cs | 3 +-- Items/Weapons/Ranged/PristineFury.cs | 3 +-- Items/Weapons/Ranged/SeasSearing.cs | 3 +-- Items/Weapons/Rogue/BlastBarrel.cs | 3 +-- Items/Weapons/Rogue/BouncingEyeball.cs | 3 +-- Items/Weapons/Rogue/CelestialReaper.cs | 3 +-- Items/Weapons/Rogue/ConsecratedWater.cs | 3 +-- Items/Weapons/Rogue/DefectiveSphere.cs | 3 +-- Items/Weapons/Rogue/DesecratedWater.cs | 3 +-- Items/Weapons/Rogue/GacruxianMollusk.cs | 3 +-- Items/Weapons/Rogue/NanoblackReaper.cs | 3 +-- Items/Weapons/Rogue/PoisonPack.cs | 3 +-- Items/Weapons/Rogue/SkyStabber.cs | 3 +-- Items/Weapons/Rogue/TerraDisk.cs | 3 +-- Items/Weapons/Rogue/TheSyringe.cs | 3 +-- Items/Weapons/Summon/StaffoftheMechworm.cs | 4 +--- Items/Weapons/Summon/YharonsKindleStaff.cs | 3 +-- 29 files changed, 29 insertions(+), 62 deletions(-) diff --git a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs index 338c6173b0..9e01fe7775 100644 --- a/Items/Weapons/DraedonsArsenal/Phaseslayer.cs +++ b/Items/Weapons/DraedonsArsenal/Phaseslayer.cs @@ -16,7 +16,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public class Phaseslayer : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; - public const int Damage = 980; // When below this percentage of charge, the sword is small instead of big. public const float SizeChargeThreshold = 0.25f; // The small sword barely affects damage on its own because damage is already dropping significantly at low charge. @@ -32,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 26; Item.height = 26; - Item.damage = Damage; + Item.damage = 980; Item.DamageType = DamageClass.MeleeNoSpeed; Item.useTime = 24; Item.useAnimation = 24; diff --git a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs index c4b48ac294..04a8bd9965 100644 --- a/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs +++ b/Items/Weapons/DraedonsArsenal/PlasmaCaster.cs @@ -18,8 +18,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PlasmaCasterFire"); - - public const int BaseDamage = 705; public override void SetStaticDefaults() { @@ -33,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 62; Item.height = 30; Item.DamageType = DamageClass.Magic; - Item.damage = BaseDamage; + Item.damage = 705; Item.knockBack = 7f; Item.useTime = 45; Item.useAnimation = 45; diff --git a/Items/Weapons/DraedonsArsenal/PulseRifle.cs b/Items/Weapons/DraedonsArsenal/PulseRifle.cs index a055ed9cfe..8e308785b5 100644 --- a/Items/Weapons/DraedonsArsenal/PulseRifle.cs +++ b/Items/Weapons/DraedonsArsenal/PulseRifle.cs @@ -19,8 +19,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/PulseRifleFire"); - private int BaseDamage = 1200; - public override void SetDefaults() { CalamityGlobalItem modItem = Item.Calamity(); @@ -28,7 +26,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 62; Item.height = 22; Item.DamageType = DamageClass.Ranged; - Item.damage = BaseDamage; + Item.damage = 1200; Item.knockBack = 0f; Item.useTime = 35; Item.useAnimation = 35; diff --git a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs index 8894da192c..423135bfd2 100644 --- a/Items/Weapons/DraedonsArsenal/TeslaCannon.cs +++ b/Items/Weapons/DraedonsArsenal/TeslaCannon.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal public class TeslaCannon : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal"; - private int BaseDamage = 1220; public static readonly SoundStyle FireSound = new("CalamityMod/Sounds/Item/TeslaCannonFire"); @@ -28,7 +27,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal Item.width = 78; Item.height = 28; Item.DamageType = DamageClass.Magic; - Item.damage = BaseDamage; + Item.damage = 1220; Item.knockBack = 10f; Item.useTime = 90; Item.useAnimation = 90; diff --git a/Items/Weapons/Magic/VenusianTrident.cs b/Items/Weapons/Magic/VenusianTrident.cs index 2ac385f9fa..50615a8fa0 100644 --- a/Items/Weapons/Magic/VenusianTrident.cs +++ b/Items/Weapons/Magic/VenusianTrident.cs @@ -11,7 +11,6 @@ namespace CalamityMod.Items.Weapons.Magic public class VenusianTrident : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; - public static int BaseDamage = 256; public override void SetStaticDefaults() { @@ -22,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 70; Item.height = 68; - Item.damage = BaseDamage; + Item.damage = 256; Item.DamageType = DamageClass.Magic; Item.mana = 20; Item.useTime = 25; diff --git a/Items/Weapons/Melee/AnarchyBlade.cs b/Items/Weapons/Melee/AnarchyBlade.cs index bb0ded6b0a..9766aa1a5b 100644 --- a/Items/Weapons/Melee/AnarchyBlade.cs +++ b/Items/Weapons/Melee/AnarchyBlade.cs @@ -14,13 +14,12 @@ namespace CalamityMod.Items.Weapons.Melee public class AnarchyBlade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - private static int BaseDamage = 150; public override void SetDefaults() { Item.width = 114; Item.height = 122; - Item.damage = BaseDamage; + Item.damage = 150; Item.DamageType = DamageClass.Melee; Item.useAnimation = 19; Item.useTime = 19; diff --git a/Items/Weapons/Melee/DevilsSunrise.cs b/Items/Weapons/Melee/DevilsSunrise.cs index a4df78b470..54696596dd 100644 --- a/Items/Weapons/Melee/DevilsSunrise.cs +++ b/Items/Weapons/Melee/DevilsSunrise.cs @@ -12,7 +12,6 @@ namespace CalamityMod.Items.Weapons.Melee public class DevilsSunrise : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public static int BaseDamage = 420; public override void SetDefaults() { @@ -22,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.noMelee = true; Item.noUseGraphic = true; Item.channel = true; - Item.damage = BaseDamage; + Item.damage = 420; Item.knockBack = 4f; Item.useAnimation = 25; Item.useTime = 5; diff --git a/Items/Weapons/Melee/IridescentExcalibur.cs b/Items/Weapons/Melee/IridescentExcalibur.cs index 8ec44a3f79..03d2f65725 100644 --- a/Items/Weapons/Melee/IridescentExcalibur.cs +++ b/Items/Weapons/Melee/IridescentExcalibur.cs @@ -19,8 +19,6 @@ namespace CalamityMod.Items.Weapons.Melee { public new string LocalizationCategory => "Items.Weapons.Melee"; - private static int BaseDamage = 3000; - private int MaxBeamTypes = 12; private int BeamType = 0; @@ -38,7 +36,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 112; Item.height = 112; - Item.damage = BaseDamage; + Item.damage = 3000; Item.useAnimation = Item.useTime = 15; Item.useStyle = ItemUseStyleID.Swing; Item.useTurn = true; diff --git a/Items/Weapons/Melee/Nadir.cs b/Items/Weapons/Melee/Nadir.cs index cdd08c10b9..b35dd08e3d 100644 --- a/Items/Weapons/Melee/Nadir.cs +++ b/Items/Weapons/Melee/Nadir.cs @@ -11,7 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class Nadir : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public static int BaseDamage = 365; public static float ProjShootSpeed = 20f; public static int FadeoutSpeed = 20; @@ -26,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.height = 144; Item.noUseGraphic = true; Item.DamageType = DamageClass.Melee; - Item.damage = BaseDamage; + Item.damage = 365; Item.knockBack = 8f; Item.useAnimation = 18; Item.useTime = 18; diff --git a/Items/Weapons/Melee/StellarContempt.cs b/Items/Weapons/Melee/StellarContempt.cs index 4aa65b8152..6821102e8b 100644 --- a/Items/Weapons/Melee/StellarContempt.cs +++ b/Items/Weapons/Melee/StellarContempt.cs @@ -9,7 +9,6 @@ namespace CalamityMod.Items.Weapons.Melee public class StellarContempt : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public static int BaseDamage = 650; public static float Speed = 25f; public override void SetDefaults() @@ -17,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 74; Item.height = 74; Item.DamageType = DamageClass.MeleeNoSpeed; - Item.damage = BaseDamage; + Item.damage = 650; Item.knockBack = 28f; Item.useTime = 45; Item.useAnimation = 45; diff --git a/Items/Weapons/Melee/TheOracle.cs b/Items/Weapons/Melee/TheOracle.cs index 7f85794de6..9d1ec7a589 100644 --- a/Items/Weapons/Melee/TheOracle.cs +++ b/Items/Weapons/Melee/TheOracle.cs @@ -14,7 +14,6 @@ namespace CalamityMod.Items.Weapons.Melee public class TheOracle : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public const int YoyoBaseDamage = 170; public const int AuraBaseDamage = 100; public const int AuraMaxDamage = 220; @@ -30,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 58; Item.height = 50; Item.DamageType = DamageClass.MeleeNoSpeed; - Item.damage = YoyoBaseDamage; + Item.damage = 170; Item.knockBack = 4f; Item.useTime = 20; Item.useAnimation = 20; diff --git a/Items/Weapons/Melee/YateveoBloom.cs b/Items/Weapons/Melee/YateveoBloom.cs index 345755a9a2..0eafce19ab 100644 --- a/Items/Weapons/Melee/YateveoBloom.cs +++ b/Items/Weapons/Melee/YateveoBloom.cs @@ -11,7 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class YateveoBloom : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public static int BaseDamage = 30; //Spear is 20 damage, Flail is 30 damage public static float ShootSpeed = 12f; public static float SpearSpeed = 4.5f; @@ -24,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 42; Item.height = 62; - Item.damage = BaseDamage; + Item.damage = 30; // Spear is 20 damage, Flail is 30 damage Item.knockBack = 5f; Item.useAnimation = Item.useTime = 22; diff --git a/Items/Weapons/Ranged/AngelicShotgun.cs b/Items/Weapons/Ranged/AngelicShotgun.cs index 6405ce8760..687249d4e2 100644 --- a/Items/Weapons/Ranged/AngelicShotgun.cs +++ b/Items/Weapons/Ranged/AngelicShotgun.cs @@ -15,14 +15,13 @@ namespace CalamityMod.Items.Weapons.Ranged public class AngelicShotgun : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - private static int BaseDamage = 96; private static float BulletSpeed = 12f; public override void SetDefaults() { Item.width = 86; Item.height = 38; - Item.damage = BaseDamage; + Item.damage = 96; Item.knockBack = 3f; Item.DamageType = DamageClass.Ranged; Item.noMelee = true; diff --git a/Items/Weapons/Ranged/PristineFury.cs b/Items/Weapons/Ranged/PristineFury.cs index 42852a4d42..70706aad46 100644 --- a/Items/Weapons/Ranged/PristineFury.cs +++ b/Items/Weapons/Ranged/PristineFury.cs @@ -15,7 +15,6 @@ namespace CalamityMod.Items.Weapons.Ranged public new string LocalizationCategory => "Items.Weapons.Ranged"; public int frameCounter = 0; public int frame = 0; - public static int BaseDamage = 80; public bool Trail = true; public override void SetStaticDefaults() @@ -27,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 100; Item.height = 46; - Item.damage = BaseDamage; + Item.damage = 80; Item.DamageType = DamageClass.Ranged; Item.useTime = 3; Item.useAnimation = 15; diff --git a/Items/Weapons/Ranged/SeasSearing.cs b/Items/Weapons/Ranged/SeasSearing.cs index 95b3187b14..f2094ebd3d 100644 --- a/Items/Weapons/Ranged/SeasSearing.cs +++ b/Items/Weapons/Ranged/SeasSearing.cs @@ -10,7 +10,6 @@ namespace CalamityMod.Items.Weapons.Ranged public class SeasSearing : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Ranged"; - public static int BaseDamage = 40; public override void SetStaticDefaults() { @@ -22,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 88; Item.height = 44; - Item.damage = BaseDamage; + Item.damage = 40; Item.DamageType = DamageClass.Ranged; Item.useTime = 5; Item.useAnimation = 10; diff --git a/Items/Weapons/Rogue/BlastBarrel.cs b/Items/Weapons/Rogue/BlastBarrel.cs index d5899a848d..819e65bdfa 100644 --- a/Items/Weapons/Rogue/BlastBarrel.cs +++ b/Items/Weapons/Rogue/BlastBarrel.cs @@ -9,12 +9,11 @@ namespace CalamityMod.Items.Weapons.Rogue { public class BlastBarrel : RogueWeapon { - public const int BaseDamage = 32; public override void SetDefaults() { Item.width = 48; Item.height = 48; - Item.damage = BaseDamage; + Item.damage = 32; Item.noMelee = true; Item.noUseGraphic = true; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Rogue/BouncingEyeball.cs b/Items/Weapons/Rogue/BouncingEyeball.cs index 4b0b9c556f..15fe25568a 100644 --- a/Items/Weapons/Rogue/BouncingEyeball.cs +++ b/Items/Weapons/Rogue/BouncingEyeball.cs @@ -9,7 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue { public class BouncingEyeball : RogueWeapon { - public const int BaseDamage = 16; public override void SetStaticDefaults() { } @@ -17,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 26; Item.height = 26; - Item.damage = BaseDamage; + Item.damage = 16; Item.useTime = 23; Item.useAnimation = 23; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Rogue/CelestialReaper.cs b/Items/Weapons/Rogue/CelestialReaper.cs index 277ebe0847..cc669d76ea 100644 --- a/Items/Weapons/Rogue/CelestialReaper.cs +++ b/Items/Weapons/Rogue/CelestialReaper.cs @@ -9,13 +9,12 @@ namespace CalamityMod.Items.Weapons.Rogue { public class CelestialReaper : RogueWeapon { - public const int BaseDamage = 140; public override void SetDefaults() { Item.width = 66; Item.height = 76; - Item.damage = BaseDamage; + Item.damage = 140; Item.useAnimation = 31; Item.useTime = 31; Item.noMelee = true; diff --git a/Items/Weapons/Rogue/ConsecratedWater.cs b/Items/Weapons/Rogue/ConsecratedWater.cs index d65310a62d..8811ff1354 100644 --- a/Items/Weapons/Rogue/ConsecratedWater.cs +++ b/Items/Weapons/Rogue/ConsecratedWater.cs @@ -9,13 +9,12 @@ namespace CalamityMod.Items.Weapons.Rogue { public class ConsecratedWater : RogueWeapon { - public const int BaseDamage = 48; public override void SetDefaults() { Item.width = 22; Item.height = 24; - Item.damage = BaseDamage; + Item.damage = 48; Item.useAnimation = Item.useTime = 29; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/DefectiveSphere.cs b/Items/Weapons/Rogue/DefectiveSphere.cs index ddd1a40893..aba7223a7a 100644 --- a/Items/Weapons/Rogue/DefectiveSphere.cs +++ b/Items/Weapons/Rogue/DefectiveSphere.cs @@ -10,14 +10,13 @@ namespace CalamityMod.Items.Weapons.Rogue { public class DefectiveSphere : RogueWeapon { - public static int BaseDamage = 116; public static float Speed = 15f; public override void SetDefaults() { Item.width = 42; Item.height = 44; - Item.damage = BaseDamage; + Item.damage = 116; Item.knockBack = 5f; Item.useAnimation = 13; Item.useTime = 13; diff --git a/Items/Weapons/Rogue/DesecratedWater.cs b/Items/Weapons/Rogue/DesecratedWater.cs index d06bf5754c..386e06ff3a 100644 --- a/Items/Weapons/Rogue/DesecratedWater.cs +++ b/Items/Weapons/Rogue/DesecratedWater.cs @@ -9,13 +9,12 @@ namespace CalamityMod.Items.Weapons.Rogue { public class DesecratedWater : RogueWeapon { - public const int BaseDamage = 55; public override void SetDefaults() { Item.width = 22; Item.height = 24; - Item.damage = BaseDamage; + Item.damage = 55; Item.useAnimation = 29; Item.useTime = 29; Item.noMelee = true; diff --git a/Items/Weapons/Rogue/GacruxianMollusk.cs b/Items/Weapons/Rogue/GacruxianMollusk.cs index 239d8a58c7..e40cd8c200 100644 --- a/Items/Weapons/Rogue/GacruxianMollusk.cs +++ b/Items/Weapons/Rogue/GacruxianMollusk.cs @@ -9,7 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue { public class GacruxianMollusk : RogueWeapon { - public static int BaseDamage = 36; public static float Knockback = 5f; public static float Speed = 15f; @@ -18,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue Item.width = 24; Item.height = 22; Item.DamageType = RogueDamageClass.Instance; - Item.damage = BaseDamage; + Item.damage = 36; Item.knockBack = Knockback; Item.autoReuse = true; Item.useTime = 26; diff --git a/Items/Weapons/Rogue/NanoblackReaper.cs b/Items/Weapons/Rogue/NanoblackReaper.cs index c6994bb104..10367f8607 100644 --- a/Items/Weapons/Rogue/NanoblackReaper.cs +++ b/Items/Weapons/Rogue/NanoblackReaper.cs @@ -14,7 +14,6 @@ namespace CalamityMod.Items.Weapons.Rogue [LegacyName("NanoblackReaperMelee", "NanoblackReaperRogue")] public class NanoblackReaper : RogueWeapon { - public static int BaseDamage = 130; public static float Knockback = 9f; public static float Speed = 16f; @@ -22,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 78; Item.height = 64; - Item.damage = BaseDamage; + Item.damage = 130; Item.knockBack = Knockback; Item.useTime = 6; Item.useAnimation = 6; diff --git a/Items/Weapons/Rogue/PoisonPack.cs b/Items/Weapons/Rogue/PoisonPack.cs index 6530eed821..bf836919b4 100644 --- a/Items/Weapons/Rogue/PoisonPack.cs +++ b/Items/Weapons/Rogue/PoisonPack.cs @@ -10,14 +10,13 @@ namespace CalamityMod.Items.Weapons.Rogue { public class PoisonPack : RogueWeapon { - private static int baseDamage = 20; private static float baseKnockback = 1.8f; public override void SetDefaults() { Item.width = 14; Item.height = 14; - Item.damage = baseDamage; + Item.damage = 20; Item.DamageType = RogueDamageClass.Instance; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/SkyStabber.cs b/Items/Weapons/Rogue/SkyStabber.cs index 8b533eafce..d7fa7bdb55 100644 --- a/Items/Weapons/Rogue/SkyStabber.cs +++ b/Items/Weapons/Rogue/SkyStabber.cs @@ -11,14 +11,13 @@ namespace CalamityMod.Items.Weapons.Rogue { public class SkyStabber : RogueWeapon { - private static int damage = 50; private static int knockBack = 2; public override void SetDefaults() { Item.width = 16; Item.height = 16; - Item.damage = damage; + Item.damage = 50; Item.DamageType = RogueDamageClass.Instance; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Rogue/TerraDisk.cs b/Items/Weapons/Rogue/TerraDisk.cs index bdfdbae8b1..9d572bc370 100644 --- a/Items/Weapons/Rogue/TerraDisk.cs +++ b/Items/Weapons/Rogue/TerraDisk.cs @@ -10,14 +10,13 @@ namespace CalamityMod.Items.Weapons.Rogue { public class TerraDisk : RogueWeapon { - public static int BaseDamage = 100; public static float Speed = 12f; public override void SetDefaults() { Item.width = 46; Item.height = 46; - Item.damage = BaseDamage; + Item.damage = 100; Item.knockBack = 4f; Item.useAnimation = Item.useTime = 30; Item.autoReuse = true; diff --git a/Items/Weapons/Rogue/TheSyringe.cs b/Items/Weapons/Rogue/TheSyringe.cs index 15edcfe355..8f4f3a5cfc 100644 --- a/Items/Weapons/Rogue/TheSyringe.cs +++ b/Items/Weapons/Rogue/TheSyringe.cs @@ -9,7 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue { public class TheSyringe : RogueWeapon { - public static int BaseDamage = 60; public static float Knockback = 5f; public static float Speed = 15f; @@ -17,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 14; Item.height = 50; - Item.damage = BaseDamage; + Item.damage = 60; Item.knockBack = Knockback; Item.autoReuse = true; Item.useTime = 15; diff --git a/Items/Weapons/Summon/StaffoftheMechworm.cs b/Items/Weapons/Summon/StaffoftheMechworm.cs index 2184f19d63..09cfdd22c1 100644 --- a/Items/Weapons/Summon/StaffoftheMechworm.cs +++ b/Items/Weapons/Summon/StaffoftheMechworm.cs @@ -12,13 +12,11 @@ namespace CalamityMod.Items.Weapons.Summon public class StaffoftheMechworm : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; - // This value is also referenced by the God Slayer and Auric summoner helmets. - public const int BaseDamage = 100; // originally 325 public override void SetDefaults() { Item.width = 68; Item.height = 68; - Item.damage = BaseDamage; + Item.damage = 100; Item.mana = 10; Item.useTime = Item.useAnimation = 10; // 9 because of useStyle 1 Item.useStyle = ItemUseStyleID.Swing; diff --git a/Items/Weapons/Summon/YharonsKindleStaff.cs b/Items/Weapons/Summon/YharonsKindleStaff.cs index b9b0c527c5..a8416807f2 100644 --- a/Items/Weapons/Summon/YharonsKindleStaff.cs +++ b/Items/Weapons/Summon/YharonsKindleStaff.cs @@ -13,13 +13,12 @@ namespace CalamityMod.Items.Weapons.Summon public class YharonsKindleStaff : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Summon"; - public const int Damage = 300; public const float ReboundRamDamageFactor = 2f; public override void SetDefaults() { Item.width = 80; Item.height = 74; - Item.damage = Damage; + Item.damage = 300; Item.mana = 10; Item.useStyle = ItemUseStyleID.Swing; Item.useTime = Item.useAnimation = 10; From f9ee8ea9920c0bacfb29a0ee0bbc17d59fff09aa Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Wed, 27 Mar 2024 03:33:15 -0500 Subject: [PATCH 31/32] 1 - Reduced Giant Shell's defense reduction post-hit from 5 to 3. 2 - Removed the Worm Scarf nerf. 3 - Buffed Bloody Worm Scarf DR from 7% to 12%. --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- Items/Accessories/BloodyWormScarf.cs | 2 +- Items/CalamityGlobalItem.cs | 3 --- Items/CalamityGlobalItemTooltip.cs | 4 ---- Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 5 files changed, 3 insertions(+), 10 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 8ae6e627da..0345abef9d 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -2584,7 +2584,7 @@ namespace CalamityMod.CalPlayer if (giantShellPostHit > 0) { - Player.statDefense -= 5; + Player.statDefense -= 3; giantShellPostHit--; } if (giantShellPostHit < 0) diff --git a/Items/Accessories/BloodyWormScarf.cs b/Items/Accessories/BloodyWormScarf.cs index 56351d1518..3ea010f7d2 100644 --- a/Items/Accessories/BloodyWormScarf.cs +++ b/Items/Accessories/BloodyWormScarf.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories { CalamityPlayer modPlayer = player.Calamity(); modPlayer.bloodyWormTooth = true; - player.endurance += 0.07f; + player.endurance += 0.12f; } public override void AddRecipes() diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 67f7ef1f85..adff64ff85 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1538,9 +1538,6 @@ namespace CalamityMod.Items if (item.type == ItemID.FleshKnuckles || item.type == ItemID.BerserkerGlove || item.type == ItemID.HeroShield) modPlayer.fleshKnuckles = true; - if (item.type == ItemID.WormScarf) - player.endurance -= 0.07f; - if (item.type == ItemID.RoyalGel) modPlayer.royalGel = true; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index cb4709ba7e..34b784213a 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -701,10 +701,6 @@ namespace CalamityMod.Items EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("15%", "9%")); } - // Worm Scarf only gives 10% DR instead of 17% - if (item.type == ItemID.WormScarf) - EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("17%", "10%")); - // Feral Claws line melee speed and true melee damage changes if (item.type == ItemID.FeralClaws) EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("12%", "10%")); diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 31d7529e1a..0ebfc65ed3 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -310,7 +310,7 @@ BloodyWormScarf: { DisplayName: Bloody Worm Scarf Tooltip: ''' - 7% increased damage reduction + 12% increased damage reduction 10% increased melee damage ''' } From 8d0b36a805a4d91784d4daf421311e44b0937714 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Wed, 27 Mar 2024 08:13:25 -0400 Subject: [PATCH 32/32] Raised Moon Lord's target position to make the core easier to hit Small Astral Blade and Astral Pike buffs --- Items/Weapons/Melee/AstralBlade.cs | 9 ++++---- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 2 +- .../Bosses/MoonLordAI.cs | 8 ++++--- Projectiles/Melee/Spears/AstralPikeProj.cs | 21 ++++++++----------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Items/Weapons/Melee/AstralBlade.cs b/Items/Weapons/Melee/AstralBlade.cs index fb197a95f6..37eeb4ef35 100644 --- a/Items/Weapons/Melee/AstralBlade.cs +++ b/Items/Weapons/Melee/AstralBlade.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 80; Item.height = 80; - Item.damage = 125; - Item.DamageType = DamageClass.Melee; + Item.damage = 142; + Item.DamageType = TrueMeleeDamageClass.Instance; Item.useTime = 12; Item.useAnimation = 12; Item.useTurn = true; @@ -53,7 +53,8 @@ namespace CalamityMod.Items.Weapons.Melee return; float lifeRatio = MathHelper.Clamp(target.life / (float)target.lifeMax, 0f, 1f); - float multiplier = MathHelper.Lerp(1f, 1.25f, lifeRatio); + float maxMultiplier = 1.25f; + float multiplier = MathHelper.Lerp(1f, maxMultiplier, lifeRatio); modifiers.SourceDamage *= multiplier; modifiers.Knockback *= multiplier; @@ -65,7 +66,7 @@ namespace CalamityMod.Items.Weapons.Melee bool blue = Main.rand.NextBool(); float angleStart = Main.rand.NextFloat(0f, MathHelper.TwoPi); - float var = 0.05f + (1.25f - multiplier); + float var = 0.05f + (maxMultiplier - multiplier); for (float angle = 0f; angle < MathHelper.TwoPi; angle += var) { blue = !blue; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 814cbf278e..0a483508e1 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -124,7 +124,7 @@ AstralBlade: { AstralPike: { DisplayName: Astral Pike - Tooltip: Summons astral star swarms on critical hits + Tooltip: Summons astral star swarms on hit } AstralScythe: { diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/MoonLordAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/MoonLordAI.cs index 68cc7251c2..52a67431e5 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/MoonLordAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/MoonLordAI.cs @@ -185,7 +185,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.dontTakeDamage = true; npc.TargetClosest(false); - Vector2 targetDistance = Main.player[npc.target].Center - npc.Center + new Vector2(0f, 130f); + Vector2 targetDistance = Main.player[npc.target].Center - npc.Center; if (targetDistance.Length() > 20f) { float velocity = death ? 9.5f : 9.25f; @@ -211,8 +211,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses default: break; } + // Move slower if the head is doing the phantasmal deathray if (Main.npc[(int)npc.localAI[2]].ai[0] == 1f) - velocity -= 2f; + velocity -= 2.25f; Vector2 desiredVelocity = Vector2.Normalize(targetDistance - npc.velocity) * velocity; Vector2 velocity2 = npc.velocity; @@ -264,7 +265,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses npc.dontTakeDamage = false; npc.TargetClosest(false); - Vector2 targetDistanceVulnerable = Main.player[npc.target].Center - npc.Center + new Vector2(0f, 130f); + Vector2 targetDistanceVulnerable = Main.player[npc.target].Center - npc.Center; if (targetDistanceVulnerable.Length() > 20f) { float velocity = death ? 9.5f : 9.25f; @@ -290,6 +291,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses default: break; } + // Move slower if the head is doing the phantasmal deathray if (Main.npc[(int)npc.localAI[2]].ai[0] == 1f) velocity -= 2f; diff --git a/Projectiles/Melee/Spears/AstralPikeProj.cs b/Projectiles/Melee/Spears/AstralPikeProj.cs index ac989bd044..2c1f92d4d1 100644 --- a/Projectiles/Melee/Spears/AstralPikeProj.cs +++ b/Projectiles/Melee/Spears/AstralPikeProj.cs @@ -40,21 +40,18 @@ namespace CalamityMod.Projectiles.Melee.Spears public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 300); - if (hit.Crit) + var source = Projectile.GetSource_FromThis(); + for (int i = 0; i < 3; i++) { - var source = Projectile.GetSource_FromThis(); - for (int i = 0; i < 3; i++) - { - if (Projectile.owner == Main.myPlayer) + if (Projectile.owner == Main.myPlayer) + { + Projectile star = CalamityUtils.ProjectileBarrage(source, Projectile.Center, target.Center, Main.rand.NextBool(), 800f, 800f, 800f, 800f, 10f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.33), 1f, Projectile.owner, true); + if (star.whoAmI.WithinBounds(Main.maxProjectiles)) { - Projectile star = CalamityUtils.ProjectileBarrage(source, Projectile.Center, target.Center, Main.rand.NextBool(), 800f, 800f, 800f, 800f, 10f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.4), 1f, Projectile.owner, true); - if (star.whoAmI.WithinBounds(Main.maxProjectiles)) - { - star.DamageType = DamageClass.Melee; - star.ai[0] = 3f; - } + star.DamageType = DamageClass.Melee; + star.ai[0] = 3f; } - } + } } } }