diff --git a/Items/Weapons/Melee/Floodtide.cs b/Items/Weapons/Melee/Floodtide.cs index f0e9342478..dae581eb10 100644 --- a/Items/Weapons/Melee/Floodtide.cs +++ b/Items/Weapons/Melee/Floodtide.cs @@ -1,7 +1,7 @@ using Terraria.DataStructures; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Melee; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.shoot = ModContent.ProjectileType(); + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 18f; } @@ -42,9 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee { float SpeedX = velocity.X + (float)Main.rand.Next(-20, 21) * 0.05f; float SpeedY = velocity.Y + (float)Main.rand.Next(-20, 21) * 0.05f; - int proj = Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI, 0f, 0f); - if (proj.WithinBounds(Main.maxProjectiles)) - Main.projectile[proj].DamageType = DamageClass.Melee; + Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, type, damage, knockback, player.whoAmI, 0f, 0f); } return false; } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson index 0d08ff7edf..791af11470 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Melee.hjson @@ -121,6 +121,7 @@ FallenPaladinsHammerEcho.DisplayName: Fallen Paladin's Hammer Echo FallenPaladinsHammerProj.DisplayName: Fallen Paladin's Hammer Feather.DisplayName: Feather Flarefrost.DisplayName: Flarefrost +FloodtideShark.DisplayName: SHORK ForbiddenOathbladeProjectile.DisplayName: Oathblade GaelExplosion.DisplayName: Gael Explosion GaelSkull.DisplayName: No Longer Ark of the Cosmos' Superior Cousin diff --git a/Projectiles/Melee/BansheeHookScythe.png b/Projectiles/Melee/BansheeHookScythe.png index c1c6f23d01..919bc83d16 100644 Binary files a/Projectiles/Melee/BansheeHookScythe.png and b/Projectiles/Melee/BansheeHookScythe.png differ diff --git a/Projectiles/Melee/FloodtideShark.cs b/Projectiles/Melee/FloodtideShark.cs new file mode 100644 index 0000000000..45761fdc3f --- /dev/null +++ b/Projectiles/Melee/FloodtideShark.cs @@ -0,0 +1,33 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class FloodtideShark : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Melee"; + + public override void SetDefaults() + { + Projectile.width = 66; + Projectile.height = 28; + Projectile.aiStyle = ProjAIStyleID.Arrow; + AIType = ProjectileID.MiniSharkron; + Projectile.friendly = true; + Projectile.alpha = 255; + Projectile.ignoreWater = true; + Projectile.DamageType = DamageClass.Melee; + } + + public override void OnKill(int timeLeft) + { + for (int d = 0; d < 15; ++d) + { + int idx = Dust.NewDust(Projectile.Center - Vector2.One * 10f, 50, 50, DustID.Blood, 0f, -2f, 0, default, 1f); + Dust dust = Main.dust[idx]; + dust.velocity /= 2f; + } + } + } +} diff --git a/Projectiles/Melee/FloodtideShark.png b/Projectiles/Melee/FloodtideShark.png new file mode 100644 index 0000000000..d708dc16ce Binary files /dev/null and b/Projectiles/Melee/FloodtideShark.png differ diff --git a/Projectiles/Melee/TerrorBeam.cs b/Projectiles/Melee/TerrorBeam.cs index a4dd1be9e0..f396510db2 100644 --- a/Projectiles/Melee/TerrorBeam.cs +++ b/Projectiles/Melee/TerrorBeam.cs @@ -1,4 +1,4 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using System; using Terraria; @@ -19,8 +19,8 @@ namespace CalamityMod.Projectiles.Melee public override void SetDefaults() { - Projectile.width = 16; - Projectile.height = 16; + Projectile.width = 32; + Projectile.height = 32; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; Projectile.penetrate = 4; @@ -87,11 +87,6 @@ namespace CalamityMod.Projectiles.Melee Projectile.rotation = (float)Math.Atan2((double)Projectile.velocity.Y, (double)Projectile.velocity.X) + 0.785f; } - public override Color? GetAlpha(Color lightColor) - { - return new Color(255, 0, 0, Projectile.alpha); - } - public override bool PreDraw(ref Color lightColor) { if (Projectile.timeLeft > 595) diff --git a/Projectiles/Melee/TerrorBeam.png b/Projectiles/Melee/TerrorBeam.png index 6033712f0c..000fe3428e 100644 Binary files a/Projectiles/Melee/TerrorBeam.png and b/Projectiles/Melee/TerrorBeam.png differ