diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index ea2b7b1155..e8b9397cc5 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -6098,7 +6098,7 @@ namespace CalamityMod.CalPlayer if (bannerNPCType == ModContent.NPCType()) reduceDamage = true; } - else if (proj.type == ModContent.ProjectileType() || proj.type == ModContent.ProjectileType() || proj.type == ModContent.ProjectileType() || proj.type == ModContent.ProjectileType()) + else if (proj.type == ModContent.ProjectileType() || proj.type == ModContent.ProjectileType() || proj.type == ModContent.ProjectileType() || proj.type == ModContent.ProjectileType()) { if (bannerNPCType == ModContent.NPCType()) reduceDamage = true; diff --git a/Items/Accessories/InkBomb.cs b/Items/Accessories/InkBomb.cs index ba91beb059..49beabf2d9 100644 --- a/Items/Accessories/InkBomb.cs +++ b/Items/Accessories/InkBomb.cs @@ -28,9 +28,5 @@ namespace CalamityMod.Items.Accessories CalamityPlayer modPlayer = player.Calamity(); modPlayer.inkBomb = true; } - - public override void AddRecipes() - { - } } } diff --git a/NPCs/Abyss/ColossalSquid.cs b/NPCs/Abyss/ColossalSquid.cs index 01e3a20149..248cd84d61 100644 --- a/NPCs/Abyss/ColossalSquid.cs +++ b/NPCs/Abyss/ColossalSquid.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Ranged; using CalamityMod.Items.Weapons.Summon; +using CalamityMod.Projectiles.Enemy; using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; @@ -395,7 +396,7 @@ namespace CalamityMod.NPCs.Abyss damage = 55; } Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 111); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y + 60, 0f, 2f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y + 60, 0f, 2f, ModContent.ProjectileType(), damage, 0f, Main.myPlayer, 0f, 0f); } npc.rotation = npc.velocity.X * 0.05f; npc.velocity *= 0.975f; diff --git a/Projectiles/Enemy/InkBomb.cs b/Projectiles/Enemy/InkBombHostile.cs similarity index 92% rename from Projectiles/Enemy/InkBomb.cs rename to Projectiles/Enemy/InkBombHostile.cs index 4328710d49..404587d035 100644 --- a/Projectiles/Enemy/InkBomb.cs +++ b/Projectiles/Enemy/InkBombHostile.cs @@ -5,7 +5,7 @@ using Terraria.ModLoader; namespace CalamityMod.Projectiles.Enemy { - public class InkBomb : ModProjectile + public class InkBombHostile : ModProjectile { public override void SetStaticDefaults() { @@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Enemy if (projectile.velocity.Y == 0f && projectile.velocity.X != 0f) { projectile.velocity.X = projectile.velocity.X * 0.97f; - if ((double)projectile.velocity.X > -0.01 && (double)projectile.velocity.X < 0.01) + if (projectile.velocity.X > -0.01f && projectile.velocity.X < 0.01f) { projectile.velocity.X = 0f; projectile.netUpdate = true; @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Enemy Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); vector15.Normalize(); vector15 *= (float)Main.rand.Next(50, 401) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType() + Main.rand.Next(3), (int)((double)projectile.damage * 0.66), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType() + Main.rand.Next(3), (int)(projectile.damage * 0.66), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); } } projectile.position.X = projectile.position.X + (float)(projectile.width / 2); diff --git a/Projectiles/Enemy/InkBomb.png b/Projectiles/Enemy/InkBombHostile.png similarity index 100% rename from Projectiles/Enemy/InkBomb.png rename to Projectiles/Enemy/InkBombHostile.png