From 48b1c1dbf8dcb4479f6dcb995ca0e525a5c0c54e Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+termigator1359@users.noreply.github.com> Date: Fri, 18 Dec 2020 09:12:45 -0500 Subject: [PATCH 01/12] fixed boss zen buff still being applied when the config is turned off --- CalPlayer/CalamityPlayerMiscEffects.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 6f76b8ef88..c2aabc3695 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -67,7 +67,7 @@ namespace CalamityMod.CalPlayer CalamityPlayer.areThereAnyDamnEvents = CalamityGlobalNPC.AnyEvents(player); // If any boss NPC is active, apply Zen to the player to reduce spawn rate - if (CalamityPlayer.areThereAnyDamnBosses) + if (CalamityPlayer.areThereAnyDamnBosses && CalamityConfig.Instance.BossZen) { if (player.whoAmI == Main.myPlayer) player.AddBuff(ModContent.BuffType(), 2, false); From e2e5f92ac6885b35287a63c7664ea67e2d438bc4 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+termigator1359@users.noreply.github.com> Date: Sat, 19 Dec 2020 10:18:25 -0500 Subject: [PATCH 02/12] added forceMinion safety because I totally didn't forget this one --- .../DraedonsArsenal/SnakeEyesSummon.cs | 11 ++++--- Projectiles/Summon/PlaguebringerSummon.cs | 3 +- Projectiles/Summon/PlateProjectile.cs | 4 +-- .../Summon/ProfanedSoulCrystalProjectiles.cs | 7 +++-- Projectiles/Summon/SolarPixie.cs | 3 +- Projectiles/Summon/StormjawBaby.cs | 30 +++++++++++-------- .../Summon/TacticalPlagueEngineSummon.cs | 9 +++--- 7 files changed, 39 insertions(+), 28 deletions(-) diff --git a/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs b/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs index b65237fe32..9253d9304b 100644 --- a/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs +++ b/Projectiles/DraedonsArsenal/SnakeEyesSummon.cs @@ -203,10 +203,13 @@ namespace CalamityMod.Projectiles.DraedonsArsenal { Projectile laser = Projectile.NewProjectileDirect(projectile.Center + Utils.Vector2FromElipse(EyeRotation.ToRotationVector2(), projectile.Size * 0.5f * EyeOutwardness), projectile.DirectionTo(npc.Center) * 4f, ProjectileID.UFOLaser, projectile.damage, projectile.knockBack, projectile.owner); - laser.timeLeft *= 2; - laser.tileCollide = false; - laser.netUpdate = true; - laser.Calamity().forceMinion = true; + if (laser.whoAmI.WithinBounds(Main.maxProjectiles)) + { + laser.timeLeft *= 2; + laser.tileCollide = false; + laser.netUpdate = true; + laser.Calamity().forceMinion = true; + } } projectile.ai[1]++; OldCenter = projectile.Center; diff --git a/Projectiles/Summon/PlaguebringerSummon.cs b/Projectiles/Summon/PlaguebringerSummon.cs index fb8a9e01f4..ebe12c499e 100644 --- a/Projectiles/Summon/PlaguebringerSummon.cs +++ b/Projectiles/Summon/PlaguebringerSummon.cs @@ -102,7 +102,8 @@ namespace CalamityMod.Projectiles.Summon if (dealDamage) { Projectile aura = Projectile.NewProjectileDirect(npc.Center, Vector2.Zero, ModContent.ProjectileType(), dmg, 0f, projectile.owner, l); - aura.Calamity().forceMinion = true; + if (aura.whoAmI.WithinBounds(Main.maxProjectiles)) + aura.Calamity().forceMinion = true; } } } diff --git a/Projectiles/Summon/PlateProjectile.cs b/Projectiles/Summon/PlateProjectile.cs index cbdac97176..62cc49102e 100644 --- a/Projectiles/Summon/PlateProjectile.cs +++ b/Projectiles/Summon/PlateProjectile.cs @@ -51,8 +51,8 @@ namespace CalamityMod.Projectiles.Summon float SpeedX = -projectile.velocity.X * Main.rand.Next(40, 70) * 0.01f + Main.rand.Next(-20, 21) * 0.4f; float SpeedY = -projectile.velocity.Y * Main.rand.Next(40, 70) * 0.01f + Main.rand.Next(-20, 21) * 0.4f; int shard = Projectile.NewProjectile(projectile.Center.X + SpeedX, projectile.Center.Y + SpeedY, SpeedX, SpeedY, ProjectileID.CrystalShard, projectile.damage / 2, 0f, projectile.owner); - Main.projectile[shard].Calamity().forceMinion = true; - ProjectileID.Sets.MinionShot[Main.projectile[shard].type] = true; + if (shard.WithinBounds(Main.maxProjectiles)) + Main.projectile[idx].Calamity().forceMinion = true; } } } diff --git a/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs b/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs index 905d11af2a..7feaab6fe9 100644 --- a/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs +++ b/Projectiles/Summon/ProfanedSoulCrystalProjectiles.cs @@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Summon velocity.Normalize(); velocity *= 8f; int proj = Projectile.NewProjectile(projectile.Center + outerPosVec, velocity, ModContent.ProjectileType(), damage, projectile.knockBack, projectile.owner, 0f, 0f); - if (proj != -1) + if (proj.WithinBounds(Main.maxProjectiles)) Main.projectile[proj].Calamity().forceMinion = true; if (innerSplits > 0) //only runs if there's still inner splits to create { @@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Summon velocity.Normalize(); velocity *= 5f; proj = Projectile.NewProjectile(projectile.Center + innerPosVec, velocity, ModContent.ProjectileType(), damage, projectile.knockBack, projectile.owner, 0f, 0f); - if (proj != -1) + if (proj.WithinBounds(Main.maxProjectiles)) Main.projectile[proj].Calamity().forceMinion = true; } innerSplits--; @@ -627,7 +627,8 @@ namespace CalamityMod.Projectiles.Summon correctedVelocity.Normalize(); correctedVelocity *= 25f; int proj = Projectile.NewProjectile(pos, correctedVelocity, ModContent.ProjectileType(), (int)((double)projectile.damage * 1.5f), projectile.knockBack, projectile.owner, 2); - Main.projectile[proj].Calamity().forceMinion = true; + if (proj.WithinBounds(Main.maxProjectiles)) + Main.projectile[proj].Calamity().forceMinion = true; ((ProfanedCrystalRangedHuges)Main.projectile[proj].modProjectile).boomerSwarm = true; } } diff --git a/Projectiles/Summon/SolarPixie.cs b/Projectiles/Summon/SolarPixie.cs index 1f1b922daa..9718915629 100644 --- a/Projectiles/Summon/SolarPixie.cs +++ b/Projectiles/Summon/SolarPixie.cs @@ -132,7 +132,8 @@ namespace CalamityMod.Projectiles.Summon velocity.Normalize(); velocity *= shootSpeed; int beam = Projectile.NewProjectile(source, velocity, ProjectileID.HeatRay, projectile.damage, projectile.knockBack, projectile.owner); - Main.projectile[beam].Calamity().forceMinion = true; + if (beam.WithinBounds(Main.maxProjectiles)) + Main.projectile[beam].Calamity().forceMinion = true; projectile.ai[0] = 50f; } } diff --git a/Projectiles/Summon/StormjawBaby.cs b/Projectiles/Summon/StormjawBaby.cs index ca4f622fbf..b691a22377 100644 --- a/Projectiles/Summon/StormjawBaby.cs +++ b/Projectiles/Summon/StormjawBaby.cs @@ -263,12 +263,15 @@ namespace CalamityMod.Projectiles.Summon { Vector2 sparkS = new Vector2(Main.rand.NextFloat(-5f, 5f), Main.rand.NextFloat(-5f, 5f)); int spark = Projectile.NewProjectile(projectile.Center, sparkS, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); - Main.projectile[spark].Calamity().forceMinion = true; - Main.projectile[spark].timeLeft = 120; - Main.projectile[spark].penetrate = 3; - Main.projectile[spark].usesIDStaticNPCImmunity = true; - Main.projectile[spark].idStaticNPCHitCooldown = 10; - Main.projectile[spark].usesLocalNPCImmunity = false; + if (spark.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[spark].Calamity().forceMinion = true; + Main.projectile[spark].timeLeft = 120; + Main.projectile[spark].penetrate = 3; + Main.projectile[spark].usesIDStaticNPCImmunity = true; + Main.projectile[spark].idStaticNPCHitCooldown = 10; + Main.projectile[spark].usesLocalNPCImmunity = false; + } } sparkCounter = 0; } @@ -507,12 +510,15 @@ namespace CalamityMod.Projectiles.Summon { Vector2 sparkS = new Vector2(Main.rand.NextFloat(-5f, 5f), Main.rand.NextFloat(-5f, 5f)); int spark = Projectile.NewProjectile(projectile.Center, sparkS, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); - Main.projectile[spark].Calamity().forceMinion = true; - Main.projectile[spark].timeLeft = 120; - Main.projectile[spark].penetrate = 3; - Main.projectile[spark].usesIDStaticNPCImmunity = true; - Main.projectile[spark].idStaticNPCHitCooldown = 10; - Main.projectile[spark].usesLocalNPCImmunity = false; + if (spark.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[spark].Calamity().forceMinion = true; + Main.projectile[spark].timeLeft = 120; + Main.projectile[spark].penetrate = 3; + Main.projectile[spark].usesIDStaticNPCImmunity = true; + Main.projectile[spark].idStaticNPCHitCooldown = 10; + Main.projectile[spark].usesLocalNPCImmunity = false; + } } sparkCounter = 0; } diff --git a/Projectiles/Summon/TacticalPlagueEngineSummon.cs b/Projectiles/Summon/TacticalPlagueEngineSummon.cs index 68a5b20f98..155c43d720 100644 --- a/Projectiles/Summon/TacticalPlagueEngineSummon.cs +++ b/Projectiles/Summon/TacticalPlagueEngineSummon.cs @@ -150,7 +150,8 @@ namespace CalamityMod.Projectiles.Summon { int idx = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * 18f, ModContent.ProjectileType(), (int)(damage * 1.5), 5f, projectile.owner); - Main.projectile[idx].Calamity().forceMinion = true; + if (idx.WithinBounds(Main.maxProjectiles)) + Main.projectile[idx].Calamity().forceMinion = true; } else { @@ -163,10 +164,8 @@ namespace CalamityMod.Projectiles.Summon damage, knockBack, projectile.owner); // There's airway for a small bug in here, but the potential alterative (that has indeed been appearing), where // the projectile simply cannot exist, is far worse than this. If you have another solution, let me know. - if (idx >= 0 && idx < Main.projectile.Length) - { - Main.projectile[idx].Calamity().forceMinion = true; - } + if (idx.WithinBounds(Main.maxProjectiles)) + Main.projectile[idx].Calamity().forceMinion = true; } } projectile.MinionAntiClump(0.25f); From a8ff09f2429f41b6db8366e3b2507b06eacebb1d Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+termigator1359@users.noreply.github.com> Date: Sat, 19 Dec 2020 11:12:12 -0500 Subject: [PATCH 03/12] fixed a compile error --- Projectiles/Ranged/ButcherGun.cs | 2 +- Projectiles/Summon/PlateProjectile.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/ButcherGun.cs b/Projectiles/Ranged/ButcherGun.cs index 1f89300716..0d4147c176 100644 --- a/Projectiles/Ranged/ButcherGun.cs +++ b/Projectiles/Ranged/ButcherGun.cs @@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Ranged float kback = player.ActiveItem().knockBack; if (canShoot) { - player.PickAmmo(player.ActiveItem(), ref projType, ref speedMult, ref canShoot, ref damage, ref kback, false); + player.PickAmmo(player.ActiveItem(), ref projType, ref speedMult, ref canShoot, ref damage, ref kback); kback = player.GetWeaponKnockback(player.ActiveItem(), kback); float speed = player.ActiveItem().shootSpeed * projectile.scale; Vector2 targetPos = Main.screenPosition + new Vector2((float)Main.mouseX, (float)Main.mouseY) - source; diff --git a/Projectiles/Summon/PlateProjectile.cs b/Projectiles/Summon/PlateProjectile.cs index 62cc49102e..27f4332fd2 100644 --- a/Projectiles/Summon/PlateProjectile.cs +++ b/Projectiles/Summon/PlateProjectile.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Summon float SpeedY = -projectile.velocity.Y * Main.rand.Next(40, 70) * 0.01f + Main.rand.Next(-20, 21) * 0.4f; int shard = Projectile.NewProjectile(projectile.Center.X + SpeedX, projectile.Center.Y + SpeedY, SpeedX, SpeedY, ProjectileID.CrystalShard, projectile.damage / 2, 0f, projectile.owner); if (shard.WithinBounds(Main.maxProjectiles)) - Main.projectile[idx].Calamity().forceMinion = true; + Main.projectile[shard].Calamity().forceMinion = true; } } } From 3a7ca7fde32a4097bb0d3ce406531824fc3b83c7 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 18 Dec 2020 19:05:39 -0500 Subject: [PATCH 04/12] more balance outliers --- Items/Weapons/Ranged/ClockworkBow.cs | 2 +- Items/Weapons/Ranged/GoldenEagle.cs | 2 +- Items/Weapons/Rogue/CelestialReaper.cs | 2 +- Projectiles/Summon/TacticalPlagueJet.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Ranged/ClockworkBow.cs b/Items/Weapons/Ranged/ClockworkBow.cs index e5f996bf2e..328751b216 100644 --- a/Items/Weapons/Ranged/ClockworkBow.cs +++ b/Items/Weapons/Ranged/ClockworkBow.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 63; + item.damage = 49; item.ranged = true; item.width = 34; item.height = 100; diff --git a/Items/Weapons/Ranged/GoldenEagle.cs b/Items/Weapons/Ranged/GoldenEagle.cs index 0b8ac1d413..1c8196c2f1 100644 --- a/Items/Weapons/Ranged/GoldenEagle.cs +++ b/Items/Weapons/Ranged/GoldenEagle.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 98; + item.damage = 86; item.ranged = true; item.noMelee = true; item.width = 46; diff --git a/Items/Weapons/Rogue/CelestialReaper.cs b/Items/Weapons/Rogue/CelestialReaper.cs index b2b3d6063c..40f56b9850 100644 --- a/Items/Weapons/Rogue/CelestialReaper.cs +++ b/Items/Weapons/Rogue/CelestialReaper.cs @@ -8,7 +8,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public class CelestialReaper : RogueWeapon { - public const int BaseDamage = 147; + public const int BaseDamage = 133; public override void SetStaticDefaults() { DisplayName.SetDefault("Celestial Reaper"); diff --git a/Projectiles/Summon/TacticalPlagueJet.cs b/Projectiles/Summon/TacticalPlagueJet.cs index 2cbb99efcf..e3b02fe9ac 100644 --- a/Projectiles/Summon/TacticalPlagueJet.cs +++ b/Projectiles/Summon/TacticalPlagueJet.cs @@ -180,7 +180,7 @@ namespace CalamityMod.Projectiles.Summon // Tactical Plague Jets only deal 60% damage with Holy Fire Bullets. There was no other way to nerf them. if (projID == ModContent.ProjectileType()) - damage = (int)(damage * 0.6f); + damage = (int)(damage * 0.5f); int bullet = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * shootSpeed, projID, damage, kb, projectile.owner); From 04b4deca38addee2ec7d5396e7a1590445169511 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+termigator1359@users.noreply.github.com> Date: Sat, 19 Dec 2020 11:58:23 -0500 Subject: [PATCH 05/12] rarity now defaults to 11 instead of 10 --- Items/CalamityGlobalItem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 262ef9fe74..daa15f27c8 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -100,8 +100,8 @@ namespace CalamityMod.Items #region SetDefaults public override void SetDefaults(Item item) { - if (customRarity.IsPostML() && item.rare != ItemRarityID.Red) - item.rare = ItemRarityID.Red; + if (customRarity.IsPostML() && item.rare != ItemRarityID.Purple) + item.rare = ItemRarityID.Purple; if (item.maxStack == 99 || item.type == ItemID.Dynamite || item.type == ItemID.StickyDynamite || item.type == ItemID.BouncyDynamite || item.type == ItemID.StickyBomb || item.type == ItemID.BouncyBomb) From 212cc839a2ad6bbb3d5ca308fb6d8b94ea070671 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+termigator1359@users.noreply.github.com> Date: Sat, 19 Dec 2020 12:42:28 -0500 Subject: [PATCH 06/12] Fixed Tactical Plague engine damage bugs I think --- Items/Weapons/Summon/TacticalPlagueEngine.cs | 51 +++++++++++++-- Projectiles/Ranged/BloodfireBulletProj.cs | 5 +- .../Summon/TacticalPlagueEngineSummon.cs | 59 +++++++++++++---- Utilities/CalamityUtils.cs | 65 +++++++++++++++++++ 4 files changed, 161 insertions(+), 19 deletions(-) diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 56c657f61f..f10cb0b873 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Summon { DisplayName.SetDefault("Tactical Plague Engine"); Tooltip.SetDefault("Summons a plague jet to pummel your enemies into submission\n" + - "Consumes bullets\n" + + "Requires bullets to shoot\n" + "Sometimes shoots a missile instead of a bullet"); } @@ -34,17 +34,58 @@ namespace CalamityMod.Items.Weapons.Summon item.summon = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; + item.useAmmo = AmmoID.Bullet; } + public override bool ConsumeAmmo(Player player) => false; + + public override bool CanUseItem(Player player) => player.HasAmmo(item, false); + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - if (player.altFunctionUse != 2) - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f); - } + // Undo the vanilla addition of ammo damage + damage -= GetVanillaAmmoDamage(player); + + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, item.shoot, damage, knockBack, player.whoAmI, 0f, 1f); return false; } + private int GetVanillaAmmoDamage(Player player) + { + Item ammo = null; + int ammoBonus = 0; + bool ammoSlots = false; + for (int index = Main.maxInventory - 4; index < Main.maxInventory; ++index) + { + if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) + { + ammo = player.inventory[index]; + ammoSlots = true; + break; + } + } + if (!ammoSlots) + { + for (int index = 0; index < Main.maxInventory - 4; ++index) + { + if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) + { + ammo = player.inventory[index]; + break; + } + } + } + + if (ammo != null) + { + if (ammo.damage > 0) + { + ammoBonus = (int)(ammo.damage * player.MinionDamage()); + } + } + return ammoBonus; + } + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Projectiles/Ranged/BloodfireBulletProj.cs b/Projectiles/Ranged/BloodfireBulletProj.cs index 9b80c993a3..0fecc1e3ef 100644 --- a/Projectiles/Ranged/BloodfireBulletProj.cs +++ b/Projectiles/Ranged/BloodfireBulletProj.cs @@ -74,7 +74,10 @@ namespace CalamityMod.Projectiles.Ranged // For the sake of bonus damage, life regen time caps at 3600, aka 60 seconds. This is its natural cap in vanilla. int regenTimeForCalc = (int)MathHelper.Clamp(owner.lifeRegenTime, 0f, 3600f); - return (int)(regenDamageRatio * regenTimeForCalc); + int bloodFireBonus = (int)(regenDamageRatio * regenTimeForCalc); + + // Main.NewText("Bloodfire Regen Bonus: " + bloodFireBonus, Color.Red); + return bloodFireBonus; } public override void Kill(int timeLeft) diff --git a/Projectiles/Summon/TacticalPlagueEngineSummon.cs b/Projectiles/Summon/TacticalPlagueEngineSummon.cs index 155c43d720..bf8441924b 100644 --- a/Projectiles/Summon/TacticalPlagueEngineSummon.cs +++ b/Projectiles/Summon/TacticalPlagueEngineSummon.cs @@ -1,7 +1,7 @@ using CalamityMod.Buffs.Summon; -using CalamityMod.Dusts; -using CalamityMod.Items.Weapons.Ranged; using CalamityMod.CalPlayer; +using CalamityMod.Dusts; +using CalamityMod.Items.Weapons.Summon; using Microsoft.Xna.Framework; using System; using Terraria; @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Summon Dust dust = Dust.NewDustPerfect(projectile.Center + velocity * 2f, (int)CalamityDusts.Plague, velocity); dust.noGravity = true; } - FalseGun = ItemLoader.GetItem(ModContent.ItemType()).item; + FalseGun = GetItem(); projectile.localAI[0] = 1f; } if (projectile.frameCounter++ > 6f) @@ -82,9 +82,19 @@ namespace CalamityMod.Projectiles.Summon projectile.timeLeft = 2; } } + + // Try and find a gun every 2.5 seconds if for some reason there is none + if (FalseGun is null) + { + if (player.miscCounter % 150 == 0) + { + FalseGun = GetItem(); + } + } + NPC potentialTarget = projectile.Center.MinionHoming(1560f, player); - if (potentialTarget is null || !player.HasAmmo(FalseGun, false)) + if (potentialTarget is null || FalseGun is null || !player.HasAmmo(FalseGun, false)) { float acceleration = 0.1f; Vector2 distanceVector = player.Center - projectile.Center; @@ -145,23 +155,24 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0]++ % 75f == 24f) { - int damage = projectile.damage; + int shoot = ProjectileID.Bullet; + float shootSpeed = 0f; + bool canShoot = true; + int dmg = projectile.damage; + float kBack = projectile.knockBack * 0.5f; + + player.PickAmmoSummon(FalseGun, ref shoot, ref shootSpeed, ref canShoot, ref dmg, ref kBack); + if (projectile.ai[1]++ % 20f == 0f) { int idx = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * 18f, ModContent.ProjectileType(), - (int)(damage * 1.5), 5f, projectile.owner); + (int)(dmg * 1.5), kBack * 5f, projectile.owner); if (idx.WithinBounds(Main.maxProjectiles)) Main.projectile[idx].Calamity().forceMinion = true; } else { - int shoot = 0; - float shootSpeed = 0f; - bool canShoot = true; - float knockBack = projectile.knockBack * 0.5f; - player.PickAmmo(FalseGun, ref shoot, ref shootSpeed, ref canShoot, ref damage, ref knockBack); - int idx = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * shootSpeed, shoot, - damage, knockBack, projectile.owner); + int idx = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * shootSpeed, shoot, dmg, kBack, projectile.owner); // There's airway for a small bug in here, but the potential alterative (that has indeed been appearing), where // the projectile simply cannot exist, is far worse than this. If you have another solution, let me know. if (idx.WithinBounds(Main.maxProjectiles)) @@ -172,6 +183,28 @@ namespace CalamityMod.Projectiles.Summon } } + private Item GetItem() + { + Item item = null; + Player player = Main.player[projectile.owner]; + + if (!Main.mouseItem.IsAir && Main.mouseItem.type == ModContent.ItemType()) + item = Main.mouseItem; + + if (item is null) + { + for (int index = 0; index < Main.maxInventory - 4; ++index) + { + if (player.inventory[index].type == ModContent.ItemType() && player.inventory[index].stack > 0) + { + item = player.inventory[index]; + break; + } + } + } + return item; + } + public override bool CanDamage() => false; } } diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 0e36dc7df1..054949d705 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -754,6 +754,71 @@ namespace CalamityMod return hitbox; } + public static void PickAmmoSummon(this Player player, Item item, ref int shoot, ref float speed, ref bool canShoot, ref int dmg, ref float kBack, bool dontConsume = false) + { + Item ammo = null; + bool ammoSlots = false; + // Check if there is ammo in the dedicated ammo slots first + for (int index = Main.maxInventory - 4; index < Main.maxInventory; ++index) + { + if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) + { + ammo = player.inventory[index]; + canShoot = true; + ammoSlots = true; + break; + } + } + if (!ammoSlots) + { + for (int index = 0; index < Main.maxInventory - 4; ++index) + { + if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) + { + ammo = player.inventory[index]; + canShoot = true; + break; + } + } + } + if (ammo is null || !canShoot) + return; + + if (ammo.shoot > 0) + shoot = ammo.shoot; + speed += ammo.shootSpeed; + kBack += ammo.knockBack; + + // Main.NewText("Damage before: " + dmg, Color.Green); + int ammoBonus = 0; + if (ammo.damage > 0) + { + ammoBonus = (int)(ammo.damage * player.MinionDamage()); + // Main.NewText("Ammo Bonus: " + ammoBonus, Color.Red); + } + dmg += ammoBonus; + // Main.NewText("Damage after: " + dmg, Color.Red); + + bool dontConsumeAmmo = dontConsume; + if (player.ammoBox && Main.rand.NextBool(5)) + dontConsumeAmmo = true; + if (player.ammoPotion && Main.rand.NextBool(5)) + dontConsumeAmmo = true; + if (player.ammoCost80 && Main.rand.NextBool(5)) + dontConsumeAmmo = true; + if (player.ammoCost75 && Main.rand.NextBool(4)) + dontConsumeAmmo = true; + if (Main.rand.NextFloat() > player.Calamity().rangedAmmoCost) + dontConsumeAmmo = true; + if (dontConsumeAmmo || !ammo.consumable) + return; + --ammo.stack; + if (ammo.stack > 0) + return; + ammo.active = false; + ammo.TurnToAir(); + } + public static void ConsumeItemViaQuickBuff(Player player, Item item, int buffType, int buffTime, bool reducedPotionSickness) { bool showsOver = false; From fb7204d5497c637fdea74cd9fc9a82632bf1eab5 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+termigator1359@users.noreply.github.com> Date: Sat, 19 Dec 2020 12:54:00 -0500 Subject: [PATCH 07/12] this is already a summon proj --- Projectiles/Summon/TacticalPlagueJet.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Projectiles/Summon/TacticalPlagueJet.cs b/Projectiles/Summon/TacticalPlagueJet.cs index 02f30ec6d7..d6033fc6cb 100644 --- a/Projectiles/Summon/TacticalPlagueJet.cs +++ b/Projectiles/Summon/TacticalPlagueJet.cs @@ -176,8 +176,6 @@ namespace CalamityMod.Projectiles.Summon { int rocket = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * 18f, ModContent.ProjectileType(), (int)(dmg * 1.5), kBack * 5f, projectile.owner); - if (rocket.WithinBounds(Main.maxProjectiles)) - Main.projectile[rocket].Calamity().forceMinion = true; } // All other shots are bullets, fired from a "fake gun". The bullets are consumed from the player's inventory as per normal. From 18e48023f8aeb2763e7125eea6f088caea9e151f Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 19 Dec 2020 13:39:49 -0500 Subject: [PATCH 08/12] nerfed bloodfire bullet life regen scaling --- Projectiles/Ranged/BloodfireBulletProj.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Projectiles/Ranged/BloodfireBulletProj.cs b/Projectiles/Ranged/BloodfireBulletProj.cs index 0fecc1e3ef..e21273f0a6 100644 --- a/Projectiles/Ranged/BloodfireBulletProj.cs +++ b/Projectiles/Ranged/BloodfireBulletProj.cs @@ -65,18 +65,16 @@ namespace CalamityMod.Projectiles.Ranged // Adds 2 frames to lifeRegenTime on every hit. This increased value is used for the damage calculation. owner.lifeRegenTime += 2; - // Deals (1.00 + (0.1 * current lifeRegen))% of current lifeRegenTime as flat bonus damage on hit. + // Deals (1.00 + (0.05 * current lifeRegen))% of current lifeRegenTime as flat bonus damage on hit. // For example, at 0 life regen, you get 1% of lifeRegenTime as bonus damage. // At 10 life regen, you get 2%. At 20 life regen, you get 3%. // Negative life regen does not decrease damage. int regenForCalc = owner.lifeRegen > 0 ? owner.lifeRegen : 0; - float regenDamageRatio = 0.01f + 0.001f * regenForCalc; + float regenDamageRatio = 0.01f + 0.0005f * regenForCalc; // For the sake of bonus damage, life regen time caps at 3600, aka 60 seconds. This is its natural cap in vanilla. int regenTimeForCalc = (int)MathHelper.Clamp(owner.lifeRegenTime, 0f, 3600f); int bloodFireBonus = (int)(regenDamageRatio * regenTimeForCalc); - - // Main.NewText("Bloodfire Regen Bonus: " + bloodFireBonus, Color.Red); return bloodFireBonus; } From 3e7838eb49e180fe9447f1cb5594acaae5d9ba45 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 19 Dec 2020 14:45:28 -0500 Subject: [PATCH 09/12] Fixed Tactical Plague Engine for real. HFB ratio changed back to 60% from 50%. --- Items/Weapons/Summon/TacticalPlagueEngine.cs | 56 +---------------- Projectiles/Summon/TacticalPlagueJet.cs | 61 ++++++++++-------- Utilities/CalamityUtils.cs | 65 -------------------- 3 files changed, 38 insertions(+), 144 deletions(-) diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 2afa5c32e4..d31b0ab22d 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -1,7 +1,5 @@ -using CalamityMod.Projectiles.Summon; using CalamityMod.Items.Materials; -using Microsoft.Xna.Framework; -using Terraria; +using CalamityMod.Projectiles.Summon; using Terraria.ID; using Terraria.ModLoader; @@ -13,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Summon { DisplayName.SetDefault("Tactical Plague Engine"); Tooltip.SetDefault("Summons a plague jet to pummel your enemies into submission\n" + - "Requires bullets to shoot\n" + + "Jets will fire ammo from your inventory, 66% chance to not consume ammo\n" + "Sometimes shoots a missile instead of a bullet"); } @@ -34,58 +32,8 @@ namespace CalamityMod.Items.Weapons.Summon item.summon = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 16f; - item.useAmmo = AmmoID.Bullet; } - public override bool ConsumeAmmo(Player player) => false; - - public override bool CanUseItem(Player player) => player.HasAmmo(item, false); - - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) - { - // Undo the vanilla addition of ammo damage - damage -= GetVanillaAmmoDamage(player); - - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, item.shoot, damage, knockBack, player.whoAmI, 0f, 1f); - return false; - } - - private int GetVanillaAmmoDamage(Player player) - { - Item ammo = null; - int ammoBonus = 0; - bool ammoSlots = false; - for (int index = Main.maxInventory - 4; index < Main.maxInventory; ++index) - { - if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) - { - ammo = player.inventory[index]; - ammoSlots = true; - break; - } - } - if (!ammoSlots) - { - for (int index = 0; index < Main.maxInventory - 4; ++index) - { - if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) - { - ammo = player.inventory[index]; - break; - } - } - } - - if (ammo != null) - { - if (ammo.damage > 0) - { - ammoBonus = (int)(ammo.damage * player.MinionDamage()); - } - } - return ammoBonus; - } - public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Projectiles/Summon/TacticalPlagueJet.cs b/Projectiles/Summon/TacticalPlagueJet.cs index 2b9f7b612e..7b0dc7c41c 100644 --- a/Projectiles/Summon/TacticalPlagueJet.cs +++ b/Projectiles/Summon/TacticalPlagueJet.cs @@ -1,13 +1,12 @@ using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using CalamityMod.Dusts; -using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using CalamityMod.Projectiles.Ranged; namespace CalamityMod.Projectiles.Summon { @@ -38,6 +37,17 @@ namespace CalamityMod.Projectiles.Summon projectile.extraUpdates = 1; } + // Defines an Item which is a hacked clone of a P90, edited to be summon class instead of ranged. + // The false gun's damage is changed to the appropriate value every time a Tactical Plague Jet wants to fire a bullet. + private static void DefineFalseGun() + { + int p90ID = ModContent.ItemType(); + FalseGun = new Item(); + FalseGun.SetDefaults(p90ID, true); + FalseGun.ranged = false; + FalseGun.summon = true; + } + public override bool CanDamage() => false; public override void AI() @@ -60,9 +70,9 @@ namespace CalamityMod.Projectiles.Summon dust.noGravity = true; } - // Grab a fake gun, if not defined, with which to fire bullets. This should only need to be defined once. + // Construct a fake item to use with vanilla code for the sake of firing bullets. if (FalseGun is null) - FalseGun = ItemLoader.GetItem(ModContent.ItemType()).item; + DefineFalseGun(); projectile.localAI[0] = 1f; } @@ -157,37 +167,39 @@ namespace CalamityMod.Projectiles.Summon if (projectile.ai[0]++ % 75f == 24f) { - int damage = projectile.damage; + int projID = ProjectileID.Bullet; + float shootSpeed = FalseGun.shootSpeed; + bool canShoot = true; + int damage = FalseGun.damage = projectile.damage; + float kb = projectile.knockBack; + bool shootRocket = ++projectile.ai[1] % 20f == 0f; + // Rockets never consume ammo. + bool dontConsumeAmmo = Main.rand.NextBool() || shootRocket; + int projIndex; - // One in every 20 shots is a rocket for 1.5x damage. Rockets never consume ammo. - if (projectile.ai[1]++ % 20f == 0f) + // This function uses the fake gun item (changed to be ranged) with the appropriate base damage as the "firing item". + player.PickAmmo(FalseGun, ref projID, ref shootSpeed, ref canShoot, ref damage, ref kb, dontConsumeAmmo); + + // One in every 20 shots is a rocket which deals 1.5x total damage and extreme knockback. + if (shootRocket) { int rocketDamage = (int)(damage * 1.5f); - float rocketKB = 5f; - int idx = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * 18f, ModContent.ProjectileType(), + float rocketKB = kb + 5f; + projIndex = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * 18f, ModContent.ProjectileType(), rocketDamage, rocketKB, projectile.owner); - Main.projectile[idx].Calamity().forceMinion = true; } - - // All other shots are bullets, fired from a "fake gun". The bullets are consumed from the player's inventory as per normal. else { - int projID = 0; - float shootSpeed = 0f; - bool canShoot = true; - float kb = projectile.knockBack; - player.PickAmmo(FalseGun, ref projID, ref shootSpeed, ref canShoot, ref damage, ref kb); - // Tactical Plague Jets only deal 60% damage with Holy Fire Bullets. There was no other way to nerf them. if (projID == ModContent.ProjectileType()) - damage = (int)(damage * 0.5f); - - int bullet = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * shootSpeed, projID, + damage = (int)(damage * 0.6f); + projIndex = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * shootSpeed, projID, damage, kb, projectile.owner); - - if (bullet.WithinBounds(Main.maxProjectiles)) - Main.projectile[bullet].Calamity().forceMinion = true; } + + // Regardless of what was fired, force it to be a summon projectile so that summon accessories work. + if (projIndex.WithinBounds(Main.maxProjectiles)) + Main.projectile[projIndex].Calamity().forceMinion = true; } // Prevent minion clumping while firing. @@ -195,5 +207,4 @@ namespace CalamityMod.Projectiles.Summon } } } ->>>>>>> master } diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 054949d705..0e36dc7df1 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -754,71 +754,6 @@ namespace CalamityMod return hitbox; } - public static void PickAmmoSummon(this Player player, Item item, ref int shoot, ref float speed, ref bool canShoot, ref int dmg, ref float kBack, bool dontConsume = false) - { - Item ammo = null; - bool ammoSlots = false; - // Check if there is ammo in the dedicated ammo slots first - for (int index = Main.maxInventory - 4; index < Main.maxInventory; ++index) - { - if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) - { - ammo = player.inventory[index]; - canShoot = true; - ammoSlots = true; - break; - } - } - if (!ammoSlots) - { - for (int index = 0; index < Main.maxInventory - 4; ++index) - { - if (player.inventory[index].ammo == item.useAmmo && player.inventory[index].stack > 0) - { - ammo = player.inventory[index]; - canShoot = true; - break; - } - } - } - if (ammo is null || !canShoot) - return; - - if (ammo.shoot > 0) - shoot = ammo.shoot; - speed += ammo.shootSpeed; - kBack += ammo.knockBack; - - // Main.NewText("Damage before: " + dmg, Color.Green); - int ammoBonus = 0; - if (ammo.damage > 0) - { - ammoBonus = (int)(ammo.damage * player.MinionDamage()); - // Main.NewText("Ammo Bonus: " + ammoBonus, Color.Red); - } - dmg += ammoBonus; - // Main.NewText("Damage after: " + dmg, Color.Red); - - bool dontConsumeAmmo = dontConsume; - if (player.ammoBox && Main.rand.NextBool(5)) - dontConsumeAmmo = true; - if (player.ammoPotion && Main.rand.NextBool(5)) - dontConsumeAmmo = true; - if (player.ammoCost80 && Main.rand.NextBool(5)) - dontConsumeAmmo = true; - if (player.ammoCost75 && Main.rand.NextBool(4)) - dontConsumeAmmo = true; - if (Main.rand.NextFloat() > player.Calamity().rangedAmmoCost) - dontConsumeAmmo = true; - if (dontConsumeAmmo || !ammo.consumable) - return; - --ammo.stack; - if (ammo.stack > 0) - return; - ammo.active = false; - ammo.TurnToAir(); - } - public static void ConsumeItemViaQuickBuff(Player player, Item item, int buffType, int buffTime, bool reducedPotionSickness) { bool showsOver = false; From 49eaa015c9d35a9fd8955798cdffc3d5ce2a6068 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 19 Dec 2020 14:48:31 -0500 Subject: [PATCH 10/12] cleanliness and forgot summon right click code --- Items/Weapons/Summon/TacticalPlagueEngine.cs | 9 +++++++++ Projectiles/Ranged/BloodfireBulletProj.cs | 3 +-- Projectiles/Summon/TacticalPlagueJet.cs | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index d31b0ab22d..77ab16720a 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -1,5 +1,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Projectiles.Summon; +using Microsoft.Xna.Framework; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -34,6 +36,13 @@ namespace CalamityMod.Items.Weapons.Summon item.shootSpeed = 16f; } + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.altFunctionUse != 2) + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f); + return false; + } + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Projectiles/Ranged/BloodfireBulletProj.cs b/Projectiles/Ranged/BloodfireBulletProj.cs index e21273f0a6..96aa569f8a 100644 --- a/Projectiles/Ranged/BloodfireBulletProj.cs +++ b/Projectiles/Ranged/BloodfireBulletProj.cs @@ -74,8 +74,7 @@ namespace CalamityMod.Projectiles.Ranged // For the sake of bonus damage, life regen time caps at 3600, aka 60 seconds. This is its natural cap in vanilla. int regenTimeForCalc = (int)MathHelper.Clamp(owner.lifeRegenTime, 0f, 3600f); - int bloodFireBonus = (int)(regenDamageRatio * regenTimeForCalc); - return bloodFireBonus; + return (int)(regenDamageRatio * regenTimeForCalc); } public override void Kill(int timeLeft) diff --git a/Projectiles/Summon/TacticalPlagueJet.cs b/Projectiles/Summon/TacticalPlagueJet.cs index 7b0dc7c41c..2ee531c320 100644 --- a/Projectiles/Summon/TacticalPlagueJet.cs +++ b/Projectiles/Summon/TacticalPlagueJet.cs @@ -177,7 +177,7 @@ namespace CalamityMod.Projectiles.Summon bool dontConsumeAmmo = Main.rand.NextBool() || shootRocket; int projIndex; - // This function uses the fake gun item (changed to be ranged) with the appropriate base damage as the "firing item". + // Vanilla function tricked into using a fake gun item with the appropriate base damage as the "firing item". player.PickAmmo(FalseGun, ref projID, ref shootSpeed, ref canShoot, ref damage, ref kb, dontConsumeAmmo); // One in every 20 shots is a rocket which deals 1.5x total damage and extreme knockback. From 168999dc1c28ed7f43b5ffa8f5054ec7dee97091 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 19 Dec 2020 18:03:04 -0500 Subject: [PATCH 11/12] hopefully final change to TPE --- Items/Weapons/Summon/TacticalPlagueEngine.cs | 2 +- Projectiles/Summon/TacticalPlagueJet.cs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 77ab16720a..5d4843a4ca 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 34; + item.damage = 47; item.mana = 10; item.width = 28; item.height = 20; diff --git a/Projectiles/Summon/TacticalPlagueJet.cs b/Projectiles/Summon/TacticalPlagueJet.cs index 2ee531c320..f7f7155084 100644 --- a/Projectiles/Summon/TacticalPlagueJet.cs +++ b/Projectiles/Summon/TacticalPlagueJet.cs @@ -190,9 +190,7 @@ namespace CalamityMod.Projectiles.Summon } else { - // Tactical Plague Jets only deal 60% damage with Holy Fire Bullets. There was no other way to nerf them. - if (projID == ModContent.ProjectileType()) - damage = (int)(damage * 0.6f); + // Fire the selected bullet, nothing special. projIndex = Projectile.NewProjectile(projectile.Center, projectile.DirectionTo(potentialTarget.Center) * shootSpeed, projID, damage, kb, projectile.owner); } From a353c5fddfe0d4f863d5c23a2551eda4a9fd9689 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sat, 19 Dec 2020 18:40:51 -0500 Subject: [PATCH 12/12] Tactical Plague Engine for the 7th time --- Items/Weapons/Summon/TacticalPlagueEngine.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Summon/TacticalPlagueEngine.cs b/Items/Weapons/Summon/TacticalPlagueEngine.cs index 5d4843a4ca..e57ab79416 100644 --- a/Items/Weapons/Summon/TacticalPlagueEngine.cs +++ b/Items/Weapons/Summon/TacticalPlagueEngine.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 47; + item.damage = 52; item.mana = 10; item.width = 28; item.height = 20;