diff --git a/Items/Weapons/Summon/EyeOfNight.cs b/Items/Weapons/Summon/EyeOfNight.cs index 9a2316ae3d..544a65b2a4 100644 --- a/Items/Weapons/Summon/EyeOfNight.cs +++ b/Items/Weapons/Summon/EyeOfNight.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 35; + item.damage = 28; item.mana = 10; item.width = item.height = 36; item.useTime = item.useAnimation = 30; diff --git a/Items/Weapons/Summon/FleshOfInfidelity.cs b/Items/Weapons/Summon/FleshOfInfidelity.cs index 210b65829c..67912a6ccd 100644 --- a/Items/Weapons/Summon/FleshOfInfidelity.cs +++ b/Items/Weapons/Summon/FleshOfInfidelity.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 26; + item.damage = 23; item.mana = 10; item.width = item.height = 48; item.useTime = item.useAnimation = 30; diff --git a/Items/Weapons/Summon/ViridVanguard.cs b/Items/Weapons/Summon/ViridVanguard.cs index ddc2484ead..58565d03db 100644 --- a/Items/Weapons/Summon/ViridVanguard.cs +++ b/Items/Weapons/Summon/ViridVanguard.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Summon public override void SetDefaults() { - item.damage = 156; + item.damage = 280; item.summon = true; item.sentry = true; item.mana = 10; diff --git a/Projectiles/Summon/EyeOfNightCell.cs b/Projectiles/Summon/EyeOfNightCell.cs index 99fe4e6d62..48cfb2dbec 100644 --- a/Projectiles/Summon/EyeOfNightCell.cs +++ b/Projectiles/Summon/EyeOfNightCell.cs @@ -21,11 +21,11 @@ namespace CalamityMod.Projectiles.Summon projectile.minionSlots = 0f; projectile.ignoreWater = true; projectile.tileCollide = false; - projectile.penetrate = -1; + projectile.penetrate = 2; projectile.timeLeft = 180; projectile.extraUpdates = 1; projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 19; + projectile.localNPCHitCooldown = 90; } public override void AI() @@ -37,15 +37,12 @@ namespace CalamityMod.Projectiles.Summon } public override void Kill(int timeLeft) { - CalamityGlobalProjectile.ExpandHitboxBy(projectile, 60); - projectile.Damage(); - if (!Main.dedServ) for (int i = 0; i < 10; i++) Dust.NewDustDirect(projectile.position, 36, 36, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true; } - public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(10, true); + public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(4, true); public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(BuffID.CursedInferno, 120); diff --git a/Projectiles/Summon/EyeOfNightSummon.cs b/Projectiles/Summon/EyeOfNightSummon.cs index d558709329..c9f9fe6e91 100644 --- a/Projectiles/Summon/EyeOfNightSummon.cs +++ b/Projectiles/Summon/EyeOfNightSummon.cs @@ -133,5 +133,7 @@ namespace CalamityMod.Projectiles.Summon projectile.velocity = (destination - projectile.Center).SafeNormalize(Vector2.Zero) * flySpeed; } + + public override bool CanDamage() => false; } } \ No newline at end of file diff --git a/Projectiles/Summon/FleshBallMinion.cs b/Projectiles/Summon/FleshBallMinion.cs index b6435672eb..d8b4758582 100644 --- a/Projectiles/Summon/FleshBallMinion.cs +++ b/Projectiles/Summon/FleshBallMinion.cs @@ -1,5 +1,4 @@ using CalamityMod.Buffs.Summon; -using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using System; using Terraria; @@ -13,6 +12,7 @@ namespace CalamityMod.Projectiles.Summon public Player Owner => Main.player[projectile.owner]; public bool SittingOnGround => Math.Abs(projectile.velocity.X) < 1.55f && projectile.velocity.Y == 0f; public ref float HopTimer => ref projectile.ai[0]; + public ref float HopAmount => ref projectile.ai[1]; public const float Gravity = 0.25f; public const float MaxFallSpeed = 12f; public override void SetStaticDefaults() @@ -35,6 +35,8 @@ namespace CalamityMod.Projectiles.Summon projectile.extraUpdates = 1; projectile.tileCollide = false; projectile.minion = true; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 60; } public override void AI() @@ -127,19 +129,15 @@ namespace CalamityMod.Projectiles.Summon if (SittingOnGround && HopTimer % 20f == 19f) { projectile.velocity = projectile.SafeDirectionTo(target.Center) * 6f + new Vector2(Math.Sign(projectile.velocity.X) * 2f, -7f); + HopAmount++; // Release a bunch of blood. - if (Main.myPlayer == projectile.owner) + if (Main.myPlayer == projectile.owner && HopAmount % 3f == 2f) { - for (int i = 0; i < Main.rand.Next(1, 4 + 1); i++) + for (int i = 0; i < 2; i++) { Vector2 shootVelocity = -Vector2.UnitY.RotatedByRandom(0.3f) * Main.rand.NextFloat(6f, 11f); - int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); - if (Main.projectile.IndexInRange(blood)) - { - Main.projectile[blood].Calamity().forceMinion = true; - Main.projectile[blood].penetrate = 1; - } + int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner); } } diff --git a/Projectiles/Summon/FleshBlood.cs b/Projectiles/Summon/FleshBlood.cs new file mode 100644 index 0000000000..8de89fddd1 --- /dev/null +++ b/Projectiles/Summon/FleshBlood.cs @@ -0,0 +1,47 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Summon +{ + public class FleshBlood : ModProjectile + { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public const int LifeTime = 300; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Blood"); + ProjectileID.Sets.MinionShot[projectile.type] = true; + } + + public override void SetDefaults() + { + projectile.width = 4; + projectile.height = 4; + projectile.friendly = true; + projectile.minion = true; + projectile.penetrate = 1; + projectile.LifeTime = 150; + } + + public override bool? CanHitNPC(NPC target) => projectile.timeLeft < LifeTime - 30 && target.CanBeChasedBy(projectile); + + public override void AI() + { + projectile.localAI[0] += 1f; + if (projectile.localAI[0] > 4f) + { + for (int i = 0; i < 2; i++) + { + int d = Dust.NewDust(projectile.position, projectile.width, projectile.height, DustID.Blood, 0f, 0f, 100, default, 1f); + Main.dust[d].noGravity = true; + Main.dust[d].velocity *= 0f; + } + } + + if (projectile.timeLeft < LifeTime - 30) + CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 450f, 6f, 20f); + } + } +} diff --git a/Projectiles/Summon/ViridVanguardBlade.cs b/Projectiles/Summon/ViridVanguardBlade.cs index df19971af4..cd54fd1fa3 100644 --- a/Projectiles/Summon/ViridVanguardBlade.cs +++ b/Projectiles/Summon/ViridVanguardBlade.cs @@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Summon } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { - if (RemainingSlices > 0) + if (RemainingSlices > 0 && FiringTime <= 80f) { FiringTime = 10f; RemainingSlices--;